Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
28 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 ...
macheteYeti's user avatar
1 vote
1 answer
78 views

How do I create a userscript that creates a button on a webpage, that when clicked, runs the GM_registerMenuCommand for that userscript?

I have a userscript that includes a GM_registerMenuCommand('Render LaTeX', () => { (and so forth) that makes part of the userscript only run when manually triggered by selecting the ViolentMonkey ...
Logan J. Fisher's user avatar
0 votes
1 answer
30 views

How can I fix this userscript to work in a browser that has committed the inputs it uses to be its own shortcuts?

The idea of this userscript is that when browsing search results, you can hold different combinations of three keys to indicate whether that tag will be added to your search query with an AND, NOT or ...
KitchenConsort's user avatar
0 votes
0 answers
21 views

How Can I Use Docker's BuildKit to Run a Health Monitoring Script at Container Startup with Conditional Logic?

I’m interested in using Docker's BuildKit to run a health monitoring script at container startup, but I need the script to include conditional logic based on runtime parameters or environment ...
guillaume counceling services's user avatar
0 votes
0 answers
37 views

Get text from nested DIV by contents of parent div

I am trying to extract some text from a webpage. I've tried something like: var headings = document.evaluate("//div[contains(., 'Location')]", document, null, XPathResult.ANY_TYPE, null ); ...
Jeff's user avatar
  • 125
1 vote
1 answer
140 views

Creating a custom shortcut for Google Docs (Alt + P download as pdf)

I wrote the following script to download as PDF a Google Docs file; when I click Alt + P nothing happens. I'm using Google Chrome. // ==UserScript== // @name Google Docs PDF Download Shortcut /...
Federica Guidotti's user avatar
1 vote
1 answer
44 views

UserScript Update Link According to Original Link

What I want is when I visit a specific website that all urls on the PAGE that match (example.com/view=list or example.com/view=card or example.com/view=posts etc..) are changed to: example.com/view=(...
p1r4t3rs's user avatar
0 votes
0 answers
32 views

How can I elegantly locate elements without an ID when the website uses frameworks like Tailwind CSS?

Many modern websites are increasingly using frameworks like Tailwind CSS, which rely heavily on utility classes (e.g., text-center, flex) rather than IDs for styling. This can make it challenging to ...
earthmessenger's user avatar
2 votes
1 answer
263 views

Trying to hide an element using TamperMonkey userscript

Objective I am trying to hide an element using Temper Monkey user script The testing webpage is https://www.dmla5.com/play/8733-1-5.html. After clicking the pink button, a video will be loaded. My ...
Electron X's user avatar
1 vote
2 answers
90 views

How to focus YouTube search suggestions items?

I currently have this code. This opens the YT search in a new tab when you click the middle-mouse button: (function() { 'use strict'; var searchIcon = document.getElementById("search-...
Julius Esen's user avatar
1 vote
1 answer
346 views

How to do a javascript fetch without being blocked by CORS policy? [duplicate]

I tried to run this javascript code on a Tampermonkey userscript on many webpages but they all gave the same problem: (I modified some details) var data="744483"; var url="https://...
Ryan Newman's user avatar
0 votes
0 answers
28 views

Trying to write a userscript which redirects from a website which shows ERR_CONNECTION_REFUSED

I'm trying to have a script which redirects me from old burningseries domains to the newest ones, so I don't have to change all my bookmarks in chrome. I tried the following code, which worked when ...
Moorex's user avatar
  • 1
0 votes
0 answers
217 views

injecting javascript on samsung internet browser?

Is there any way to inject JS in websites on Samsung internet browser anymore? They patched bookmarklets a year ago as a "vulnerability" (So now you can't run javascript: bookmarks) ...
fres's user avatar
  • 13
1 vote
1 answer
286 views

userscript (violentmonkey) script runs on first page, does not run on subsequent pages

I am trying to make a userscript that will open the invoices from Amazon in new tabs, so that I can try to categorize my spending better. It's a PITA. Here's the link: https://www.amazon.com/cpe/...
Jeff's user avatar
  • 125
1 vote
1 answer
43 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 '...
f f's user avatar
  • 13

15 30 50 per page
1
2 3 4 5
90