Questions tagged [script]

Use this tag to post a userscript that operates on Stack Exchange sites and/or uses the Stack Exchange API. For questions about user scripting and Stack Exchange, or its API, use the [scripts] tag instead. Scripts are usually JavaScript and usually browser extensions/userscripts. For other tools, the [app] tag may be more appropriate.

Use this tag to post a userscript that operates on Stack Exchange sites and/or uses the Stack Exchange API.

For questions about user scripting and Stack Exchange, or its API, use the tag instead. See this moderator's post for the history of this distinction.

Scripts are usually JavaScript and usually as browser extensions/userscripts. For other tools, the tag may be more appropriate.


Userscripts are predominantly privileged JavaScript that runs in a web browser and modifies a web site's behavior and/or appearance. See the userscripts wiki on Stack Overflow.


How to install user scripts in Google Chrome

There are two methods for installing userscripts in Chrome:

Method 1 (preferred, easiest, quickest)

  1. Install a userscript manager extension from the Chrome Web Store (free and quick). Choose one of:
  2. Visiting any page with a .user.js extension will now make the userscript manager prompt you to install the userscript:

Tampermonkey userscript installation dialog

Note: You may see certain posts linking to userscripts in 2 ways: 'view source' (or similar) or 'install'. Clicking 'view source' will let you do just that, and clicking 'install' will cause the userscript manager to detect it and let you install it from a simple, user-friendly screen (shown in the above screenshot).

Method 2 (unusable in Chrome versions > 35)

  1. Click on the link to the .user.js file found in the post

  2. Look for the confirmation at the bottom of your browser and click Continue.

    Are you sure you want to continue?

  3. Chrome will warn you that you can't install the script.Chrome warns: Extensions, apps and user scripts can only be added from the Chrome Web store.
    Because Google has disabled the direct installation of extensions that are not downloaded from their Web Store, you'll have to perform a few extra steps before you can use the script.

  4. The script should have appeared in your downloads bar.

  5. If the file name is modified to <filename>.user (<number>).js, rename the file so it ends with .user.js. Note: If file extensions are not displayed on your system, the name has to end with .user.

  6. Open the extensions manager. Go to Menu button > Tools > Extensions to open the extensions manager

  7. Drag drop the file from the downloads bar to the extensions page. If you had renamed it, drag-drop it from your file manager.

  8. Release the mouse if the text "Drop to install" appears.

  9. A dialog appears. Click Add to finish the installation. Confirm New Extension - click "Add" to install the script

  10. The script should now be installed. Refresh all tabs affected by the script to start using it.


How to install user scripts in Firefox

  1. Install a userscript manager add-on for Firefox if you haven't done so already. Choose one of:

  2. Click on the link to the .user.js file found in the post.

  3. An installation dialog from the userscript manager will appear. Review the sites on which this script will work on, view the source of the script if so desired and confirm that you wish to install the script

    Greasemonkey Installation dialog

  4. The script should now be installed. Refresh all tabs affected by the script to start using it.

How to install user scripts in Safari

GreaseKit (The hack approach, for Safari 4 and earlier)

  1. Download and Install SIMBL – (From the SIMBL website), SIMBL, pronounced like “symbol” or “cymbal” enables hacks. In other words, you can “patch” Mac applications to add functionality to them.
  2. Next, download GreaseKit. To install it, drag the GreaseKit.bundle file to ~/Library/Application Support/SIMBL/Plugins. If you don’t have a SIMBL/Plugins/ folder, just create it, then drop GreaseKit.bundle into it.
  3. Restart Safari, and you will see a new entry in the menu bar for “GreaseKit”.
  4. Click on the link to the .user.js file found in the post to install the userscript.
  5. The script should now be installed. Refresh all tabs affected by the script to start using it.

from http://mosheberman.com/wordpress/?p=284

NinjaKit (a Safari 5 extension)

  1. Go to the NinjaKit homepage. The page is in Japanese, but don't worry—the install link is in English.
  2. Click on the "NinjaKit for Safari" link.
  3. If you are prompted to open or save the file, select open. If the file automatically downloads, find the downloaded file (NinjaKit.safariextz) and double-click it.
  4. When Safari pops up a message confirming you want to install NinkaKit, click install.

How to install user scripts in Opera 15 and newer versions

Install the TamperMonkey extension, which makes installation simple and easy.

How to install user scripts in Opera 12 and older versions

  1. Create a folder for userscripts. (eg, C:\Program Files\Opera Browser\Userscripts\ - it does not need to be within the Program Files folder, anywhere is fine.)
  2. Within Opera, go to Tools > Preferences.
  3. Click the Advanced tab.
  4. Click Content in the choices on the left.
  5. Click JavaScript options.
  6. For the "User JavaScript files", click Choose.
  7. Select the userscripts folder created in step 1. and click OK.
  8. Click on the link to the .user.js file and save it to the userscripts folder created in step 1.
  9. Refresh the tab(s) affected by the script to start using it.

from http://www.howtogeek.com/howto/3986/set-up-user-scripts-in-opera-browser/

Development resources

