Skip navigation.

Opera FAQs, Tips, Tricks & Tweaks

Cool tips for Opera browser

Posts tagged with "User JavaScript"

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

Formatting tools with animated smilies in My Opera quick reply/comment/reply to PM

, , , ...

This script was created by AyushJ & posted in User JavaScript forum.

This script adds formatting tools (b, i, u, align, list, url, font, color, etc...) in quick reply/comment/reply to PM.

This script also supports keyboard shortcuts. Press Ctrl key (don't hold it) then press shortcut key. Example: To activate bold, press Ctrl then press B.

I added 21 26 33 38 41 animated smilies to this script including the following one.

Dance smiley
Dance smiley

You can add your smilies by changing the following.

MySmilies        = 0; //-- Set to 1 if you want to use your smilies
MySmiliesBase='http://files.myopera.com/'    // Path to your smilies folder
var MySmiliesList={
// Add your smilies below. Example:    'Smiley1'    : 'Smiley1.gif',    'Smiley2'    : 'Smiley2.gif',    'Smiley3'    : 'Smiley3.gif'
}

Download my.opera-quick-reply.js and place it inside your UserJS folder.

If you don't have UserJS folder, create one inside your profile and enter path to it in Tools > Preferences... > Advanced > Content > JavaScript Options... > User JavaScript files

Formatting Tools with Animated Smilies in My Opera Quick Reply/Comment/Reply to PM
Formatting tools with animated smilies in My Opera comments

  • Script will work only in Opera desktop browser.
  • You can't have animated smilies on the same line as My Opera smilies. But you can use HTML image tag to show more than one smiley in a line.
    <img src="http://files.myopera.com/Tamil/Smilies/Happy.gif"> <img src="http://files.myopera.com/Tamil/Smilies/Wait.gif">
    The above will show be shown as .

Update:
May 23, 2008: Added BigGrin, Bye, Hit, Secret & Yes smilies.
Aug 10, 2008: Added Crazy, Devil, LOL, ROFL, Stop, ThumbsUp & Wink smilies.
Jan 17, 2009: Added BigGrin2, Cool2, Dance3, Crazy2 & Sad smilies.
Jul 4, 2009: Added Stop, Wait & Yahoo smilies.

Download Opera, the fastest and most secure browser