How to use Tampermonkey: tested scripts
Tampermonkey is a browser extension that runs your own userscripts on the pages you choose. Each guide below was run in a real Chrome profile against test pages built to trigger the problem.
-
Tampermonkey Auto Click Every 5 Seconds: 6 Cases I Tested
A tested Tampermonkey script that clicks a button every 5 seconds, and why it fails on re-rendered, disabled, reloading and background pages in Chrome 154.
Fix -
Tampermonkey Script Can't Find the Element? 5 Traps I Tested
Tested on Tampermonkey 5.5.0 and Chrome 154: why querySelector returns null on load, a working waitForElement function, and fixes for SPAs and shadow DOM.
Fix