Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 02, 2016, 10:36:08 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: How to search specific pages from website?  (Read 3303 times)

dantheman

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 591
  • Be good if you can!
    • View Profile
    • Donate to Member
How to search specific pages from website?
« on: August 14, 2009, 08:33:48 AM »
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

  • Member
  • Joined in 2006
  • **
  • Posts: 2,374
    • View Profile
    • Donate to Member
Re: How to search specific pages from website?
« Reply #1 on: August 17, 2009, 12:06:37 PM »
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

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 591
  • Be good if you can!
    • View Profile
    • Donate to Member
Re: How to search specific pages from website?
« Reply #2 on: August 17, 2009, 12:13:58 PM »
You got it Lashiec!  ;)

But i think it is probably impossible.  :(

Lashiec

  • Member
  • Joined in 2006
  • **
  • Posts: 2,374
    • View Profile
    • Donate to Member
Re: How to search specific pages from website?
« Reply #3 on: August 17, 2009, 12:30:38 PM »
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 [Select]
  1. 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 :)
« Last Edit: August 17, 2009, 12:32:57 PM by Lashiec »

dantheman

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 591
  • Be good if you can!
    • View Profile
    • Donate to Member
Re: How to search specific pages from website?
« Reply #4 on: August 17, 2009, 03:06:06 PM »
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 " " ?

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,666
    • View Profile
    • App's Apps
    • Read more about this member.
    • Donate to Member
Re: How to search specific pages from website?
« Reply #5 on: August 17, 2009, 06:07:56 PM »
I am not sure why you would use a bookmarklet and Google to search a page you are on when CTRL+F would do nicely.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,275
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Re: How to search specific pages from website?
« Reply #6 on: August 17, 2009, 06:27:06 PM »
I am not sure why you would use a bookmarklet and Google to search a page you are on when CTRL+F would do nicely.

That's cheatin' ..  too easy.  :trout:

dantheman

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 591
  • Be good if you can!
    • View Profile
    • Donate to Member
Re: How to search specific pages from website?
« Reply #7 on: August 17, 2009, 06:38:55 PM »
Sometimes websites have a multitude of links to different "books" for example.
I don't want to search all the books but just one specific.

Lashiec

  • Member
  • Joined in 2006
  • **
  • Posts: 2,374
    • View Profile
    • Donate to Member
Re: How to search specific pages from website?
« Reply #8 on: August 19, 2009, 11:37:22 AM »
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 " " ?

Glad it worked :). Yup, if you want to find, for example, the string 'that are united', you have to enclose the string in quotes. Otherwise, it will return all pages where it finds either 'that', 'are' or 'united'.