Search results
Apr 6, 2021 · Settings Checkmark: TamperMonkey Dashboard -> Settings -> General (Config mode: Advanced) -> Debug scripts. Or, in your userscript add the line: debugger; like so: (Doing this at the top of a userscript is equivalent to the Tampermonkey setting) When you have a console open on a page using the script it will pause when the debugger lines are ...
Nov 14, 2021 · In Greasemonkey (And Tampermonkey and most userscript engines) a script will fire on an iframe automatically if it meets the @include, @exclude, and/or @match directives. And, a popular question is how to stop Greasemonkey from firing on iframes .
90. @match only works on the protocol/scheme, host, and pathname of a URL. To trigger off the query parameters, you can either use @include or use @match and also test the URL yourself. Note that the @match approach performs faster. With @include, you can use a regex syntax. See, also Include and exclude rules.
Greasemonkey's cousins, Tampermonkey and Scriptish, support more @run-at values which include document-idle and context-menu which may be of use. It also appears that Greasemonkey is adding support for document-idle although it hasn't been documented as of yet. –
Mar 18, 2013 · Now available on Stack Overflow for Teams! AI features where you work: search, IDE, and chat
Jun 21, 2013 · The solutions that work on Greasemonkey (which is Firefox), may be different on Chrome and on Tampermonkey. Three basic approaches: Use 30 different @include lines: While this may be unpalatable in terms of cut-and-paste coding, it is the one approach that will work the same across browsers and the one that will have the best browser performance.
Jul 15, 2014 · For future googlers, If you have used the above method and still jQuery doesn't seem to be loaded by your script try looking at the spaces, And try to match the indentation with the rest of the header.
Feb 4, 2016 · To see the current behavior (and change it): Go to Tampermonkey settings. Make sure Config Mode is set to Beginner or Advanced as you will not be able to change the setting when in Novice mode. Find Icon Badge Info on the settings screen and set it to your liking. In Novice mode this is showing the number of "running script instanced".
May 24, 2018 · Now available on Stack Overflow for Teams! AI features where you work: search, IDE, and chat
Feb 1, 2022 · Learn how to create a Tampermonkey script that triggers an alert on click events in JavaScript on Stack Overflow.