I am getting the plain text of outlook calendar events and converting them to an ics for download with Tampermonkey. The button worked when I wrote this a couple of years ago, but now it is not. I am not sure if I need to grant permissions now or if something else broke it. The button is added just fine,
Tag: tampermonkey
change select values one after another with tampermonkey
I have select boxes as part of a larger form. I have to pick an option in one box before options in the next populate. I get as far as selecting the first box and triggering the second to populate but can’t get the second one to select. my code: I do know that JavaScript just runs everything, not one
How to block a function from being called?
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.
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
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:
Trying to remove some characters from a string via JavaScript
I have a script where it parses a SVG image. I’m trying to parse a attribute named “opacity” and remove the period and zero than add a zero if it equals “0.8” for a example. The number 8 could be any number lower than 10 though. So basically if it starts with “0.” remove it and add a “0” after
settimeout not working properly when i tried to use it to refresh a page
The purpose of this code is to refresh a page after either a wait time of 1 second or 5 seconds depending on a random variable. However, the code below makes it so that it either refreshes after a wait time of 1 second EVERY SINGLE TIME, or it refreshes after a wait time of 5 seconds EVERY SINGLE TIME.
How can I develop my userscript in my favourite IDE and avoid copy-pasting it to the Tampermonkey’s editor every time?
For security reasons, Tampermonkey scripts are not saved in accessible files, but in a plugin data. The only way to edit them is to use Tampermonkey’s integrated editor. However, I’d rather use IDE, with all its features. I also want to use webpack to pack the script from multiple files. To do that, I need a way to programmatically change
Develop Tampermonkey scripts in a real IDE with automatic deployment to OpenUserJs repo
I recently started development on a Tampermonkey script, which is hosted on OpenUserJs. It seems that I’m going to invest a bit more time in the future on this script by keep it up to date and extend his features when time is there. The first lines I wrote on the Tampermonkey editor which is integrated in chrome (edit button