Top "Greasemonkey" questions

OBSOLETE as of Firefox 57.

window.close and self.close do not close the window in Chrome

The issue is that when I invoke window.close() or self.close() it doesn't close the window. Now there seems …

javascript google-chrome greasemonkey tampermonkey
Get image data url in JavaScript?

I have a regular HTML page with some images (just regular <img /> HTML tags). I'd like to get …

javascript image firefox greasemonkey base64
alert a variable value

How do I display the value of a variable in javascript in an alert box? For example I've got a …

javascript greasemonkey
Event when window.location.href changes

I'm writing a Greasemonkey script for a site which at some point modifies location.href. How can I get an …

javascript dom greasemonkey dom-events
How do I get the information from a meta tag with JavaScript?

The information I need is in a meta tag. How can I access the "content" data of the meta tag …

javascript html greasemonkey meta-tags
Why doesn't document.addEventListener('load', function) work in a greasemonkey script?

It doesn't give an error, and I put a console.log('loaded userscript wifi-autologin'), the console.log works, but the …

javascript greasemonkey addeventlistener
How can I use jQuery in Greasemonkey?

I tried putting this line but it doesn't work: // @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js jQuery …

jquery greasemonkey
Userscript to wait for page to load before executing code techniques?

I'm writing a Greasemonkey user script, and want the specific code to execute when the page completely finishes loading since …

javascript jquery greasemonkey tampermonkey
Injecting JS functions into the page from a Greasemonkey script on Chrome

I have a Greasemonkey script that works just fine in Firefox and Opera. I struggle with getting it to work …

javascript google-chrome google-chrome-extension greasemonkey userscripts
How can I use jQuery in Greasemonkey scripts in Google Chrome?

As some of you may know, Google Chrome has put some severe limitation on Greasemonkey scripts. Chromium does not support @…

jquery google-chrome greasemonkey require userscripts