Run custom JavaScript on any website.
Use this tool to inject custom javascript in any website.
Your scripts are kept in the local storage and applied across domain URLs.
You can use jQuery 1.11.0 or 2.1.0 or your own external scripts
Usage:
- site debugging (wrong list sort, etc.)
- hiding annoyng popups and Ads
- anything you can think of :)
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)
- Launch script on the page embedded by iframe
Change log:
- 2.1.3 - Fixed Cyrillic problem in source
- 2.1.40 - Fixed a problem with the installation
Thanks to:
Ace - http://ace.c9.io/
Pure - http://purecss.io/
Latest reviews
- (2021-04-08) Amanda Frazier: ES6 IIEFs won't work, and I can't seem to access any DOM elements on the screen. Not sure what the point of this is.
- (2021-03-10) robert cannot: You can only set up on the main link ( example.com ) You can not set this link ( example.com/page )
- (2021-02-27) A A: A great idea, but its *constantly* deleting my saved javascript for websites, which means if I'm not backing up the files somewhere literally every time I make a change, I'm going to have to rewrite the code.
- (2021-02-12) דניאל ל: There is a problem bypassing the 30 seconds countdown timer in this website: https://sdarot.tv/watch/3284-%D7%91%D7%99%D7%AA-%D7%94%D7%A0%D7%99%D7%99%D7%A8-money-heist/season/1/episode/4
- (2020-12-01) Andrey Izman: Does not save multi-line template strings and even regular multi-line strings split by ' + '. Just waste of my time. Don't use it
- (2020-11-29) Erik de Boer: Great extension, it does exactly what it has to do perfectly.
- (2020-11-15) Suleiman Boutzamat: After a refresh, my code still runs but it cannot be seen in the editor!
- (2020-10-27) Roman Karagodin: I used this extension until recently with my custom script for autofill, and it works well. But I switched to Custom JavaScript for Websites 2, because CJS1 has several very unpleasant bugs (e.g., in CJS scripts are often ineditable, because their text in editor mystically disappears, except for the 1st line; also, CJS editor is almost impossible to be dealt with from mobile devices). Unlike the this extension, CJS2 is totally free of these issues and works perfectly.
- (2020-10-02) Mike L.: code gets cut off after saving / stops running.
- (2020-09-23) Andrew Surdu: Stupid extension. I press "Save", the page is reloaded automatically and the code is gone. Totally disappointed. Also the tab looses the focus, the code is gone as well.
- (2020-08-24) Zellmer: meine Scripte werden nicht gespeichert, also auch nicht ausgeführt
- (2020-04-14) fires3as0n: I put 20 lines of code, page reloads, I open editor, there is only first line of code there
- (2020-04-01) Anbarasan: I love it
- (2020-03-30) Haneol: I will share my script. This is for youtube and when video is clicked, that will be opened in another specific tab. This will be useful when watching video with second screen and searching with the other. If anyone who can make it better, please let me know... $(document).on("click", "a", function(e){ let href = $(this).attr("href") if (href.startsWith("/watch?v=")) { window.open("https://www.youtube.com" + href, "youtube") setTimeout(function(){ window.history.back() }, 500) } })
- (2020-03-23) Jeremy Wu: hmmm, It would be better if you support controlling script position in HTML https://developer.chrome.com/extensions/content_scripts#run_time
- (2020-01-15) Andrew A 7698: Not work, but in console my script work
- (2019-10-15) Alex P: Doesn't work. Waist of time.
- (2019-10-14) Paul Vasile: Doesn't work
- (2019-10-08) Vasyl Butov: Does exactly what it supposed to, BUT if you clear site data, extension's data clears as well. I'd like ether an option to keep script even after clearing site data or some preset templates to quickly apply changes. P.S.: absolutely love this extension, but 2 starts just for devs to notice this.
- (2019-09-27) Motaz Ibrahim: There is no explanation on how to open the editor and use it I click on it and then nothing
- (2019-09-08) Adrian Boisclair: This is a great extension. Seems to have a few minor issues, ie sometimes the javascript doesn't load into the editor (the dropdown text-box containing the JS) but other than that it works nicely. I'm curious though.. One thing that strikes me as a little bit intrusive on an individuals privacy is that your extension is able to read all of our browsing history. Is this 100% necessary? If you had an anonymous version of it I bet it would be huge in popularity.
- (2019-09-07) Adam Yeh: This is perfect app and i love it so much!
- (2019-09-06) K F: Za każdym razem czasu usuwa napisane skrypty.[PL] Every time deletes prepared scripts .[ENG]
- (2019-08-15) Jake Crump: hey google. Delete all other js-injection plugins because this one works and the others are trash. kthxb
- (2019-08-11) Will Ashley: Has a pretty egregious bug. When you paste in your JS to the text area, hit save, reload the page, then click the extension again, only the first line of the pasted code is prefilled in the editor, but it seems like the extension does indeed save the state because the snippet still runs. Seems like a very strange bug. It should always show the full snippet upon reload each time, otherwise it is not worth the time as tweaking your snippet as your needs change will be untenable.
- (2019-07-16) Evan Matariel: Funciona de maravilla
- (2019-07-11) xj x: only one line of source loaded
- (2019-07-03) M i r a c H: Works perfect, dont forget to block your .js file on console!
- (2019-04-03) Sergey Nagorets: Works perfectly, but having possibility to sync would be great!
- (2019-03-30) Jean Marc: It works but I can't see the code after few days, only the first line of the code is visible, don't want to write everything all over again.
- (2019-02-13) Ethan M: No more clicking the same button across 30 tabs. I just find the button (via XPath -- see below), and let this wonderful CJS extension rip! var x = document.evaluate('//path/to/some/button', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE); x.snapshotItem(0).click(); I am - however -- having better luck with this apparently cloned version of CJS: https://chrome.google.com/webstore/detail/custom-javascript-for-web/ddbjnfjiigjmcpcpkmhogomapikjbjdk/related?hl=en.
- (2019-01-30) David Brewitz: Been using it for a couple years and it does what it says.Works great for adding your custom js.
- (2019-01-10) Jukka Hautakorpi: Scripts dissapear every other month or so without a trace. Not so good.
- (2018-12-09) Michael Ivanov: Exactly what I was looking for.
- (2018-11-27) Erik Brickarp: Performs exactly what it says and performs it well!
- (2018-10-23) Joseph Salerno: Simple, to the point and no annoying extra feature or limitation. Just perfect.
- (2018-08-29) eslam alshbah: I like it so much
- (2018-07-19) Ron Klein: Great just missing the ability to import & export the JS code (for backup or for moving to another computer) Also, there is a bug that it's not possible to inject more then 2 external files (the second line is wrongly concatenated with the third line creating wrong url to inject)
- (2018-05-27) Nicolas Mokris: Custom code suddenly disappeared.
- (2018-05-11) Marat Dospolov: Man it's awesome!!! Thank you!!!
- (2018-04-24) Merbin Joe: Nice, very helpful
Statistics
Installs
62,057
history
Category
Rating
4.3 (373 votes)
Last update / version
2019-10-13 / 2.2.5
Listing languages
en