1,348 questions
-8
votes
3
answers
143
views
How to automatically approve Perplexity GitHub Connector popups on the web UI?
I'm using Perplexity web UI (https://www.perplexity.ai/) with the GitHub Connector to automate code edits and commits. Every time I ask Perplexity to create/update files or make changes, an "...
0
votes
2
answers
193
views
User script append to DOM without having to reload page
I am working on a user script (I'm using Tampermoney as my user script manager) to append a dynamic Rotten Tomatoes link to a Jellyfin movies/series page.
It works when I manually reload on the title'...
2
votes
2
answers
223
views
In a userscript, how do you modify a react.js's click event to open the href in a new tab?
It took a lot of trial and error to figure out how to do this so I figured I would post my own answer. That said, I'd prefer a vanilla JS userscript. I've only figured out how to get this working with ...
2
votes
1
answer
207
views
How to achieve atomicity (and concurrency safety more generally) when accessing user script storage?
In modern user script managers, APIs available to access storage private to the user script, like GM.getValue and GM.setValue, are asynchronous. Since they are asynchronous, scripts using them are ...
1
vote
1
answer
91
views
How can I open a new page to specific text location?
I'm trying to implement a simple Tampermonkey userscript in my Firefox browser that searches a current window (containing lines of debug logs) for a URL, then opens this URL using window.open(url, '...
0
votes
0
answers
93
views
Every time I scroll down on reddit and make the posts float to the left, the view keeps going back to the top
screen recording
https://www.reddit.com/r/nextfuckinglevel/top/?t=month
// ==UserScript==
// @name REDDIT: gallery view
// @match https://www.reddit.com/*
// @require https://raw....
0
votes
0
answers
59
views
Tampermonkey userscript no longer picks up rating/tags on itch.io games listing
I’m using Tampermonkey on Chrome to hide itch.io games with average rating ≤ 3.0 or containing certain tags. Until recently I scraped data-ratings_avg and .game_tags a from each .game_cell. After a ...
0
votes
2
answers
147
views
How do I change the innerHTML of a newly created element watched by a Mutual Observer, WITHOUT causing memory leaks and freezes?
Imagine a website that has infinite scrolling, where a link saying download, appears underneath every post. I would like to change from a word to something else of anything else. (In my case a 24x24 ...
2
votes
2
answers
101
views
How to select the currently active / most recently focused video on a page with multiple videos?
On a page with multiple videos the currently active / most recently focused video reacts to standard keyboard actions like Space to play/pause the video or F to toggle full screen mode. This is ...
0
votes
0
answers
75
views
How to Reliably Extract Hidden Detailed Email Headers in Gmail using a UserScript?
I am developing a UserScript for Gmail to copy comprehensive email details, including the full header information (Sender, All Recipients, Date, Message-ID, 'mailed-by', 'signed-by', etc.).
The header ...
0
votes
1
answer
130
views
iOS WKWebView's addUserScript does not work first time for "about:blank"
I am able to demonstrate my issue using the below simple example.
I basically need to use the addUserScript to load different scripts based upon which website the web view has navigated to. This works ...
0
votes
0
answers
32
views
Chrome Extension UserScript Execute Without Refresh Page
Does anyone know a way to make a script registered with chrome.userScript execute immediately without having to refresh the page? In manifest v3 the accepted way to execute user script is through the ...
0
votes
1
answer
247
views
Automating clicks with userscript (tampermonkey)
I have a userscript for https://docs.google.com/forms. I'm trying to auto open the "Share" modal window and re assign all Editors to Responders.
To open the share modal this works:
function ...
0
votes
1
answer
76
views
Userscript for pasting content to Arqade (an SE site) comments always gets the error "No textarea found [...]"
I'm making a userscript for easy pasting of canned messages that we use on Arqade. However, every time I try to use it, I get the error:
No textarea found inside the target comment form.
What am I ...
0
votes
0
answers
40
views
Chrome: How to set navigation key focus on page start? (userscript or extension)
Background
Navigation keys (arrow, page-up/down) can be used to move element viewport, and user need to click the scrollable element to "focus" it.
However, the focus for this specific ...