Installing Greasemonkey Scripts In Opera

14.09.2019

Tampermonkey for Opera

Tampermonkey is a userscript manager extension for Android, Chrome, Chromium, Edge, Firefox, Opera, Safari, and other similar web browsers, written by Jan Biniok. There are also versions for Android, Chrome, Chromium, Edge, Firefox, and Safari.

Installing Tampermonkey

Install Greasemonkey Script Opera

We've long been fans of using user scripts to change the way the web works, but since Greasemonkey only runs on Firefox, Opera users are usually left out in the cold. The Kabatology blog explains.

To get userscripts going with the Opera version of Tampermonkey, first you have to install the Opera Add-on for Installing Chrome Extensions and then install the extension from the Chrome Web Store. It works with recent versions of Opera (v15 or newer, which are based on the Blink rendering engine). If you have to use an older version of Opera, you probably need to use Violentmonkey instead of Tampermonkey.

From the Installing Chrome Extensions page in the Opera Add-ons website, click the green '+ Add to Opera' button to install the 'middleware'. Then on the Tampermonkey page in the Chrome Web Store, click the green '+ ADD TO OPERA' button to install the extension. After a few confirmation boxes appear and Tampermonkey has finished installing, you should see a pop-up confirming that Tampermonkey has been added to Opera. This should point to a new Tampermonkey icon at the top of the Opera window, next to the address bar.

Installing Userscripts

Once Tampermonkey is installed, installing userscripts from OpenUserJS.org is simple. Navigate to the OpenUserJS page for the script, then click the blue 'Install' button at the top of the page.

Tampermonkey will display a screen showing you where the userscript has come from, what websites it can access, its source code, and a warning to only install scripts from sources that you trust. If you do want to install the script, click the 'Install' button, otherwise click 'Cancel'.

Installing userscripts from other sources is a similar process. You just need to find the installation link for the script. This will be a button or link to a file with a name that ends '.user.js'

After installing a userscript, you won't normally notice any further changes until you visit a website that it runs on.

Managing Userscripts

Clicking on the Tampermonkey icon at any time will pop up a menu that shows you what userscripts are running on the website you are looking at. It also lets you check for updated scripts (it does daily automatic checks by default), and open the Tampermonkey Dashboard.

In the Dashboard, the 'Installed userscripts' tab is the main place to manage your userscripts. The number to the left of each script shows you the order they run in, and whether they are enabled (green) or disabled (gray) - click it to toggle the status. You can also uninstall userscripts (trash can icon), check for new updates (click the 'Last updated' date), and some other icons related to the script management.

Scripts

Trouble shooting

If you think a userscript is causing problems, the easiest way to check is to switch off Tampermonkey, reload the web page, and see if the symptoms go away. You can do this by clicking on the Tampermonkey icon then clicking 'Enabled'; the tick icon should change to a cross. If it looks like a script problem and you have more than one script running on a web page, you can disable them all in Tampermonkey's dashboard then re-enable them one by one, until you find the culprit. Remember to reload the web page each time - userscripts normally only run when a web page loads.

Greasemonkey

Sometimes, when you use more than one userscript on the same web page, they need to run in a particular order. You can change the order using the Tampermonkey dashboard. In the 'Sort' column, click and hold on the triple-line icon for the script you want to move, move the mouse up or down to change the order, then release.

More

  • Tampermonkey.net - documentation, discussion and downloads for other versions of Tampermonkey.