2,843 questions
1 vote
1 answer
263 views
How to use console.log in tampermonkey script when website blocks console from printing anything
I am testing a script with Tampermonkey on the Duolingo website, but all console.log, console.error, etc., statements are blocked (they don't appear in the console after running). What should I do to ...
-3 votes
1 answer
79 views
Greasemonkey: change text in HTML
I have looked at several solutions for similar problems in here but I wasn't able to understand either The webpage I'm trying to edit has the following bit: <h4 data-v-42b52bab="" class=&...
0 votes
1 answer
932 views
GM_xmlhttpRequest - injected: Refused to connect to "https://...": URL is not permitted
I use the latest Firefox, Tampermonkey and do some cross site scripting. And this script is working for multiple people just fine. But suddenly for 1 and only 1 person I get this error message: ...
0 votes
0 answers
81 views
How to intercept Ctrl-d?
I have the following Greasemonkey script: (function() { 'use strict'; document.addEventListener('keyup', (ev) => { if (ev.ctrlKey && (ev.key == 'e' || ev.key == 'd')) { ...
1 vote
0 answers
88 views
Userscript Can't Run on Google Search Console Pages?
I'm trying to create a script which will allow the exclusion of certain results on the "not indexed" page of Google Search Console, to alleviate reviewing things repeatedly. Violentmonkey ...
0 votes
1 answer
56 views
Greasemonkey: Listening on if table gets "refreshed"
I am working on a Tampermonkey/Greasemonkey script that adds a new column to a table on this page https://www.fangraphs.com/leaders/major-league. I have a working version that adds the column and it ...
1 vote
1 answer
84 views
How to make a Userscript redo all the actions in subsequent webpage navigations of the same URL?
I have a UserScript like the below: document.querySelector('[title="Select: This option"]').checked = true document.querySelector('[title="Click to continue"]').click() After the '...
1 vote
1 answer
84 views
Trying to create greasemonkey to check a box on a page
New greasemonkey user, I have put together this code to check a box name isRegex... but the check box code is skipped console.log("Monkey script"); var chkBox,regBox; var sQuery = "//...
2 votes
1 answer
332 views
How can I get Tampermoney to set the color of visited links?
HackerNews (https://news.ycombinator.com/) styles visited links with a similar color to unvisited links. I want to style the visited links a contrasting color. I'm new to Tampermonkey (and web/js in ...
0 votes
0 answers
1k views
TamperMonkey: Modify Post Request Data Payload OR Change Response Body
I'm still fairly new to user scripts/Javascript and have been looking for a way modify either the request data payload or change the returned response body of a post request. The site in question ...
1 vote
1 answer
1k views
Unable to get GM_notification function to work in Tampermonkey userscript (chrome, OSX)
I'm trying to re-write some of my Tampermonkey scripts to use some of the built in TM/GM functions, but I can't get them to work. An example is the GM_Notification function. I'm testing it out using ...
0 votes
0 answers
85 views
Where do GM.setValue()s database entries get stored in Firefox/MacOS?
GreaseMonkey, Firefox, Mac OSX. I know you can see the keys with GM.listValues() but I cannot find a straightforward answer on Google where the sqlite/file is so that you can read the data somewhere ...
0 votes
1 answer
864 views
Having an issue with a tampermonkey script constantly refreshing a page
My company has a status screen that we access through PLEX to have a visual reference of the state of machines across the factory floor. We display this status screen across multiple monitors ...
1 vote
1 answer
104 views
GM_addStyle with dynamic class name?
I have an Website which contains something like this: <div class="yqCWmB"> <img referrerpolicy="unsafe-url" src="//www.golem.de/1903/sp_Vllz-744275_rc.jpg" ...
3 votes
1 answer
704 views
Using pure JS set Select2 value and trigger events
I'm using grease monkey user script to restyle UI and automate initial input on some weird site, which uses jQuery and Select2. I dealing with row containing two selects: organization (options are ...