I’m trying to figure out how to block the magnify function whenever you hover over an item on this page: https://hibid.com/lots?q=cisco&status=OPEN I see that is is loaded in this script function magnify(o,t,e=””): https://cdn.hibid.com/cdn/pwa/1.15.3.34/scripts.6a4acc6484fe8adf.js Any help is appreciated, Thanks Answer You can overwrite the function with window.magnify = () => {}; since it’s a global.
Tag: greasemonkey
Tampermonkey automation of selecting option in a menu
I’m trying to write a script for selecting an option from a menu once the website is loaded. Here is the code of the menu. I have tried several codes from StackOverflow. Like and Both of them work in the Console of Google Chrome. However, it does not work when I copy and paste the script in tampermonkey. Does anyone
How can I find and access a JavaScript property (‘Blazor’) of ‘window’ with a (GreaseMonkey) user script?
With the following (GreaseMonkey) user script I am trying to find (and later access) a JavaScript object (namely ‘Blazor’): When I run the script (i.e., reload the page), I get the following output in Firefox’ console: So window.Blazor can not be found. However, when I inspect (click on) the window object I can see the Blazor property: Calling ‘Blazor’ in
Can’t figure why this code don’t edit the ‘href’ attributes in FB pages
I wonder why this code don’t edit the facebook href attributes. I’m pretty sure it should works. I get error in console Error: Promised response from onMessage listener went out of scope The code: Answer I think you have one semi-colon that is causing a problem. I ran the following at facebook.com (in the dev console) and it worked: Since
Clear all cookies in a userscript?
How to clear all cookies or at least restart the browser in a tampermonkey/greasemonkey script? Answer To clear the cookies edit your Chrome shortcut (or write a shell script in Linux/MacOS) and add (or use a random port number that’s not used by other processes) so you can send Network.clearBrowserCookies RDP command:
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=”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 make my userscript work on specific pages of a site that uses the history api?
(This is in continuation of this discussion) I’ve been trying to make a script (for instagram) that shows how many images out of total are currently visible when viewing a profile page (example profile). It shows the counter in the upper right corner of the screen and supports infinite scrolling. Here it is: My script works ok, but I have
Unbind .onselectstart return false
I am trying to write a userscript that will remove the effects of onselectstart from an id on a page. So far I am assuming that I can rebind the original function using something like this: JSFiddle Any ideas would be appreciated. Answer Looks like I managed to work out the answer. Thank you LightStyle for giving me the hints.
How can I run a Greasemonkey script when page changed via ajax?
I have that script: It works fine but it works only main page load. I want to run this when page changed via ajax. How can I do that? Also please give examples with your answers. I’m newbie. I don’t know how to use things in your answers. Answer Since browser’s environment is event-driven you’ll have to either set up