Opera FAQs, Tips, Tricks & Tweaks

Tips for Opera browser since 2005

Useful User JavaScripts for Opera

, , , , , , , , , , , , ,

User JavaScript is a powerful tool and it can be used for many purposes, including:

  • Fixing broken scripts on Web pages. Opera uses browser.js to automatically fix incompatible Web pages, out of date scripts, and pages that inadvertently block Opera.
  • Enhancing Web pages by changing or adding your own content to the page.

Installing/Uninstalling User JavaScripts

If you don't have UserJS directory, create a directory with name userjs (preferably inside profile directory) and enter path to it in Tools > Preferences... > Advanced > Content > JavaScript Options... > User JavaScript files

Path to Opera User JavaScript directory
Path to User JavaScript files

  • To install, place User JavaScript file (*.js or *.user.js) inside User JavaScript directory.
  • To uninstall, remove corresponding User JavaScript file from User JavaScript directory.
  • To disable, change corresponding User JavaScript file extension from *.js to *.js.x
You can also use UserJS Manager for Opera to perform above actions.

Download

Download (size: 48.3 KB) all the following User JavaScripts in a single zip file, unzip and place it inside User JavaScript directory.

  1. Autosizer
  2. Breadcrumb URL
  3. Clean URI
  4. Cooliris alike
  5. Gallery crawler
  6. Get feed link
  7. Image thumb
  8. Link alert
  9. Power drag
  10. Linkify URL
  11. View Selection Source
  12. Ultimate Search Highlighter

