Skip to main content

greasemonkey - 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.



Answer



Detailed instructions are available on the Stack Apps Site



How to install user scripts in Chrome


There are two methods for installing UserScripts in Chrome. The first is to install the TamperMonkey extension, which makes installation simple and easy. The second is to follow these instructions below:



Note: As of Chrome 35 (late May 2014), downloaded user scripts cannot be installed using the second method. Please use the TamperMonkey extension.




  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 .user ().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 managerthe extension 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




  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 the Greasemonkey add-on for Firefox if you haven't done so already

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


  3. A Greasemonkey Installation dialog 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




Comments

Popular Posts

Use Google instead of Bing with Windows 10 search

I want to use Google Chrome and Google search instead of Bing when I search in Windows 10. Google Chrome is launched when I click on web, but it's Bing search. (My default search engine on Google and Edge is http://www.google.com ) I haven't found how to configure that. Someone can help me ? Answer There is no way to change the default in Cortana itself but you can redirect it in Chrome. You said that it opens the results in the Chrome browser but it used Bing search right? There's a Chrome extension now that will redirect Bing to Google, DuckDuckGo, or Yahoo , whichever you prefer. More information on that in the second link.

linux - Using an index to make grep faster?

I find myself grepping the same codebase over and over. While it works great, each command takes about 10 seconds, so I am thinking about ways to make it faster. So can grep use some sort of index? I understand an index probably won't help for complicated regexps, but I use mostly very simple patters. Does an indexer exist for this case? EDIT: I know about ctags and the like, but I would like to do full-text search. Answer what about cscope , does this match your shoes? Allows searching code for: all references to a symbol global definitions functions called by a function functions calling a function text string regular expression pattern a file files including a file

How do I transmit a single hexadecimal value serial data in PuTTY using an Alt code?

I am trying to sent a specific hexadecimal value across a serial COM port using PuTTY. Specifically, I want to send the hex codes 9C, B6, FC, and 8B. I have looked up the Alt codes for these and they are 156, 182, 252, and 139 respectively. However, whenever I input the Alt codes, a preceding hex value of C2 is sent before 9C, B6, and 8B so the values that are sent are C2 9C, C2 B6, and C2 8B. The value for FC is changed to C3 FC. Why are these values being placed before the hex value and why is FC being changed altogether? To me, it seems like there is a problem internally converting the Alt code to hex. Is there a way to directly input hex values without using Alt codes in PuTTY? Answer What you're seeing is just ordinary text character set conversion. As far as PuTTY is concerned, you are typing (and reading) text , not raw binary data, therefore it has to convert the text to bytes in whatever configured character set before sending it over the wire. In other words, when y...

linux - CentOs 7.1 - Install Tomcat 8

I am using this tutorial as a setup reference to getting a Tomcat 8 running on CentOs 7.1 , but after typing: [root@localhost tomcat]# sudo systemctl start tomcat I get the error: Job for tomcat.service failed. See 'systemctl status tomcat.service' and 'journalctl -xn' for details. systemctl status tomcat.service prints the following: [root@localhost tomcat]# systemctl status tomcat.service tomcat.service - Apache Tomcat Web Application Container Loaded: loaded (/etc/systemd/system/tomcat.service; disabled) Active: failed (Result: exit-code) since Wed 2015-11-25 16:54:33 CET; 1min 19s ago Process: 45873 ExecStart=/opt/tomcat/bin/startup.sh (code=exited, status=203/EXEC) Nov 25 16:54:33 localhost.localdomain systemd[1]: Starting Apache Tomcat Web Application Container... Nov 25 16:54:33 localhost.localdomain systemd[1]: tomcat.service: control process exited, code=exited status=203 Nov 25 16:54:33 localhost.localdomain systemd[1]: Failed to start Apache Tomcat Web App...