Skip to content

evanxd/marionette-content-script

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marionette-content-script

A marionette plugin for injecting (or replacing) apis exposed to content frames (apps, browser tabs)

Usage

"Injected" scripts will be presented and loaded before all other scripts loaded by normal content. Currently there is no way to remove a script from the marionette context after exposing it.

// expose to marionette
client.plugin('contentScript', require('marionette-content-script'));

// inject a file from the file system into all page loads
client.contentScript.inject(__dirname + '/myabsolute/path/to/file.js');

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%