Questions tagged [tampermonkey]

Tampermonkey is a userscript manager for Google Chrome, Microsoft Edge, Safari, Firefox, Opera, Dolphin Browser, and UC Browser. Tampermonkey scripts are privileged JavaScript code snippets, with access to a custom API that allows you to customize the way web pages look and act.

Tampermonkey is a userscript manager for Google Chrome, Microsoft Edge, Safari, Opera Next, and Firefox.

Tampermonkey allows users to apply customized javascript to sites, to alter how the sites look and/or behave. Multiple websites can even be "mashed up" via cross-site scripting techniques. (Tampermonkey scripts have fewer security restrictions than ordinary javascript).

Tampermonkey differs from native Chrome userscripts in that Tampermonkey supports almost all of the Greasemonkey API, and Tampermonkey scripts are now easier to install and manage than native userscripts. Installation is not restricted to Google's store, so popular sites like userscripts.org still work.

Tagging Guidance:

Please do not tag Tampermonkey questions with , unless the script is meant to also work as a native Chrome userscript (which is usually not the case).


References and Resources:

1715 questions
0
votes
0 answers

Auto clicking a button on a page using tampermonkey

I know nothing on how to code so i need help making this one. I'm trying to auto click a button on a page as soon as it come up. I'm using the Chrome extension called tampermonkey to do this. The HTML button i'm trying to click is this:
Fogey
  • 15
  • 4
0
votes
2 answers

Replace HTML JS and CSS files with tampermokey

Is it possible to replace HTML, JS and CSS files with Tampermonkey? These files would be hosted on a server and would just replace the files I want like the index.html, a JS files and the main styles CSS. I could only find how to replace functions…
user1723097
  • 109
  • 1
  • 7
0
votes
1 answer

Redirect during the script execution

I have to test a web site, and I have wrote a tampermonkey script that surf randomly the site and change parameters, sometimes I need to change page and if I change page with window.location.replace(URL) or by pressing button with the script, for…
Andrea993
  • 663
  • 1
  • 10
  • 23
0
votes
0 answers

how to obtain and match Google's Print Page link calling it in a userscript

I want to delete a certain element from google's print page by injecting a userscript. However, i can't find the matching link to replace the question-marks in the @match row // ==UserScript== // @name test // @namespace …
L.Papa
  • 1
0
votes
1 answer

GM_addValueChangeListener example

I haven't been able to find any GM_addValueChangeListener examples on the web. I would like to add a simple listener for Chrome (Tampermonkey) to see if a GM value has been set. If not chrome I set an interval instead. if (!!window.chrome &&…
0
votes
1 answer

GM_setValue Event Listener

I am exporting strings from one webpage to another on a different domain. I am using GM_setValue and GM_getValue to transfer the data between the windows. I currently have a button on each site, one for exporting the data and the other for importing…
0
votes
1 answer

tampermokey script only runs 1 time

I have a tampermonkey script that runs on a video play list. It should run on each playlist I click on, but it only runs on the first playlist and I have to close chrome and repopen it to get it to work on a new playlist. var playlistmax =…
User
  • 1
  • 5
0
votes
2 answers

element.click() doesn't work without alert()

I wrote a tampermokey script that counts the i intervals and clicks the next video, but the odd thing is it works only if the alert is uncommented: var i = 1; setInterval(function () { document.getElementsByClassName('PlaylistVideo')[i].click(); …
0
votes
1 answer

Close a window after it has finished loading from window.open with Javascript

Please forgive me if this has been answered before but I've searched and searched and haven't been able to find a solution to my problem. I'm using Greasemonkey in Firefox and Tampermonkey in Chrome to automatically open a link on a webpage I visit…
0
votes
1 answer

Userscript works in Tampermonkey on Chrome but not in Greasemonkey on Firefox

I have been using a userscript in Greasemonkey on Firefox and Tampermonkey on Chrome for over a year and a half now. It adds a scroll to top button on every webpage. I tried adding another site to include in Greasemonkey but then it seemed to have…
0
votes
0 answers

Get description for event in current popup

I'm currently trying to write my own tampermonkey script to insert an event's description into the popup within Google Calendar. (EDIT: The popup showing the details of a specific event when clicking on it) Unfortunately Google calendars internal JS…
RusH
  • 41
  • 8
0
votes
1 answer

Why does my automatic reload function behave erratically?

I am creating a Tampermonkey script to use on Upwork.com. It is supposed to reload the job list page every 15 seconds to reveal new entries. The problem is that it will reload the page every millisecond instead. I tried placing setInterval in its…
Jon Kantner
  • 593
  • 2
  • 10
  • 29
0
votes
0 answers

How execute Tampermonkey script under an IE Tab Page in Chrome

I´m writing a script for use with the Tampermonkey Chrome Extension and I intent this script runs under a page displayed on browser with IE Tab Chrome Extension but I could´nt define a @match pattern that causes my Tampermonkey runs when the page is…
0
votes
1 answer

Use more then 1 skin in JavaScript Mod

I am making a script in JavaScript that when a user types in a specific name then the script will load a skin. The issue is right now the code only works with 1 skin and I want it to work with multiple. I got the base code of Github and I don't know…
Makan
  • 37
  • 1
  • 6
0
votes
1 answer

Greasemonkey Run Script Once A Day

I am trying to make it so my script runs once per day at most. Here is what I currently have: var q = new Date(); var m = q.getMonth(); var d = q.getDate(); var y = q.getFullYear(); var currdate = new Date(y,m,d); if (GM_getValue("date", "") <…
Bijan
  • 7,737
  • 18
  • 89
  • 149
1 2 3
99
100