Top "Userscripts" questions

Use the Tampermonkey tag if running Tampermonkey or Violentmonkey, use the "Greasemonkey-4" tag if running that engine on Firefox.

Uncaught ReferenceError: function is not defined with onclick

I'm trying to make a userscript for a website to add custom emotes. However, I've been getting a lot of …

javascript onclick userscripts
Manually adding a Userscript to Google Chrome

Instead of "installing" User-Scripts I found many tutorials on the web to add it manually. All of them told me …

google-chrome userscripts
Stop an input field in a form from being submitted

I'm writing some javascript (a greasemonkey/userscript) that will insert some input fields into a form on a website. The …

javascript html forms userscripts
Using ECMAScript 6

I'm looking for a way to run ECMAScript 6 code in my browser's console but most browsers don't support functionality that …

google-chrome google-chrome-extension userscripts ecmascript-6
How can I replace the text in JSON string with a userscript for Greasemonkey

I want to create a user script for Greasemonkey in Firefox without using jQuery, which can replace old text by …

javascript html json replace userscripts
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
Simulating a mousedown, click, mouseup sequence in Tampermonkey?

I would like to simulate a whole click not just document.getElementsByClassName()[0].click(); How do I do that? Search results …

javascript mouseevent greasemonkey userscripts tampermonkey
How to change a class CSS with a Greasemonkey/Tampermonkey script?

I'm trying to set the background image of the body, but only where it uses the class banner_url. The …

javascript css greasemonkey userscripts tampermonkey
Is there any way of passing additional data via custom events?

I need to pass data between two autonomic user scripts - ideally without touching the unsafeWindow object - and I …

javascript dom google-chrome-extension dom-events userscripts