Skip to content

Base to inject script into page context from chrome extensions. For example can be useful to get or set global variables in page context

Notifications You must be signed in to change notification settings

Defalt1878/chrome-extensions-injection

Repository files navigation

Chrome extensions injection

Allows injecting scripts into the page context from a Chrome extension.

If you try to do the following directly from your extension's code, it won't work in the dev console:

window.sayHi = () => alert('Hello world!')

But if you place this code into executeInjected, it works fine

Using sendInjectionEvent/addInjectionEventHandler, you can pass data from the page context to your extension context.

About

Base to inject script into page context from chrome extensions. For example can be useful to get or set global variables in page context

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published