Questions tagged [greasemonkey-4]

Greasemonkey 4 is a major milestone, breaking most of the Greasemonkey scripts for earlier versions (although a polyfill restores some compatibility).

Note that for maximum compatibility of existing scripts, Greasemonkey recommends that you switch to Tampermonkey or Violentmonkey:

As mentioned in the main post, Greasemonkey 4 is changing how it runs user scripts. Many user scripts will continue to run as expected, but this will break some scripts. If you rely on such scripts, you might want to install Violentmonkey or Tampermonkey, both of which provide better compatibility for existing scripts.


Additional references:

86 questions
18
votes
3 answers

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.
matthew_360
  • 5,593
  • 6
  • 30
  • 39
13
votes
2 answers

How to Transfer All Greasemonkey userscripts to Tampermonkey on Firefox 57+

After read that Greasemonkey recommends users to install Tampermonkey or Violentmonkey. I've installed Tampermonkey and now I'm trying to transfer all my Greasemonkey 3.x scripts to be opened on Tampermonkey, but I can't find it's location or even…
Comentarist
  • 618
  • 1
  • 6
  • 20
9
votes
1 answer

Greasemonkey Add On does not work properly

I've installed the Greasemonkey Add On but I can neither install any scripts nor I can create my own scripts. When I click on the Add On in the upper menu bar I see following entries: Greasemonkey is active New user script ... Greasemonkey home…
rm -rf
  • 876
  • 1
  • 9
  • 24
7
votes
2 answers

Greasemonkey script folder missing

I am following the instructions to transfer Greasemonkey scripts to Tampermonkey: How to Transfer All Greasemonkey userscripts to Tampermonkey on Firefox 57+. However the folder "gm_scripts" mentioned in the instructions does not exist on my…
Danny R
  • 79
  • 1
  • 3
6
votes
2 answers

Is the Immediately-Invoked Function Expression (IIFE) pattern really necessary when writing userscripts?

My question is quite similar to What is the purpose of a self executing function in javascript?, however it concerns userscripts (specifically for GreaseMonkey) instead. I see that some userscripts are distributed with this pattern, and some are…
Marc.2377
  • 5,840
  • 5
  • 43
  • 75
6
votes
0 answers

Why do functions and classes assigned to `window` not equal themselves in a GreaseMonkey script?

I have a class Foo with a static method that compares this to Foo, and for some reason the output of that comparison is false: // ==UserScript== // @name GreaseMonkey test // @version 1 // @grant none // @include * //…
Aran-Fey
  • 30,995
  • 8
  • 80
  • 121
5
votes
2 answers

How do I run code on DOM ready in Greasemonkey 4?

With the update to Firefox 57 and Greasemonkey 4 a number of my userscripts broke. In some scripts I used: document.addEventListener('DOMContentLoaded', doStuff, false); This no longer works in Greasemonkey. What is the proper way to add an…
jahu
  • 4,899
  • 2
  • 35
  • 55
5
votes
1 answer

How to make GM_getValue existent in Greasemonkey on Firefox?

The dupe candidate is for previous GM versions. The problem is likely somewhere around the different scopes where the userscripts can run, as described here. However, as described here, this functionality is currently undocumented for Greasemonkey…
peterh
  • 9,698
  • 15
  • 68
  • 87
5
votes
1 answer

How to store Greasmonkey 4 Scripts in git

With the new update to Firefox 57 and Greasemonkey 4.0 it seems that the gm_scripts folder is no longer where the user.js scripts are stored. Where are the scripts stored now? Any suggestions for keeping these scripts in git?
Rob
  • 3,428
  • 2
  • 28
  • 38
4
votes
1 answer

How to implement auto-update in a Greasemonkey script?

I am writing a Greasemonkey script, how to implement auto updating? Is possible put script into GitHub repository and set @version number? And then... is some automatically way how to do it? Or I must manually check.
chosirai
  • 113
  • 2
  • 7
3
votes
1 answer

Greasemonkey XMLHttpRequest not show in firefox developer tools->network

I wrote a script as a user script and ran it on a specific website with Greasemonkey. It work perfectly, but I want to see requests that my script has been sent, in Firefox developer tools-> network tab ,shows the page requests and not show my…
2
votes
1 answer

How do I take text contained in web page and make it part of the page title?

I desperately need help with writing a Tampermonkey/Greasemonkey script that takes part of the information within the web page and makes it part of the page (and window) title. A client's name is part of the target (internal) web page, and clearly…
kwantum
  • 59
  • 5
2
votes
1 answer

Syntax differences between Tampermonkey and Greasemonkey?

I've been trying to transfer a lot of my Tampermonkey (in Google Chrome) userscripts to Greasemonkey in FireFox. Unfortunately, it seems that they don't work properly when I transfer them into Greasemonkey - I'm assuming there are syntactical…
theCrabNebula
  • 279
  • 2
  • 8
  • 21
2
votes
1 answer

YouTube - don't display context menu on right click

The idea: seek YouTube video by dragging and dropping on the video player with right button (e.g. 1 second for every 2% of screen width). So on a 1920x1080 screen, if I press the right mouse button, drag it some 384px (20%) to the left and then…
2
votes
0 answers

Greasemonkey 4.x: working with multiple .js files

I'm working on a user script that's growing in size and getting a little bit hard to manage, so I was thinking of moving some functionality to a separate .js file (or files). AFAIK, (since GM 4.0) you can't really access your script's location on…
Cren7ist
  • 41
  • 2
1
2 3 4 5 6