Useful User JavaScripts for Opera
Tuesday, 10. March 2009, 09:37:30
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

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
Download
Download (size: 48.3 KB) all the following User JavaScripts in a single zip file, unzip and place it inside User JavaScript directory.
- Autosizer
- Breadcrumb URL
- Clean URI
- Cooliris alike
- Gallery crawler
- Get feed link
- Image thumb
- Link alert
- Power drag
- Linkify URL
- View Selection Source
- Ultimate Search Highlighter
Useful User JavaScripts
-
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.
Autosizer -
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.
Breadcrumb URL -
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.
Clean URI -
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.
Cooliris Alike -
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.
Gallery crawler -
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.
Get feed link -
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.
Image ThumbThis UserJS breaks functioning of autosizer UserJS. -
Link alert
Link alert identifies links to specific file types, and displays an appropriate icon when the link is hovered.
Link alert -
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.
Power drag -
Linkify URL
Linkify URL makes text http/https/ftp URLs clickable.
Linkify URL -
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()""

View Selection Source -
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');

Ultimate Search Highlighter










ZAHEK # 10. March 2009, 12:12
if you want other some usefull js together as turkish pls visit below page.
usefull userjs files
Jurgi # 10. March 2009, 13:03
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 # 10. March 2009, 14:13
@Jurgi, Post in User JavaScript forum.
PolOpera # 10. March 2009, 14:48
Good job Tamil
albuemil # 10. March 2009, 14:58
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
Anthony A # 10. March 2009, 17:58
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 # 10. March 2009, 22:37
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 # 10. March 2009, 23:31
am i doing something wrong?
Tamil # 10. March 2009, 23:40
papasmurfrock # 10. March 2009, 23:50
i am using an apple laptop, is there a different key i shoud hold rather than ctrl when hovering?
Tamil # 10. March 2009, 23:54
Nerak # 11. March 2009, 00:04
Anthony A # 11. March 2009, 00:20
Tamil # 11. March 2009, 00:28
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>";Anthony A # 11. March 2009, 00:42
ellinidata # 14. March 2009, 03:06
BabyJay99 # 15. March 2009, 01:27
Tamil # 15. March 2009, 01:37
BabyJay99 # 15. March 2009, 02:02
andreabianco # 16. March 2009, 08:55
ellinidata # 18. March 2009, 01:29
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 # 18. March 2009, 01:36
prepaid-discounter # 18. March 2009, 16:07
greets
jahjah
night wolf # 20. March 2009, 15:01
Hellas # 22. March 2009, 20:19
http://www.puzzleclub.ru/files/seobar/
Anthony A # 31. March 2009, 05:10
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 # 6. April 2009, 18:37
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.
LamboMan # 26. May 2009, 18:39
So is there any way to make browser.js work when i have activated User JS?? Please help.
Tamil # 27. May 2009, 05:18
LamboMan # 27. May 2009, 11:24
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 ??