ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

How to search specific pages from website?

(1/2) > >>

dantheman:
To Opera users,

I have a nice bookmarklet that allows you to "search site" but if i could search specific pages, that would be handy at times. Is this possible?



Didn't post at Opera's forum as they are usually slow, even slower today.
Must be the distance between the two sponds of the Altantic.

Lashiec:
Hmm, you mean searching for a word in a specific section inside a website like, say, searching just within this forum instead of the whole DonationCoder site, or doing a site-wide Google search?

dantheman:
You got it Lashiec!  ;)

But i think it is probably impossible.  :(

Lashiec:
I've been using from quite some time a "search provider" in Opera that lets me do a site-wide search. Since it uses JavaScript, I just tested one thing, and it looks like it could satisfy your request.

Within Opera, go to "Options" -> "Search" and click "Add". Choose any descriptive name you want, and (optionally) a keyword, and paste this in "Address" (third box, if my translation doesn't match the official one):


--- Code: Javascript ---javascript:void(location.href='http://www.google.com/search?q=%s+site:'+window.location.href+'&sourceid=opera')
To use it, once you are in the page you want to search a word in, go to the URL bar and type: "<keyword you chose> <word you wish to search for>" (without quotes and <> signs, of course), and press Enter. Test it and tell me how it goes :)

dantheman:
Laschiec,

I think you just shared another tip that should make you a place on the Opera fans alltimers' list!  :Thmbsup:

That little closing bracket at the end of your script is essential.
Since there was no opening one, at first I thought it was left over so i didn't bother putting it in.
It didn't work. So then i added just that last bracket as you reported and it works!  8)

Many thanks!

Just curious... if i want to search multiple words that are united, should i place them between these brackets " " ?

Navigation

[0] Message Index

[#] Next page

Go to full version