Run custom JavaScript on any website.
Custom JavaScript for Websites 2 Extension
Run custom JavaScript on any website. Use this tool to inject custom JavaScript in any website.
Your scripts are kept by the Chrome sync API and applied across domain URLs. You can inject custom JavaScript based on domain or custom Regular Expression (since v3.1.1).
This extension supports dedicated tab to edit your codes since v2.5.1
You can use some built-in libraries such as
* jQuery 1.12.4
* jQuery 2.2.4
* jQuery 3.2.1
* Indefinite Observable 1.0.1
* MooTools 1.6.0
or/and your own external scripts.
Use cases:
* Site debugging (wrong list sort, etc.)
* Extract useful information from website, such as billings/orders metadata
* Hide annoying popups and Ads
* Custom UI
* Anything you can think of :)
Inject large JavaScript: https://github.com/xcv58/Custom-JavaScript-for-Websites-2#how-do-i-inject-large-javascript
New features:
Ace Editor (formating, highlight, undo/redo by hotkeys)
Draft auto save (so doesn't matter when you close the window without saving)
Hosts (websites) switch (you can browse customjs of other websites)
Include external script (eq. Underscore.js is cool)
Thanks to:
Ace - http://ace.c9.io/
Pure - http://purecss.io/
Read more
Your scripts are kept by the Chrome sync API and applied across domain URLs. You can inject custom JavaScript based on domain or custom Regular Expression (since v3.1.1).
This extension supports dedicated tab to edit your codes since v2.5.1
You can use some built-in libraries such as
* jQuery 1.12.4
* jQuery 2.2.4
* jQuery 3.2.1
* Indefinite Observable 1.0.1
* MooTools 1.6.0
or/and your own external scripts.
Use cases:
* Site debugging (wrong list sort, etc.)
* Extract useful information from website, such as billings/orders metadata
* Hide annoying popups and Ads
* Custom UI
* Anything you can think of :)
Inject large JavaScript: https://github.com/xcv58/Custom-JavaScript-for-Websites-2#how-do-i-inject-large-javascript
New features:
Ace Editor (formating, highlight, undo/redo by hotkeys)
Draft auto save (so doesn't matter when you close the window without saving)
Hosts (websites) switch (you can browse customjs of other websites)
Include external script (eq. Underscore.js is cool)
Thanks to:
Ace - http://ace.c9.io/
Pure - http://purecss.io/
Source Manifest.json
{
"update_url": "https://clients2.google.com/service/update2/crx",
"description":"Run custom JavaScript on any website.",
"version":"3.4.12",
"manifest_version":2,
"name":"Custom JavaScript for Websites 2",
"short_name":"customjs",
"author":"xcv58",
"minimum_chrome_version":"52.0.2743",
"icons":{"16":"icon-16.png",
"19":"icon-19.png",
"32":"icon-32.png",
"38":"icon-38.png",
"48":"icon-48.png",
"128":"icon-128.png"},
"background":{"scripts":["background.js"],
"persistent":false},
"content_scripts":[{"all_frames":true,
"js":["run.js"],
"matches":[""]}],
"web_accessible_resources":["*.css",
"base.js"],
"browser_action":{"default_icon":"icon-48.png",
"default_popup":"popup.html"},
"content_security_policy":"script-src 'self' 'unsafe-eval' https://*.googleapis.com https://gitcdn.link https://cdnjs.cloudflare.com; object-src 'self'",
"permissions":["storage",
"http://*/",
"https://*/",
"tabs"]}
Read more
"update_url": "https://clients2.google.com/service/update2/crx",
"description":"Run custom JavaScript on any website.",
"version":"3.4.12",
"manifest_version":2,
"name":"Custom JavaScript for Websites 2",
"short_name":"customjs",
"author":"xcv58",
"minimum_chrome_version":"52.0.2743",
"icons":{"16":"icon-16.png",
"19":"icon-19.png",
"32":"icon-32.png",
"38":"icon-38.png",
"48":"icon-48.png",
"128":"icon-128.png"},
"background":{"scripts":["background.js"],
"persistent":false},
"content_scripts":[{"all_frames":true,
"js":["run.js"],
"matches":["
"web_accessible_resources":["*.css",
"base.js"],
"browser_action":{"default_icon":"icon-48.png",
"default_popup":"popup.html"},
"content_security_policy":"script-src 'self' 'unsafe-eval' https://*.googleapis.com https://gitcdn.link https://cdnjs.cloudflare.com; object-src 'self'",
"permissions":["storage",
"http://*/",
"https://*/",
"tabs"]}