Questions tagged [userscripts]

Userscripts are mainly javascript extensions for web browsers. Userscripts automate or customize actions, and they can change the layout or even "mash up" different websites.

Userscripts primarily refers to JavaScript extensions for web browsers. Userscripts can automate or customize actions, and/or they can change the layout or even "mash up" different websites.

Additionally, on most browsers, userscripts have access to an extended API that allows actions that are not permitted for ordinary JavaScript code running in the page scope.

Userscripts are available in most browsers:

  • Opera: Natively supported.
  • Firefox: Support via the Greasemonkey and Scriptish add-on.
  • Google Chrome: Natively supported (Greasemonkey script are supported by the Tampermonkey extension).
  • Internet Explorer: Support via Trixie extension.
  • Safari 4-: Supported after installing SIMBL and GreaseKit.
  • Safari 5+: Supported via NinjaKit (Japanese site, download link in English).

Scripts meant for Greasemonkey or Tampermonkey should be tagged , instead.
If the userscript is meant to be cross-browser compatible, use both and .

Resources:

  1. A detailed guide for enabling User scripts in all major browsers.
  2. Google Chrome, Userscripts, design document
  3. Opera, User JavaScript documentation
  4. Chrome-compatible userscripts at userscripts.org
  5. Opera-compatible userscripts at userscripts.org
  6. Greasemonkey wiki
  7. Scriptish wiki
65 questions
60
votes
3 answers

How to install a private user script in Chrome 21+?

In Chrome 20 and older versions, you could simply open any .user.js file in Chrome and it would prompt you to install the user script. However, in Chrome 21 and up, it downloads the file instead, and displays a warning at the top saying “Extensions,…
24
votes
1 answer

Is it possible to synchronize userscripts between Google Chrome installations?

I've noticed that userscripts aren't automatically synchronized like (regular) extensions in Google Chrome. Is there any way to ensure that userscripts are synchronized between Chrome installations?
23
votes
3 answers

How can I disable javascript popups/alerts in Chrome?

Sorry if it's been asked. I've already found several solutions that aren't working. Not sure what I'm doing wrong. I don't want to disable all javascript, only Javascript alert boxes. The ones that pop up and force you to click OK or X to close…
CreeDorofl
  • 2,469
19
votes
1 answer

How do I install a userscript?

What are the steps to install a userscript for any of the major browsers? This question is for the benefit of those trying to get the minimal theme working. One browser per answer please.
Moshe
  • 5,908
14
votes
2 answers

How can I restore a lost Tampermonkey userscripts

Recently my chrome glitched and tampermonkey just stopped working. I uninstalled and then reinstalled extension (with hope that scripts stay in place), but my scripts got deleted. Luckily I have a backup of profile directory. So how I can restore…
Artem P
  • 380
8
votes
1 answer

How do I install userscript from the local machine with GreaseMonkey 1.12 (2013 autumn)?

I use Greasemonkey 1.12 with Firefox 24. I have an userscript file on my computer. I cannot find the way to install my already written userscript from my local machine - how it is done? There used to be some custom userscript window. Now it's…
n611x007
  • 6,566
  • 15
  • 67
  • 91
8
votes
2 answers

How to install a UserScript in Internet Explorer 9?

Is there any way to install a UserScript or GreaseMonkey script in IE9? I know that Trixie used to be able to provide this capability but it doesn't seem to work in IE9 at all.
7
votes
2 answers

How do I install a standalone Greasemonkey userscript into Google Chrome?

Installing Greasemonkey user scripts could not be any easier, usually, but how do you install a .js file which has already been downloaded like, for example, from GitHub, or copied from pastebin? With Google Chrome's built-in Greasemonkey support…
paradroid
  • 23,297
6
votes
1 answer

Userscript to bypass websites that disable right clicking in the browser?

I'm using a website that uses the following code in their html source (as discussed here on Stack Overflow), as a way to disable right-clicking on the web page: I am assuming the easiest way to permanently and…
user78017
6
votes
1 answer

Firefox native support for userscripts - without addons

I want to run some custom userscripts in Firefox but without add-ons like Greasemonkey. A long time ago it was possible to do so by putting scripts in a folder named userscripts\\ inside the Firefox user profile. I tried it but I think it no longer…
Azevedo
  • 588
5
votes
1 answer

Open links in Gmail on Chrome in Firefox

I use Firefox as primary browser, but use Gmail in Chrome. I'd like all the links in e-mails and chat to open in a new Firefox tab instead of a new Chrome tab, automatically (I know copy-paste, drag and drop… !). I looked for an extension, or an…
Joan
  • 185
  • 8
5
votes
2 answers

Convert [object XrayWrapper [object HTMLSpanElement]] to html tag

In a userscript i am getting [object XrayWrapper [object HTMLSpanElement]] instead of html span tag. How can i get the html tag like -- from this object?
UserPink
  • 51
  • 1
  • 2
5
votes
1 answer

Is it better to use a Userscript version of a Firefox Add-On?

I'm a heavy Firefox user with many add-ons. I also use some userscripts via Scriptish. I found some Firefox extensions that offer both the userscript and add-on version like A Bit Better RTM. Userscript Firefox Addon. Is it better to use the…
4
votes
2 answers

How do I prevent automatic browser page refreshment done by Javascript?

There are some news websites which automatically and periodically refresh their page just in order to show the user more advertisement. If you are watching a video, all the buffered stream is gone when it refreshes the page. Or, when you are reading…
hkBattousai
  • 3,219
  • 16
  • 46
  • 62
4
votes
5 answers

How to loop YouTube videos?

Is there any plugin/script for Google Chrome (or any other browser) which allows me to play any YouTube video in a loop without any user intervention? I know of youtuberepeater.com but I don't want to visit another site just to loop the video.
Mayank
  • 2,278
1
2 3 4 5