Skip navigation.

Opera FAQs, Tips, Tricks & Tweaks

Cool tips for Opera browser

Posts tagged with "Search"

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 convert the search field into a button in the Opera Search panel?

, , , ...

If you want to search for same thing in different search engines, Search panel is convenient compared to integrated search field in address field.

When you add a search engine to the Search panel, Opera will add search field instead of a button. The problem with search field is you have to enter the search term again if you want to search for already entered search term in global search field. Search field can be converted in to a button easily.

  1. Add required search engine to the Search panel from Tools → Appearance... → Buttons → Search
  2. Open toolbar configuration file and under [Search Panel Toolbar.content] replace SearchX, Y with ButtonX, "Search Engine Name"=Search, Y
  3. Activate modified toolbar setup from Tools → Preferences... → Advanced → Toolbars → Toolbar setup to see the changes.
Opera Search panel with search field
Search panel with Acronym Finder search field
Opera Search panel with search button
Search panel with Acronym Finder search button

Toolbar content before modification.

[Search Panel Toolbar.content]
Search0
Button1, "Google"=Search
Button2, "Ask"=Search, 1
Button3, "Yahoo!"=Search, 2
Button4, "Amazon.com"=Search, 3
Button5, "Wikipedia"=Search, 4
Button6, "Ebay.com"=Search, 5
Button7, "Yahoo!Shopping"=Search, 6
Button8, "BitTorrent"=Search, 7
Search9, 31
Toolbar content after modification.
[Search Panel Toolbar.content]
Search0
Button1, "Google"=Search
Button2, "Ask"=Search, 1
Button3, "Yahoo!"=Search, 2
Button4, "Amazon.com"=Search, 3
Button5, "Wikipedia"=Search, 4
Button6, "Ebay.com"=Search, 5
Button7, "Yahoo!Shopping"=Search, 6
Button8, "BitTorrent"=Search, 7
Button9, "Acronym Finder"=Search, 31

Opera Launcher

, , , ...

Opera Launcher was created using AutoHotkey. It can

Download (size < 210 KB), unzip, place OperaLauncher.exe inside Opera installation directory, C:\Program Files\Opera and run it to launch Opera. The following settings dialog will be shown when you run it first time.

Opera Launcher settings dialog
Opera Launcher settings dialog

Keystrokes
Keystrokes can be used to perform an action after starting Opera. ^=Ctrl, !=Alt and +=Shift

Examples:

Action Keyboard Shortcut Keystrokes
Enter fullscreen F11 {F11}
Hide Opera Ctrl+Alt+Shift+H ^!+h
New tab Ctrl+T ^t
Minimize Opera Alt+Space+N !{Space}n

Restart
Use Restart Opera button! or create new keyboard shortcut/mouse gesture in application section with the following action.

Execute program, "C:\Program Files\Opera\OperaLauncher.exe", "/ro"

! If your path to OperaLauncher.exe is different change it in toolbar configuration file after closing Opera.

Restore bookmarks/notes
To restore previous version of bookmarks/notes file, close Opera, move previous version of opera6*.adr/notes*.adr from profile\backups directory to profile directory and rename it to opera6.adr/notes.adr.

Changelog
Date Changes
Oct 24, 2009
  • Option to change Speed Dial background image automatically.
  • Added help button.
Jul 23, 2009
  • Option to hide Opera title bar. Thanks to lunigma.
  • Opera restart.
May 11, 2009
  • Updated for Opera 10.00 Alpha Build 1413.
  • Performance improvements.
  • Tray icon balloon error message.
  • Transparent icon.
Feb 23, 2009
  • Option to delete old backup files. To disable, set it to 0.
  • Sessions backup will be created every time Opera starts.
Feb 10, 2009 Didn't empty temporary download directory in non-English versions of Windows. Fixed.
Feb 8, 2009
  • Command line parameters passed to Opera. Thanks to itcpeter.
  • Updated for Opera 10.00 Alpha Build 1139.
  • Opera Launcher can be placed anywhere, but path to Opera Installation Directory should be added in OperaLauncher.ini file.
Jan 8, 2009 Option to send keystrokes.
Nov 26, 2008 Option to empty temporary download directory.
Nov 23, 2008 Initial release.

How to change hotclick dictionary/encyclopedia site in Opera?

, , , ...

You can change default hotclick dictionary site & encyclopedia site with preferred site.

Opera Hotclick Menu
Hotclick menu

If you don't know how to edit menu setup, see this.

To change dictionary site, under [Hotclick Popup Menu] replace

Item, MI_IDM_SELDICTIONARY = Hotclick search, 50
with
Item, MI_IDM_SELDICTIONARY = Go to page, "http://dictionary.reference.com/browse/%t"


To change encyclopedia site, under [Hotclick Popup Menu] replace

Item, MI_IDM_SELENCYCLOPED = Hotclick search, 51
with
Item, MI_IDM_SELENCYCLOPED = Go to page, "http://en.wikipedia.org/wiki/Special:Search?search=%t"


Go to your preferred dictionary/encyclopedia site → Right click on search box → Create Search... → Details >> → Copy address → Cancel. Replace search URL in above code with copied address and change %s to %t.

How to create search engine with two parameters in Opera?

, , , ...

Sometimes we need to specify two parameters for search as in the following search.

http://images.google.com/images?imgtype=face&q=monkey

It is possible to create search engine for the above using JavaScript.

