Questions tagged [greasemonkey]
OBSOLETE as of Firefox 57. Use [greasemonkey-4] or [tampermonkey] as applicable. If using some other browser userscript engine, use [userscripts].
2,814
questions
0
votes
3
answers
44
views
No Body Data Being Passed using .NET CORE 6
I'm migrating my code from .NET to .NET Core 6 and have hit a brick wall and googling doesn't seem to have helped so any advice, pointers will be welcome.
All of this works in .NET so it's clearly my ...
1
vote
1
answer
24
views
How to prevent pages from detecting the user left a page / clicked outside of the window?
I'm just wondering, is it possible to prevent certain pages from detecting (probably through JS) that I have left the current window environment?
Some pages reset a timer if you leave the active/...
0
votes
1
answer
19
views
In a userscript/greasemonkey, how do you use a newer version of jQuery when the website already uses an older version?
I'm trying to write a userscript for a website that is already using an ancient version of jQuery. If I @require a modern version in the userscript, I get a console error about how a field named ...
0
votes
0
answers
15
views
Tampermonkey script not firing on web app using websockets
I use GM/TM scripts extensively and they work without fail except on one site: a Slack-style enterprise chat tool, Mattermost. The page loads, opens a websocket, then fetches the chat pane content and ...
1
vote
1
answer
25
views
Adding an element each time a popover is drawn
I want to write script adding one element to other element with particular id when it appears on page. It is added to a document when user hovers over other element.
In terms of business logic: when ...
1
vote
1
answer
24
views
Where I can find GM_xmlhttpRequest xhr console logs
I have a little userscript running on Tampermonkey in Firefox (chrome has the same behavior)
The xhr logs of these requests doesn't appear in the console or network analysis.
Because it is a cors ...
0
votes
0
answers
15
views
Find and delete up a nested chain
I have created a Greasemonkey script with the purpose of hiding tiles in a tabular view. Specifically, these 'tiles' (articles) are a wrapped around a which is identified by having a specific icon ...
1
vote
2
answers
43
views
How to trigger Tampermonkey/Greasemonkey userscript in Slack web verision?
I'm having trouble getting any userscript to execute in Slack web interface.
The script is loaded with the page, as shown by Tampermonkey, but it doesn't even write into the console.
Even something ...
0
votes
1
answer
40
views
Tampermonkey automation of selecting option in a menu
I'm trying to write a script for selecting an option from a menu once the website is loaded. Here is the code of the menu.
<select name="abc" id="abc" multiple="" size=...
0
votes
0
answers
52
views
Can't get DOM of visible download button after site update
Injected javascript on youtube with violentmonkey in hopes to make the download button link to a yt1s with current video url. Can't get the DOM of the download button after changing video (the button ...
2
votes
0
answers
72
views
Javascript open URL after site redirect
I am making a script in greasemonkey, It will do the next:
Look if URL include "ABC" if it include extract the ID, and make new url with the ID extracted, this mainsite will redirect to ...
0
votes
0
answers
19
views
Gm Script to click a radio button only highlights it, doesnt click it
I have a questionnaire (Yes/No questions) on a webpage that I need to create a grease-monkey script for, which will auto-select all "Yes" options (radio buttons with value yes in the page). ...
0
votes
1
answer
50
views
Replacing page elements dynamically through a greasemonkey script (even post page load)
I have the following javascript function:
function actionFunction() {
let lookup_table = {
'imageurl1': "imageurl2",
};
for (let image of document.getElementsByTagName("img&...
0
votes
0
answers
198
views
Tampermonkey/greasemonkey youtube redirect script from /shorts/* to /watch?v=*
No idea how to code, but the title should explain what I'm after.
If I go to https://www.youtube.com/shorts/zUy4y2CqCV0 I would like to automatically be redirected to the full youtube player version ...
-3
votes
1
answer
59
views
JS Greasemonkey Input Text Box
I'm a newbie JS programmer, just trying to do some automation here and there with extensions like Greasemonkey/Tampermonkey/Violentmonkey.
I ran into a wall that I can't find a solution, already tried ...
0
votes
0
answers
24
views
Is it possible to pause Javascript engine execution through Javascript in Chrome?
I already know you can pause Javascript execution through the Chrome debugger console.
But is it possible to trigger this functionality via Javascript itself?
if (button_pressed)
{
console....
0
votes
0
answers
53
views
how to load localhost with GM_xmlhttpRequest on Tor browser?
have a strange issue with the Tor browser and Violentmonkey,
this script:
// ==UserScript==
// @name New script
// @namespace Violentmonkey Scripts
// @match https://example.org/
// @...
0
votes
0
answers
46
views
Tampermonkey - is it possible to access sidebars?
As you probably know some of available internet browsers allow users to use sidebars without closing the actual tab. For example in edge you can press Ctrl+Shift+E to quickly search something without ...
0
votes
0
answers
16
views
Tampermonkey 2 Scripts Running On Same Website But Only One Works at A Time
I have written 2 scripts that operate on an internal website. The first one is supposed to work on the root of the website and the second one if you click through to a link. Currently, the first one ...
0
votes
1
answer
60
views
Prevent opening links in a new window (stay in current)
I need to force all links on a page to open in the same window. Is there a reliable userscript that does this?
It would be applied to a web app that handles links using JS. The code is complex (...
-1
votes
1
answer
16
views
Selection from dropdown lists based on index rather than value
I have this 'select' dropdown list on the website:
<select id="customQuestion0" class="form-control maxCharLimit" data-bind="'css':{'inputError': verificationFailed}, 'attr'...
0
votes
0
answers
107
views
Greasemonkey/Tampermonkey script to redirect
I need Greasemonkey/Tampermonkey script to redirect
from https://vk.com/audios
to https://vk.com/?section=all
Tryed to customise another scripts but they didnt work
Help me pls!
1
vote
0
answers
172
views
Any way to intercept and modify external static javascript in an HTML? tamper monkey or grease monkey or any other way
I have a page that loads javascript using a <script src="some/script.js"> tag. I wanted to replace a string in the external javascript file. And I found no way to do this in chrome. ...
0
votes
0
answers
10
views
Ignore all mouse events in ace?
There's a certain website which runs ace, and I would like to use greasemonkey to disable all mouse interaction with ace.
The rest of the website should still get all (relevant) mouse events.
It this ...
0
votes
0
answers
148
views
Script works in Greasemonkey but not Tampermonkey
I've found a script that works within Greasemonkey on Firefox but doesn't work on Tampermonkey in Chrome. The only thing i've found online to try is changing "unsafewindow" to "window&...
0
votes
0
answers
16
views
How to change the *actual* value of DOM Input Text Object in Tampermonkey [duplicate]
I am new to Javascript and trying to write a script in tampermonkey to create a button that generates emails on getnada.com
The problem is when you want to create a new email the webpage shows a ...
-2
votes
1
answer
63
views
Grease/tamper monkey script to look for specific HTML in page and alert
I would like a grease/tamper monkey script, that when I visit a page, it looks for the following HTML on the page, and if it is present alert.
<p>
<script
type='text/javascript'
...
0
votes
0
answers
39
views
Greasemonkey script won't run on the Warning: Potential Security Risk Ahead page in FireFox
I've written a little bit of JS code to click on the Accept the Risk and Continue button in FF however, Greasemonkey won't run it. The code works fine in the console. I'd appreciate any help in this ...
0
votes
3
answers
200
views
userscript for getting rid of annoying notifications counter on title of pages like Facebook, Linkedin, etc
I am trying to do a userscript rid of annoying notifications counter on title of pages like Facebook, Linkedin, etc.
Firstly I tried to use the extension "Rename Tab Title" https://chrome....
0
votes
0
answers
34
views
Add SocialBlade link on YouTube channel / page
When on YouTube click button to search for channel links on SocialBlade.
Visit YouTube channel
Bottom right link button
Click and it redirects in new tab https://socialblade.com/youtube/c/***/videos/...
0
votes
0
answers
150
views
Fetch other web page and get async content
In my Greasemonkey script I'm fetching some other web page and using the response in my code. However when I do this, it only gets the initial HTML content. If some of the content is async (which ...
0
votes
1
answer
121
views
Can't click on a button, need a solution (userscript for Greasemonkey/Tampermonkey)
I'm trying to click the "Visit" button here:
<a name="claim" href="#" onmousedown="$(this).attr('href', '/sdf/view.php?dsg=45368');"
class="btn-small ...
0
votes
0
answers
36
views
XMLHttpRequest in Greasemonkey: intercepted response but page stuck loading
Trying to intercept request to get response data in a Greasemonkey script, I successfully get the response, but the actual page (any skill page on duolingo.com) just keeps loading forever as if ...
1
vote
1
answer
128
views
selecting dynamic class names generated by react from a user script?
I tend to write my own user scripts (aka Violentmonkey / Tampermonkey scripts; formerly Greasemonkey scripts). I often end up selecting elements by class name while doing so - either using native ...
0
votes
1
answer
47
views
Why is Greasemonkey javascript reporting an element has a class when web developer tools indicates that it doesnt seem to have
I'm trying to write a greasemonkey script that automtically presses a button on a page, but only if a tab is disabled, the tab shows duplicates records and when I inspect the page in firefox using Web ...
0
votes
0
answers
217
views
Tampermonkey waitForKeyElements on successive YouTube videos
I have a script that currently does away with those pesky "Continue watching?" prompts on YouTube, using Tampermonkey and waitForKeyElements.
However, it only seems to work if the prompt ...
-1
votes
1
answer
180
views
Tampermonkey waitForKeyElements refreshes page after click and creates endless loop?
I am trying to automatically click the "Still watching? Video Will Pause Soon" button on YouTube so that my videos don't stop after X amount of time. I have created a Tampermonkey/...
0
votes
2
answers
46
views
Dynamic, multidimensional array in javascript - counting up not working
I need a 3 dimensional array to count up - it needs to grow dynamically. It consists of index, string1 and string2.
This outputs exactly, what I want (for a single loop, since the array is just ...
-1
votes
1
answer
121
views
Greasemonkey: one more what is the concept of intercepting/modifying fetch requests?
I've dug all the questions here, and, to proove the concept, what I've understood that if I want to catch a response from a request call - I have to alter the function that website implements. As I am ...
-1
votes
1
answer
16
views
Greasemonkey: POST data causes underscores in float numbers
let jsonString = JSON.stringify(json);
console.log(jsonString); //prints {"5667787":"currentTaxless":99.82,"current":123.78}}
GM....
-2
votes
1
answer
251
views
Auto refresh and alert if changes
Hello im working in javascript code with extension tampermonkey to auto refresh and check if there is available dates in appointement website if true then alert
this code of auto refresh
setTimeout(...
0
votes
1
answer
37
views
How can I trigger a function when certain text on a specific element appears?
I need to add some code to a webpage when a certain text appears on it.
So I load a webpage, and this appears:
<div id="someid" class="someclass" style=""></div&...
0
votes
0
answers
148
views
Disable Artstation Popup
I'm bad at Javascript. When using Artstation, it will prompt me to log in. I don't want to.
In their main.6dd57cc2a9e0f72b4453.js script, there is the check:
t.prototype.isSignedIn = ...
1
vote
1
answer
71
views
Greasemonkey Click Button without ID or Name
I'm trying to autoclick this button with greasemonkey. I tried to find a reference to this button with document.getElementsBy[ClassName/Name/TagName] with ClassName i find buttons but not the one i ...
0
votes
0
answers
48
views
Click event on an element spawned by a chrome extension
So I'm trying to click om "eggs" spawned by this chrome extension Play Vairus but nothing seems to be working, Is it because extension elements are isolated?
I tried things such as document....
0
votes
0
answers
58
views
Greasemonkey - how to execute script only on 1 URL? iFrame issue
I have this Greasemonkey script which autoplays embedded Youtube videos.
// ==UserScript==
// @name Autoplay YT
// @namespace 78
// @include https://www.youtube.com/embed/*
// @version ...
0
votes
1
answer
77
views
How to run script only if div:contains in an iFrame - Greasemonkey
So let's say we have this code in an iFrame. I'm pretty sure the iFrame is from the same domain, that matters I think.
<div id="10">You become 1 best coder</div>
I want a ...
0
votes
1
answer
76
views
How do I make a shortcut key WITHOUT getting input from text fields
I am quiet new to Javascript and so I decided to make a shortcut key userscript for m.youtube.
It does work but when I am using that shortcut(Ctrl+Z to undo text) in a text field for writing a comment ...
0
votes
1
answer
96
views
Can this simple Firefox extension be turned into a Greasemonkey script?
I have this Firefox extension that someone made for me. It prevents websites from opening download boxes and redirects and stuff like that. It works very well. It will prevent some websites from ...
2
votes
0
answers
209
views
How to use GAPI in Tampermonkey JS Script? I'm trying to use google sheets API for my tampermonkey script
So I'm trying to make a tampermonkey script, and I'm a beginner in JS, and I want to add the google API library to my code to make gapi work, since I want to write into spreadsheets from my JS ...