Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you create a new script in Greasemonkey 4?

Greasemonkey 4.0 has changed its interface, and for the life of me I cannot find any way to create a new script.

enter image description here

like image 461
matthew_360 Avatar asked Nov 14 '17 22:11

matthew_360


People also ask

How do I make a Greasemonkey script?

In your Firefox window, once you've downloaded and installed Greasemonkey, there'll be a little monkey face in the right-hand corner of the status bar. Right-click on that and you'll get a menu that includes the option "New User Script". Click that and you'll get a dialog looking a bit like the box on the right.

How do I add a user script to Greasemonkey?

You can also click on the drop-down arrow and select "Manage User Scripts" to manage all of your installed Greasemonkey scripts. Previous versions of Greasemonkey can be used with older versions of Firefox, like Firefox 3, but there is no guarantee that the scripts will work.


1 Answers

Update: this was fixed in version 4.1 on 11-Dec-2017 (thankfully someone opened a bug for it)

Greasemonkey 4.1 menu


It really seems like version 4.0 has no way to do this (and is very poorly documented) and so my workaround was just to install a simple/short script that seemed low risk and then just edit that script to make it my own.

I used this script (source code to check for safety) and clicked the green "Install" button near the upper right of the page:

The button

This installed it into Greasemonkey.

After that, you can click on the Greasemonkey toolbar icon, click on the script you just added, and then click "Edit" in the submenu to edit it.

like image 107
scooter Avatar answered Sep 26 '22 06:09

scooter