513 questions
48
votes
8 answers

LegacyProfiles - Bringing back the old profile stats

Preview Note: The date is locale-based. Screenshot is in UTC What is LegacyProfiles? (install, unminified) LegacyProfiles brings back user info removed from profiles in a recent profile update. It is powered by StackExchange API and inspired by…
Spectric
  • 1,665
  • 5
  • 15
33
votes
7 answers

OpenAI detector

Screenshot / Code Snippet About This script adds a link to each post on SE, revision on SE revision pages, and post Markdown views on metasmoke, to check it against Hugging Face's AI detector. The first click will test the Markdown text using the…
Glorfindel
  • 6,772
  • 3
  • 20
  • 46
26
votes
1 answer

Stack Exchange Post Editor - Performing Basic Corrections on Posts Automatically

Screenshot About This script was originally inspired by SE Editor Toolkit. Unfortunately, the toolkit is packaged as a Safari extension and as such is unusable in Chrome, Firefox, and Opera. I had written a PHP script that converted the Safari…
Nathan Osman
  • 23,286
  • 11
  • 60
  • 107
25
votes
1 answer

Bring back the Bold!

Our insidious overlords have made some numbers on the page thinner. This script feeds the numbers a sandwich to get them back to normal size. Installation Click here to install. Will work in Chrome or Firefox (the latter requires Greasemonkey).…
Manishearth
  • 2,725
  • 16
  • 39
21
votes
2 answers

Copy Question Link Markdown - Making it easier to copy links to questions!

Screenshot / Code Snippet About This small UserScript makes it easier to copy the URL of the current question into pre-formatted Markdown. Once installed, it adds a 'copy' link to the question. License MIT…
Nathan Osman
  • 23,286
  • 11
  • 60
  • 107
20
votes
2 answers

Manual Draft Save - Save a draft on demand

Screenshot About This small script adds a save button to the editor bar that allows you to instantly save the contents of the editor as a draft. Although this happens automatically every minute or so, now you can force it to save the contents…
Nathan Osman
  • 23,286
  • 11
  • 60
  • 107
18
votes
2 answers

Select Code Block Buttons Script

Shows a select-button on mouse over on code-blocks to select the whole block for easier copying. Sorry to not provide a file for download but i am sure you will manage somehow, adjust includes as needed: // ==UserScript== // @name Select…
brunnerh
  • 661
  • 3
  • 10
16
votes
0 answers

Advanced Search Helper, Saved Search (Bookmarks), and Navigation Improvements

This userscript is part of SOMU (SO-mod-userscripts) Searchbar & Nav Improvements (Parent) Option to search child meta (Meta) New search bar on meta sites, and option to search parent site (Parent) Adds link to child meta in left…
Samuel Liew
  • 1,011
  • 7
  • 15
16
votes
0 answers

Add Share buttons to the "link" box

Spawned by https://meta.stackoverflow.com/q/136760/178438 This script adds share buttons to the "link" box. (They don't come immediately, they are spawned by mouseover) Installation Click here to install. Will only work in Chrome or Firefox…
Manishearth
  • 2,725
  • 16
  • 39
16
votes
0 answers

jsFiddle preview for Stack Overflow

Screenshot About Adds embedded jsFiddle preview to the questions/answers posts by clicking on Show jsFiddle button License MIT License. Download Direct link at userscripts.org Project at userscripts.org Project at GitHub Platform Should work…
antyrat
  • 301
  • 1
  • 6
16
votes
0 answers

Display absolute timestamps (in local time)

Screenshot / Code Snippet About This script converts relative timestamps to absolute timestamps, displayed in your local time zone. For times less than one hour ago, I leave the "x mins ago" relative timestamp, because I think that is more…
Kip
  • 1,051
  • 6
  • 12
16
votes
0 answers

Show number of answers accepted

Screenshot / Code Snippet About Ever wish you could tell more about a user's acceptance rate than just the percentage? Sure, you can hover over the acceptance rate to view the number of questions asked and the number of accepted answers, but…
Kip
  • 1,051
  • 6
  • 12
15
votes
0 answers

A service to help people to download their Dev Stories before the Stack Overflow DS sunset

Screenshot / Code Snippet About Manfred launches a website that allows any StackOverflow user to download their Developer Story data as a JSON file, without requiring registering or providing any email address. For free. Open Source. For the…
gavioto
  • 251
  • 1
  • 10
14
votes
0 answers

Infinite Scrolling - [Never Click Another Page Number Again!]

About Have you ever been reading through a post on a Stack Exchange site with a lot of answers and you had to keep clicking the next page link? Wouldn't it be nice if you didn't have to do that? Well now you don't! Introducing Infinite…
Nathan Osman
  • 23,286
  • 11
  • 60
  • 107
13
votes
0 answers

cv-pls Helper Chrome Extension

Screenshots Formatted cv request Settings About cv-pls Helper makes the process of closing questions easier on Stack Overflow. There are a lot of 'bad' questions being asked and to help reduce the noise these questions should be closed as fast as…
PeeHaa
  • 315
  • 3
  • 14
1
2 3 4 5 6