Useful User JavaScripts

  1. Autosizer
    Autosizer will enhance image viewing in Opera by adding five different sizing modes to images: "Original", "Shrink to Fit", "Maximize", "Fit to Width" and "Fit to Height". "Shrink to Fit" is enabled by default. Simply click on the image to view in next mode or hold down Shift key while clicking to view in previous mode. Move cursor to top right corner to view the menu. See help for more information.

    Opera User JavaScript Autosizer
    Autosizer

  2. Breadcrumb URL
    Breadcrumb URL will place link to each directory of current URL at the top left corner of the page. Useful if you browse without address bar or browse in full screen mode.

    Opera UserJS Breadcrumb URL
    Breadcrumb URL

  3. Clean URI
    Clean URI will recognise links that use redirected URLs (example: http://www.google.com/url?q=http://winmerge.sourceforge.net/ ) and replace them with the direct URL.

    Opera User JavaScript Clean URI
    Clean URI

  4. Cooliris alike
    Similar to Cooliris extension for Firefox and helps to preview links without leaving current tab. Hold Ctrl key and hover any link to open preview window in top right corner of current tab. Size of preview window can be changed to 3 heights by clicking "Restore" icon.

    Opera UserJS Cooliris Alike
    Cooliris Alike

  5. Gallery crawler
    Gallery crawler adds link to next and previous image so pictures numbered sequentially can be viewed without flipping through links, ads and poor page design.

    Opera User JavaScript Gallery crawler
    Gallery crawler

  6. Get feed link
    Get feed link will place feed icons at the top left corner of the page. Useful if you browse without address bar or browse in full screen mode or if you need feed link URL.

    Opera UserJS Get Feed Link
    Get feed link

  7. Image thumb
    Image thumb will show thumbnail in bottom left corner when you hover an image link. Hold Ctrl key to view image in original size.

    Opera User JavaScript Image Thumb
    Image Thumb

    This UserJS breaks functioning of autosizer UserJS.
  8. Link alert
    Link alert identifies links to specific file types, and displays an appropriate icon when the link is hovered.

    Opera UserJS Link Alert
    Link alert

  9. Power drag
    Power drag will help you to resize textareas, select boxes, iframes, objects, images or input fields by holding Shift key and then dragging lower right corner of an item. Double click lower right corner to restore the original dimensions. You can enable the dragging corner always, or use another modifier key.

    Opera User JavaScript Power Drag
    Power drag

  10. Linkify URL
    Linkify URL makes text http/https/ftp URLs clickable.

    Opera UserJS Linkify URL
    Linkify URL

  11. View Selection Source
    View Selection Source allows you to see HTML source of any part of a page, it’s very useful for web developers. If you don't know how to edit menu setup see this and add the following under [Hotclick Popup Menu].

    Item, "View selection source"="Go to page, "javascript:opera.getSelectionSource()""

    Opera UserJS View Selection Source
    View Selection Source

  12. Ultimate Search Highlighter
    Ultimate Search Highlighter will show search bar at the top and can show number of search results, jump to next instance of highlighted term or previous (hold Shift key and click on term in toolbar) and supports RegExp highlighting. Move cursor to top to show search bar after timeout period. Get USH button or search field from here or create a search engine with the following.

    javascript:opera.USH.run(opera.USH.check='%s','newSearch');

    Opera User JavaScript Ultimate Search Highlighter
    Ultimate Search Highlighter

How to change Speed Dial site titles in Opera?How to change the height of various toolbars in an Opera skin?

Comments

Mağruf ÇolakoğluZAHEK Tuesday, March 10, 2009 12:12:55 PM

good topic.thanks.
if you want other some usefull js together as turkish pls visit below page.
usefull userjs files

Artur „Jurgi” JurgawkaJurgi Tuesday, March 10, 2009 1:03:32 PM

I hoped, that Clean URI will allow me to click links redirected through blocked (in urlfilter) services, but it doesnt work, e.g.:
http://gazeta.hit.gemius.pl/hitredir/id=bVA6PwbWy7tIs_pJh5iLjfWoLSnFeKci5A0Cn.L6lp..H7/url=http://www.sport.pl/pilka/1,65050,6362363,Zakaz_za_wulgarne_okrzyki.html
Any chance to make it work?

Tamil Tuesday, March 10, 2009 2:13:45 PM

@ZAHEK, Thanks.

@Jurgi, Post in User JavaScript forum.

PolOpera Tuesday, March 10, 2009 2:48:27 PM

Thanks!!
Good job Tamil

Emil Albualbuemil Tuesday, March 10, 2009 2:58:51 PM

Great job like always smile

I would also recommend MultiPopup (http://www.hesido.com/web.php?page=multipopup ),i even managed to combine Multipopup with LinkAlert for a "complete" popup system wink

AnthonyA1 Tuesday, March 10, 2009 5:58:55 PM

Thanks for these. Image Thumb is great I have used it many times since putting it in today.

Cooliris Alike would be very nice if I could make the preview bigger. The biggest size is too small to be useful and the smaller sizes are totally useless. I would like the current large size to be the smallest and than go bigger from there. What do I need to change in the code to do this?

Tamil Tuesday, March 10, 2009 10:37:10 PM

Change the height in following lines.
case '650px':
bar.style.height='450px'
break
case '450px':
bar.style.height='550px'
break
case '550px':
bar.style.height='650px'
toolbar.innerHTML = " <iframe src=\"about:blank\" id=\"cooliris\" width=\"400\" height=\"650\" style=\"max-height:95%;margin-top:10px\" onload=\"this.contentDocument.postMessage('cooliris')\"></iframe>";
var x=e.target.getAttribute('href');x=x?x:e.target.parentNode.getAttribute('href');var y=e.ctrlKey;if(y){time=window.setTimeout(function(){if (document.getElementById("Previewbar").style.height != "650px"){document.getElementById("Previewbar").style.height = "650px";document.getElementById("Previewbar").style.padding = "10px";document.getElementById("Previewbar").style.border = "1px solid black";}document.getElementById("cooliris").setAttribute("src", x);},1000)}

papasmurfrock Tuesday, March 10, 2009 11:31:02 PM

i can't seem to get the cooliris one to work. i am using a power book g4 with leopard operating system. i press ctrl while hovering over links but nothing happens.

am i doing something wrong?

Tamil Tuesday, March 10, 2009 11:40:38 PM

It will take little time to show.

papasmurfrock Tuesday, March 10, 2009 11:50:37 PM

thanks for the reply but it just doesn't seem to be working for me. it can't be the folder because some of the other ones are working...just not the one i wanted the most.

i am using an apple laptop, is there a different key i shoud hold rather than ctrl when hovering?

Tamil Tuesday, March 10, 2009 11:54:07 PM

Sorry, I don't know.

KarenNerak Wednesday, March 11, 2009 12:04:47 AM

w000000t! Thanks, Tamil...excellent info! yes

AnthonyA1 Wednesday, March 11, 2009 12:20:31 AM

OK thanks that fixed the height but how do I make the preview wider Tamil?

Tamil Wednesday, March 11, 2009 12:28:20 AM

Change the value of width in the following line.
toolbar.innerHTML = " <iframe src=\"about:blank\" id=\"cooliris\" width=\"400\" height=\"650\" style=\"max-height:95%;margin-top:10px\" onload=\"this.contentDocument.postMessage('cooliris')\"></iframe>";

AnthonyA1 Wednesday, March 11, 2009 12:42:48 AM

Thanks that worked.

Angelikiellinidata Saturday, March 14, 2009 3:06:08 AM

Just stopping in to say "have a great weekend"

LéazzBabyJay99 Sunday, March 15, 2009 1:27:52 AM

Wow. Tamil do you have post or tutorial on designing blog page? As you know my css making friends bonkers. I cant amend it while using mobile as there are maximum sentences in the screen faint

Tamil Sunday, March 15, 2009 1:37:19 AM

Nope, see Redesigning My.Opera space tutorial & Pimp My Blog Reloaded. They are old still useful.

LéazzBabyJay99 Sunday, March 15, 2009 2:02:34 AM

Thanks Tamil. Namaste wink

Andrea A. Biancoandreabianco Monday, March 16, 2009 8:55:23 AM

That was very useful and interesting, thanks Tamil! smile

Angelikiellinidata Wednesday, March 18, 2009 1:29:10 AM

Tamil,
I am glad I came back!
I needed to know how "Change the value of width in the following line"

you pwn!!! thanks Pal

Tamil Wednesday, March 18, 2009 1:36:46 AM

Change the value of 400 to required width.
width=\"400\"

night wolf Friday, March 20, 2009 3:01:46 PM

bigeyes I dont get any of those !lol yes Good Job Man headbang
rolleyes
p
cool
star

Hellas Sunday, March 22, 2009 8:19:38 PM

I would add Opera SEOBAR. Excellent tool for webmasters.
http://www.puzzleclub.ru/files/seobar/

AnthonyA1 Tuesday, March 31, 2009 5:10:30 AM

Papasmurfrock

Cooliris alike works fine for me on both Mac and Windows. On Mac use the "Command" key. It seems to take a little longer for the preview to show on the Mac but it works.

53north Monday, April 6, 2009 6:37:29 PM

Anything wild I can do on operamini?
I saw the type in 'config:' power user hidden menu via address bar. It helped browsing.
On a 250kb+ page full of images, om4 fails to load all the images, where om3 split the page up and shows it all. Would be nice to have a work around menu to cure that.

AnantLamboMan Tuesday, May 26, 2009 6:39:33 PM

Hello Tamil! I have a small problem, every time i load a userscript onto any page(your's or any others) it seems to block the browser.js file from rendering some pages correctly. But as soon as i turn off User JS for that web page, it gets activated again. I've even tried to put the browser.js file into my 'userjs' directory but it just won't work along with any of the userscripts i use!

So is there any way to make browser.js work when i have activated User JS?? Please help. sad

Tamil Wednesday, May 27, 2009 5:18:53 AM

I think one of your UserJS is interfering with browser.js.

AnantLamboMan Wednesday, May 27, 2009 11:24:47 AM

Well, i have only been using those javascripts that you have provided on this page till now and only recently i started using another one. But even when i use only your's the browser.js does not work on pages.
You tell me, does browser.js work for you when you have activated user js? And if yes, then what is the configuration of your userjs directory? I mean have you put browser.js in it and what value do you use in "Browser JavaScript" under 'User Prefs' in opera:config ??

Unregistered user Saturday, March 13, 2010 8:13:33 AM

Anonymous writes: Clean URI not work with Opera 10.50

Emanuel SaviourSaviour1974 Wednesday, March 24, 2010 4:18:27 PM

I have some bugs with facebbook chat when cooliris alike is enabled. Do anyone know something about it?

Tamil Wednesday, March 24, 2010 4:26:05 PM

Ask in forums.

Artur „Jurgi” JurgawkaJurgi Friday, May 21, 2010 7:40:16 AM

This spam guy (artificial?) is funny. And he is everywhere! p

Unregistered user Friday, August 27, 2010 2:05:16 PM

andx.andx writes: is there any script to remove anti-cache header, i like browsing cache with opera

Tamil Friday, August 27, 2010 2:10:03 PM

Sorry, I don't know.

johnf888 Monday, August 30, 2010 6:33:24 AM

Google maps works when coolirisalike.js is not in my userjs folder, but doesn't work when coolirisalike.js is in my userjs folder.

I have added this to the thread:
http://my.opera.com/community/forums/topic.dml?id=630972&t=1283149775

Unregistered user Monday, August 30, 2010 7:10:03 PM

Névtelen writes: Could anybody tell me how working the gallery crawler? How install and how use it?

Tamil Monday, August 30, 2010 10:55:52 PM

Read Installing/Uninstalling User JavaScripts in post.

Unregistered user Tuesday, September 21, 2010 3:17:10 AM

andx.andx writes: how about anti refresh/reload ( not redirect )?

Tamil Tuesday, September 21, 2010 8:31:11 AM

csaba1 Saturday, August 27, 2011 12:55:44 PM

Dear Tamil,
is it possible to create a script that automatically renames the files I download according to the the source site (i.e. [sourcesite.com]originalname.exe)?
Thanks.

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies