Skip to content
Advertisement

Tag: tampermonkey

Tampermonkey .click() not working

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 code: and based upon your comment below,

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=”market_buynow_dialog_accept_ssa” type=”checkbox” value=”0″ name=”accept_ssa”> Can that be done with Tampermonkey? I found document.getElementById(“checkbox”).checked = true; which seems logical to me. I put it in a new Tampermonkey

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 Boss!’); Strip the leading javascript: off.   Result: alert (‘Hi Boss!’); Add

Advertisement