Skip navigation.

Contridentuallity

Not a fact, a theory!?

How To : Greasemonkey in Opera

, , , ,

Great news!!! You can run Greasemonkey scripts in Opera as well (not only firefox). In fact...you don't even need to install the Greasemonkey extension (which obviously you can't do in Opera). Let's get started on this.

Start off by downloading a Greasemonkey script which you would like to use. If this file's name doesn't end on "*.user.js" then you'd better rename it so that the file ends with "user.js". If it doesn't, then Opera won't recognize and load the file. See the example shot below :



Now you need to tell Opera where this file is located at...together with all your other custom JavaScript files. You have the ability to choose any local folder/directory on your computer. In order to set this, go to 'Tools > Preferences... > Advanced > Content > JavaScript Options...' in your Opera browser. See the screenshot below :



See the bottom browse/file box?
When you click the "Choose..." button, you'll need to navigate to the folder where you keep your custom JavaScript files which needs to be loaded by Opera.

Now...ensure that you copy/paste all your custom JavaScript files to this folder/directory you specified. Once that's done, you may now restart the Opera browser and test the Greasemonkey script(s). Off course...this won't be Greasemonkey anymore. Let's call it OperaMonkey :D

Good luck and enjoy!
If you have any comments or suggestions, please feel free to post them here.

Free Google Pagerank ScriptNew Forum : Lost-in-Code.com

Comments

Jadd 19. February 2007, 12:51

Since userjs.org has been abandoned to rot on the Internet, we have to download greasemonkey scripts from userscripts.org
When we download Greasemonkey scripts, why not comment that they work in Opera?

Contrid 19. February 2007, 13:01

Are you saying that they should let users know that it works in Opera as well? If so...i'm not sure why they don't...maybe they're part of the FireFox fan club.

douglas9 9. May 2007, 10:06

Can you recommend another site to find 'monkey' scripts....userscripts.org....isn't any good.....thanks.

titor 30. July 2008, 07:54

not at all

RedSaint 28. February 2009, 16:29

Aren't there some functions which only works in Greasemonkey and not Opera? And the other way around as well?

luminair 5. March 2009, 23:52

Desn't work, getting this error message:
=======================================================================
JavaScript - http://s3.travian.tw/dorf1.php
Event thread: load
Error:
name: ReferenceError
message: Statement on line 189: Undefined variable: GM_addStyle
Backtrace:
Line 189 of User JS script : In function functionMain
GM_addStyle(cssStyle);
...
stacktrace: n/a; see 'opera:config#UserPrefs|Exceptions Have Stacktrace'
=======================================================================

johanlarsson 13. July 2009, 20:14

If someone understands why this script doesn't work, please explain. And preferably fix it too, please! :smile: It looks like it's so simple that someone that have even just a little experience could fix it.

// ==UserScript==
// @name Flashback forums offsite link fixer
// @namespace http://henrik.nyh.se
// @description Replaces the Flashback.info forums' offsite links redirect page with the actual page linked.
// @include https://*flashback.info/leave.php?*
// ==/UserScript==

// Replace in history so we're not bounced back again when using the back button
location.replace(document.links[1].href);

// ==UserScript==
// @name Flashback forums offsite link fixer
// @namespace http://henrik.nyh.se
// @description Replaces the Flashback.info forums' offsite links redirect page with the actual page linked.
// @include https://*flashback.info/leave.php?*
// ==/UserScript==

// Replace in history so we're not bounced back again when using the back button
location.replace(document.links[1].href);

brokenslave 13. July 2009, 21:15

So I'm trying to use this to use scripts in ikariam that were written for greasemonkey, and I've done every step, and none of the scripts are working... is there anything else I can do, or am missing to make it happen?

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.

Download Opera, the fastest and most secure browser
November 2009
S M T W T F S
October 2009December 2009
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30