By creating a search engine with the following JavaScript in address field, you can search Google Images from address bar by typing <search engine keyword><space><search parameter 1><space><search parameter 2> (example: gi face monkey)

javascript:var s='%s';var p=s.indexOf('+');if(p>-1){var s1=s.split('+');var s2=s.slice(p+1)};window.location.href='http://images.google.com/images?imgtype='+s1[0]+'&q='+s2;

To create search engine for another site, modify images.google.com/images?imgtype='+s1[0]+'&q='+s2; part in the above JavaScript. When you perform search, s1[0] will be replaced by first parameter & s2 with second parameter.

If <search parameter 1> is more than one word use the following JavaScript. Use dot instead of space as separtor between search parameters.

javascript:var s='%s';var p=s.indexOf('.');if(p>-1){var s1=s.split('.');var s2=s.slice(p+1)};window.location.href='http://images.google.com/images?imgtype='+s1[0]+'&q='+s2;

Update: Apr 28, 2008

Play with Opera language file

, , , ...

You can modify strings in language file to your need.

Create a copy of language file, english.lng in Opera installation directory and rename it to english-modified.lng. Then Tools → Preferences... → General → Language → Details... → Use Interface language → Choose... → [SELECT] english-modified.lng

  1. Modify string -2061349988 to impress your friends with custom message in Opera startup dialog.
    -2061349988="Welcome to Opera"
    to
    -2061349988="Welcome back, Tamil!"

    Opera Startup Dialog
    Opera startup dialog

  2. Most of us don't use some of the labels. You can modify and use them.
    1827310912="Call back"
    1665342300="Meeting"
    to
    1827310912="Work"
    1665342300="Friends"

    Opera labels
    Opera labels

  3. Modify string -1713924769 to have advanced search, thumbnails & sorting in opera:cache. See Thumbnails in opera cache post.

    Advanced search, thumbnails & sorting in opera:cache
    Advanced search, thumbnails & sorting in opera:cache

  4. Modify string -1303632626 to show plugin versions in opera:plugins. See Descriptions in opera:plugins and more post.

    Descriptions in opera:plugins
    Descriptions in opera:plugins

Note: You have to update english-modified.lng file when there is an major update to Opera. See Update Opera custom keyboard setup/menu setup/mouse setup/language/dialog files using WinMerge.

Update:
Mar 24, 2008
Jun 16, 2008

How to delete various search histories in Opera?

, , , ...

Opera bookmarks search history
Bookmarks search history

Close Opera, open opera6.ini from profile directory and remove unwanted line(s) starting with the following under [Matches] section.

Bookmarks View       Searches in manage bookmarks
Bookmarks View Small Searches in bookmarks panel
File_types_treeview  Searches in Tools → Preferences → Advanced → Downloads
Groups_treeview      
History View         Searches in history
History View Small   Searches in history panel
Input_treeview       Searches in keyboard setup, mouse setup & voice
Links View Small     Searches in links panel
Mail View            Searches in mail/feed
Notes View           Searches in notes
Notes View Small     Searches in notes panel
Server_treeview      Searches in server manager (cookies & wand)
Search histories in [Matches] section.
[Matches]
Bookmarks View=""opera", "https""
Bookmarks View Small=""software""
File_types_treeview=""exe", "rar""
History View=""opera", "google", "www""
History View Small=""my""
Input_treeview=""gesture", "alt", "shift", "ctrl""
Links View Small=""unread""
Mail View=""rss""
Notes View=""bugs", "@""
Notes View Small=""shortcuts""
Server_treeview=""google""

Update: Jan 25, 2007

How to keep your search history private if you use Google search & Gmail?

, , , ...

When you use google.com search and Gmail, your searches can be associated with your gmail account because when you use Gmail, cookies will be stored for google.com and mail.google.com. To keep your search history private, use local Google (example: google.co.in) as your search engine & block cookies for it.

See How To Keep Your Search History Private for more tips.

Ways to open Opera bookmark/link/go to URL/search in new tab

, , , ...

Keyboard Shortcuts

Shift + Click/Enter/Left click - Bookmark/Link/Go to Web Address/Search will open in new tab

Ctrl + Shift + Click/Enter/Left click - Bookmark/Link/Go to Web Address/Search will open in background tab

Mouse Gestures

Point link, hold right mouse button and move down - Link will open in new tab

Point link, hold right mouse button and move down then up - Link will open in background tab

Others

To open search results & bookmarks in new tab
Opera 9: Tools → Preferences... → Advanced → Tabs → [DISABLE] Reuse current tab
Opera 8: Tools → Preferences... → Advanced → Browsing → [DISABLE] Reuse current tab

Configure mouse middle click action
Tools → Preferences... → Advanced → Shortcuts → Middle-Click Options... [or] Shift+Mouse middle click

Opera mouse middle-click options
Mouse middle-click options

Opera inline search or find in page search without popup box

, , , ...

Press keyboard shortcut . (dot) or / and then type search term to search in text.
Press keyboard shortcut , (comma) and then type search term to search in links.
Press keyboard shortcut, F3 to find next.
Press keyboard shortcut, Shift+F3 to find previous.

Enable Use Integrated Search to use "Find in page" field instead of "Find in page" dialog when you press keyboard shortcut, Ctrl+F.

Opera inline find in page text
Inline find in page text

Opera inline find in page links
Inline find in page links

Opera version 8 & below: Tools → Preferences... → Advanced → Search → [ENABLE] Use inline find in page

Use inline find in page

Download Opera, the fastest and most secure browser