Questions tagged [greasemonkey]

OBSOLETE as of Firefox 57. Use [greasemonkey-4] or [tampermonkey] as applicable. If using some other browser userscript engine, use [userscripts].

OBSOLETE as of Greasemonkey 4 -- which is a major change that is not backwards compatible.


Usage Hint

Use this tag if you are using Firefox, pre version 57. Use the tag if you are using Tampermonkey on Chrome. For all other userscripts, please use the tag.

GreasemonkeyMain add-on page is a userscript manager for Firefox. Userscripts are written in JavaScript, and run in every page as specified by the @include, @exclude, and @match rules.

Greasemonkey also permits special operations that ordinary javascript is not allowed to do. See the Greasemonkey API.

Userscripts are also available on/for other browsers; see the tag wiki of .
Important: Please use only if you are running the Firefox browser and/or using the add-on.
For all others, use , if it applies, or .


Premade userscripts:

Premade userscripts can be found at:


References:

2842 questions
1
vote
1 answer

How to change a browsed page's ?

I'm jQuery beginner. I'm trying to modify the source code of a page I'm browsing, using Firefox plus Greasemonkey. How can I modify: to:
Valeria Kaya
  • 147
  • 2
  • 13
1
vote
1 answer

Built in JavaScript/Greasemonkey function to get server time?

Is it possible to get server time with Greasemonkey? A site I use tells you when you last did something showing server time... but the clock on the corner of the page shows my time zone... I was hoping to write a script to change that, but was…
Kat Cox
  • 3,469
  • 2
  • 17
  • 29
1
vote
1 answer

Fixing GoogleMonkeyR column width issue. How to change a script's CSS?

GoogleMonkeyR is an awesome Greasemonkey script, however it is currently a bit broken, as the search results come across in a very narrow column. Running: document.getElementById("GoogleTabledResults").style="width:1900px"; In the console widens…
bag-man
  • 1,423
  • 2
  • 19
  • 23
1
vote
1 answer

How to select the first of these buttons?

I want to use a Greasemonkey script to click a button. The button HTML starts like below; there are 3 buttons, corresponding to 48/50/52 respectively. The 48/50/52 are not identical, so is there some way to selectively click the button by mean of…
user1663601
  • 65
  • 1
  • 6
1
vote
2 answers

How to make a timeout between function calls?

My code works fine, except it opens all links at the same time. I would like to use a delay. This opens all (more than one function "Open") at the same time: waitForKeyElements ("input.submit[onclick*='Open']", clickOpenBtn); but I want a delay…
1
vote
1 answer

XPath not working to click a button from a Greasemonkey script

I would like to open a link that contains the word google. It looks like this: I tried…
1
vote
1 answer

Why doesn't this script work with successive page clicks?

I am currently using the following script in Tampermonkey in Google Chrome: // ==UserScript== // @name Youtube opt in Ads per channel // @namespace schippi // @include http://www.youtube.com/watch* // @version 1 //…
1
vote
1 answer

XPathResult methods and properties not working greasemonkey userscript

I have installed greasemonkey plug-in for Firefox (my FF version is 21.0). I wrote a userscript named mahesh.user.js var links = document.evaluate("//span", document.body, null, 6, null); Now when I print the following console.log(links); The…
Mahesh
  • 954
  • 8
  • 18
1
vote
2 answers

How do I modify an existing button's onclick to open a new tab using Greasemonkey?

I have a bunch of buttons on a page that I want to cause to open in a new tab because I'm on dialup and I hate having to hit the back button and wait for the page to load again before I can click the next button. The button code looks like…
Kat Cox
  • 3,469
  • 2
  • 17
  • 29
1
vote
2 answers

What in a GreaseMonkey script can cause Firefox to crash?

I have a relatively large script in GreaseMonkey and it seems to be crashing the browser after some time. It looks like it does its thing and then after a while Firefox just dies. Seems to me that this has to be connected with to my script. The page…
VoY
  • 5,479
  • 2
  • 37
  • 45
1
vote
1 answer

GreaseMonkey @include for about:newtab

I have a script that I want to run on EVERY page. To do it has been quite easy I simply set @include * and its done. It shows up on every page, activated by a hotkey combination I have assigned to it inside the code. It works as expected and without…
GµårÐïåñ
  • 2,846
  • 5
  • 31
  • 35
1
vote
1 answer

How can I save greasemonkey outputs across numerous tabs

I have a working greasemonkey script that adds a button to a page. When clicked the button scrapes some information from the page, puts it into a variable called str. Right now I'm printing the variable to the page, which is working fine. I need to…
Aman Chawla
  • 704
  • 2
  • 8
  • 25
1
vote
0 answers

Event on DIV change in Greasemonkey script

I am fairly new to Javascript but I am trying to write a Greasemonkey script to modify the contents of a DIV to add more information. The contents I am trying to modify may be changed by the existing code of the site. Is there anyway I could trigger…
Fr33dan
  • 4,227
  • 3
  • 35
  • 62
1
vote
2 answers

Clear cache with greasemonkey

I have a web application running in a kiosk, which is set up with greasemonkey so that we can customize little things about the application and ensure the customizations only occur at the kiosk. I have been digging through the GM api hoping that it…
user35288
1
vote
1 answer

Preventing pop-up box from being displayed using Greasemonkey

I would like to stop a pop-up box from appearing on a webpage. Not a alertbox, but an actual box that pops up on mouseover. Take Gmail for example, if you hover over someones name a box would pop up with some information about that user. Using Gmail…
ComputerLocus
  • 3,448
  • 10
  • 47
  • 96
1 2 3
99
100