How to custom search with 2+ tabs ?

Forums » General Opera topics » Customizing Opera

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

2. April 2010, 18:51:57

maskokot

Posts: 115

How to custom search with 2+ tabs ?

Hi does anyone know if it is possible and how to search with more than one tab at once ?

Example:
I have 2 torrent search sites: isohunt & asskicktorrent I want to search in both of them same key word.
I would like to have this result : I type "tor my-key-word" in address bar press enter isohunt search result is shown in the same tab is opened with search result with asskicktorrent.


I appreciate any advice or hint.
Opera 10.60b1 (3422)

Google Translate with Opera

2. April 2010, 21:07:45

maskokot

Posts: 115

OK I found solution bigsmile

this in new .html page on disk
<script type="text/javascript">
var keyword = window.location.search.slice(1,window.location.search.length);
window.location.href='http://isohunt.com/torrents/?ihq=' + keyword;
window.open('http://www.kickasstorrents.com/torrents/search/?q=%27+keyword);
</script>

this as new custom search search
address =

open popups in background for this page in config


now it works like a charm.
and if I ever need more then 2 tabs i just add more window.open
Opera 10.60b1 (3422)

Google Translate with Opera

4. April 2010, 11:08:44

bachhoakhai

Posts: 51

Thanks for your script yes up up . I just added Mininova site to the script.
But Opera blocks the popups. After I had clicked to open the popup, I only got two tabs opened instead of three ones (the first site and the last site).
What should I do now ?

4. April 2010, 15:18:57

maskokot

Posts: 115

Originally posted by bachhoakhai:

What should I do now ?



For 3+ you should make more "window.open" like here:

<script type="text/javascript">
var keyword = window.location.search.slice(1,window.location.search.length); // extracting of the keyword
window.open('http://www.google.com/?q=%27+keyword); // open search in next window
window.open('http://www.kickasstorrents.com/torrents/search/?q=%27+keyword); // open search in next window
window.location.href='http://isohunt.com/torrents/?ihq=' + keyword; // searching in the current window
</script>

I forget to write:
After creating new .html page DO not put script inside just load it normally (drag it to open browser if you must) and right-click -> edit site preferences -> Open all popups.

It is necessary to do it BEFORE script is put in the .html page. Because script alter page location and you page.

I also put "window.location.href" at the end of the script ( I am not sure if it is necessary but it might help ).
Opera 10.60b1 (3422)

Google Translate with Opera

11. April 2010, 07:36:51

bachhoakhai

Posts: 51

thanks a lots. It works yes yes yes

Forums » General Opera topics » Customizing Opera