Skip to content

google-chrome-extension-libs/script-injectior

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

script-injectior

inject script into a page , without duplicates

Mechanics

  • background.js
    • Listen: [inject] message
      • send [wannascript] message to an active tab
        • silence means consent
        • answer means no, if:
          • answer[page_url] = active tab url
  • content.js
    • Listen: [wannascript] message
      • answer, if you can, with props: (page_url)
  • event initiator(popup.js by default)
    • emmit: [inject] message

About

inject script into a page , without duplicates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published