I’m trying to auto click a button in tampermonkey, but for some reason the code isn’t executing. Though, if I put the code in console and run it, it works fine. Here it is: Button does not switch dynamically, tried doing an alert when the function runs, doesn’t alert me. Answer Given your co…
Tag: tampermonkey
Detecting combination keypresses (Control, Alt, Shift)?
I am trying to make a script run when Ctrl + Alt + e is pressed. How can Tampermonkey fire on a simultaneous ctrl, alt, and e key? I have tried ctrlKey, and altKey. I’ve found nothing that works. How can I edit the script below to fire on Ctrl + Alt + e, instead of just e? Answer Refer
Automatically check a checkbox with a userscript?
Some sites (namely Steam Community Market) require the user to manually check a specific checkbox for repetitive actions like buying items. I’d like to have that checkbox always checked. URL: http://steamcommunity.com/market/listings/730/USP-S%20%7C%20Torque%20(Field-Tested) element: <input id=”…
How to convert a bookmarklet into a Greasemonkey userscript?
Is there a easy way to do this. And is there anything that needs to be changed due to differences in how it is ran? Answer The easiest way to do this: Run the bookmarklet code through a URL decoder. so that javascript:alert%20(‘Hi%20Boss!’)%3B, for example, becomes: javascript:alert (‘Hi Bos…