Top "Greasemonkey" questions

OBSOLETE as of Firefox 57.

How to copy data to the clipboard with Greasemonkey?

I found this question but trying to use the code given there: unsafeWindow.netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); const clipboardHelper = …

javascript firefox greasemonkey clipboard clipboard-interaction
Understanding how Greasemonkey runs user scripts

I'm learning Greasemonkey with the hopes of making some improvements to a webpage. I think I have a good grasp …

javascript greasemonkey
XPath or querySelector?

XPath can do everything querySelector can do, and more, so when would you ever choose the latter? I haven't seen …

javascript xpath css-selectors greasemonkey selectors-api
Can a website know if I am running a userscript?

Can, for example, Facebook.com run a version control script on my browser and find out if I am running …

javascript facebook greasemonkey userscripts tampermonkey
My very simple Greasemonkey script is not running?

I am having issues with this very basic Greasemonkey script, most likely with the metadata configuration. Here is the full …

javascript debugging firefox greasemonkey
What is the difference between @include and @match in userscripts?

The GreaseSpot page on metadata blocks says that the two are very similar but @match "sets more strict rules on …

javascript greasemonkey userscripts tampermonkey
Chrome userscript error: "Unsafe JavaScript attempt to access frame"

// the iframe of the div I need to access var iframe = document.getElementsByTagName("iframe")[2]; var innerDoc = iframe.contentDocument || iframe.contentWindow.…

javascript google-chrome iframe greasemonkey userscripts
window.onload works in Firefox+Greasemonkey script but not in a Chrome userscript?

There is a page http://example.com/1.php that includes javascript file as usual: <script type="text/javascript" src="/…

javascript google-chrome cross-browser greasemonkey userscripts
Why is usage of the downloadURL & updateURL keys called unusual and how do they work?

I was reading GM's wiki to determine the difference between @downloadURL & @updateURL (which I didn't). But what confused me …

greasemonkey userscripts tampermonkey
userscript - Add item to right-click menu

I am writing a userscript for Greasemonkey and want to add an item to right click context menu. If I'm …

firefox greasemonkey