Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I simplify the change/reload process when editing a Greasemonkey script / Chrome userscript?

I found that I can install a Greasemonkey userscript in chrome by navigating to chrome://chrome/extensions/ first then dragging the *.user.js file onto this page.

Do I need to drag this script onto this page every time I change the script? What process should I use to reload my changed userscript as I change the script and want to see the changes?

like image 417
Phil Avatar asked Apr 21 '26 22:04

Phil


1 Answers

For just plain *.user.js files, yes, you must drag it (reinstall) each time you make a change.

However, if you manually create a folder structure and your own manifest.json file, as shown in the Controlling the Script and name section of this answer, then all you have to do is click the Reload link after each change -- or press CtrlR.

I usually keep the extensions page open in a different window, so I can quickly AltTab to the Reload link and back.

like image 168
Brock Adams Avatar answered Apr 25 '26 11:04

Brock Adams