Sources - screenly/chrome-extension

The Screenly Chrome Extension supports various types of content through different sources. Here are the possible options and examples for each option:

JavaScript Files

You can use JavaScript files as a source for the Screenly Chrome Extension. To do this, you need to create a manifest.json file and a content.js file. Here’s an example of a manifest.json file:

{
"manifest_version": 2,
"name": "Whatever you want to call the plugin",
"description": "A brief description of what the plugin does. I prefer the GNU philosophy of do one thing well",
"version": "2.0",
"content_scripts": [
{
"matches": [
"*://*/*"
],
"js": [
"content.js"
]
}
]
}

The content.js file can contain any JavaScript code that you want to run on web pages.

Source: Using JavaScript to hack the web | Opensource.com

Docker Extension