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:

97 questions
0
votes
0 answers

Tampermonkey global from @require with or without unsafeWindow

I'm trying to make a tampermonkey script available to other tampermonkey scripts via the @require functionality, which is fine, but I also want to expose functions in the script which is being required to the scripts consuming it. I've tried…
0
votes
1 answer

greasemonkey start refresh function on new tab

I have an old greasemonkey script that used to start refreshing pages on new tab: // ==UserScript== // @name script // @namespace http://localhost // @description Monitor the location page and catch the egg you want. // @include …
0
votes
1 answer

Badge icon on GreaseMonkey

I am using GreaseMonkey on the latest version of Firefox on Windows 10 and was wondering if there is a way when Greasemonkey is enabled and you visit a site to show a badge icon of the active scripts for that tab. Regards, George
user3474704
  • 37
  • 1
  • 7
0
votes
0 answers

Injecting scripts in Chrome Extension global object and tamper with shadow DOM

Warning: possibly involves a set of programming bad practices to bypass security features. We're developing a bundle of scripts that extract public information from some website. I use ViolentMonkey to inject scripts in the website, which uses…
0
votes
1 answer

Is there a way to capture errors while loading required resources on Tampermonkey?

I have a tampermonkey script with a @require annotation for a library that provides me with certain tools for the script to work in a specific manner. However, there are times in which this library is not available (it falls behind a login, so if no…
ggonmar
  • 760
  • 1
  • 7
  • 28
0
votes
2 answers

Greasemonkey Get and Set Value not working and killing script with no error

I'm trying to store some values that will persist through page loads and browser closing in Greasemonkey. My code is as follows: // @name Netflix saw it button // @description Apparently Netflix can't afford enough storage space or…
not_a_generic_user
  • 1,906
  • 2
  • 19
  • 34
0
votes
1 answer

Is there a way to find where the code creates the dynamically popup on browsers?

When I open a website that's not developed by me, it created a pop up of a DIV element. How can I find which code create that popup? I tried to set the breakpoint, but it only show the popup in the first time. Please note the key here are It's a…
user7423749
0
votes
1 answer

Output outside of page

I'm trying to output some very detailed summary information about the properties of nodes in the DOM tree. Several years ago, I wrote a browser extension that created a new window and wrote the output there; that extension is no longer compatible…
0
votes
0 answers

How to save a variable in javascript, so that its available in all firefox tabs

Im running two scripts using greasemonkey in mozilla firefox. The scripts run on different websites. In the first script i want to save a variable "globally" into firefox so i can use it in the second script on another website. button.onclick =…
0
votes
1 answer

How to autofill a text field in a pop up using greasemonkey?

So basically I have a text field, with the following Elements. // The element locators for the text box are as follows: type="text" name="custom_version_ui" value="" id="custom_version_ui" placeholder="" class="custom form-control…
0
votes
1 answer

share data between 2 greasemonkey scripts running on different pages

with Firefox 68 and Greasemonkey 4.9, i want to set a value from a script on a webpage and get that same value from another script on another webpage. it seems not working. How can i do that ? Here is what i tried : script 1 // ==UserScript== //…
izus
  • 115
  • 5
0
votes
1 answer

Intercept XMLHttpRequest from Greasemonkey script fails

I seek to manipulate the XMLHttpRequest done by a website using Greasemonkey (version 4.9 installed). Interception should be simple (How can I intercept XMLHttpRequests from a Greasemonkey script?) but does not work for me. Maybe things changed with…
0
votes
1 answer

GM.xmlHttpRequest `synchronous` option not working

The following code creates an alert with the content undefined: // ==UserScript== // @name Unnamed Script 188765 // @version 1 // @grant GM.xmlHttpRequest // @include http*//markasoftware.com/* // ==/UserScript== alert(typeof…
markasoftware
  • 12,292
  • 8
  • 41
  • 69
0
votes
0 answers

How do I trigger a function using waitForKeyElements when a certain AJAX element CONTAINING SPECIFIC TEXT is loaded?

I want to be able to trigger a function when a certain AJAX element is loaded. I'm using Brock Adam's excellent waitForKeyElements function to wait for a certain HTML element, which could appear via AJAX a long time after the main page is loaded. …
kwantum
  • 59
  • 6
0
votes
0 answers

Greasemonkey script does not work inside a popup

I've written a simple greasemonkey script to click the next button on a popup module presentation window when I hit the right-arrow-key. I haven't been able to find much information about this online. The code seems to work if the window is not a…
shanu2
  • 1
  • 2