Post Reply 
Google Search Alias-inator
Sep. 10, 2006, 02:44 AM
Post: #1
Google Search Alias-inator
Search Alias...

[Blocklists]
List.Alias = "..\Lists\Alias List.txt"

[HTTP headers]
In = FALSE
Out = TRUE
Key = "URL: Google Search Alias-inator (Out) [add]"
URL = "www.google.com"
Match = "\1$LST(Alias)%20\2"
Replace = "$LOG(RGET $DTM© : Google Search Alias-inator)$JUMP(http://$GET(PreAlias)\2$GET(PostAlias))"

Alias List.txt (example):
# Google Image
i $SET(PreAlias=images.google.com/images?q=)

# Google Finance
gf $SET(PreAlias=finance.google.com/finance?q=)

# Yahoo Web
y $SET(PreAlias=search.yahoo.com/search?p=)$SET(PostAlias=&ei=UTF-8)

# Yahoo Image
yi $SET(PreAlias=images.search.yahoo.com/search/images?ei=UTF-8&p=)

# Yahoo Finance
f $SET(PreAlias=finance.yahoo.com/q?s=)

# MSN Search
ms $SET(PreAlias=search.msn.com/results.aspx?q=)

# MSN Money
mm $SET(PreAlias=moneycentral.msn.com/scripts/webquote.dll?iPage=qd&Symbol=)

# Acronym Finder
a $SET(PreAlias=www.acronymfinder.com/af-query.asp?Acronym=)

# Dictionary.com
d $SET(PreAlias=dictionary.reference.com/search?q=)


I tend to bounce back and forth between Sleipnir2 (now at v2.47), Sleipnir 1.66, Maxthon (back burner until v2.0 exits tight-lipped alpha-beta whatever-they-are-calling-it stage), and GreenBrowser (my current favorite, no "about:blank" 'empty' tab and other "minor" cosmetic "deficiencies" that distract in other browsers)... (yeah, and an occasional Portable Firefox [but I shall deny having said that out loud, lol], Acoo, Avant, Tablane, and SlimBrowser)...


The "search field" of many browsers (most are Google by default, if not customizable to make Google the default) allows for "alias searching"...

For example, set up the letter "i" as an alias to perform image searches instead of web searches when inserting "i proxomitron" into the search field...

Unfortunately, with so many browsers, it becomes tedious to add a new alias to each browser... So why not let my one constant among all browsers (that being Proxo) do that aliasing for me, lol...



ps - why does the "code" forum command EAT \'s ???
Add Thank You Quote this message in a reply
Sep. 11, 2006, 10:01 AM
Post: #2
RE: Google Search Alias-inator
Neat idea. Never occured to me to alias the search box.

Just wondering, why not use the default alias list?

Mike
Add Thank You Quote this message in a reply
Sep. 11, 2006, 11:54 AM
Post: #3
RE: Google Search Alias-inator
if you're familiar with Sleipnir or Maxthon, each search engine you set up can have an "alias" attributed to it... for example, an image search on Google can have the "alias" i assigned to it so that when you perform a "search field" search for i Proxomitron in the Google WEB search field, instead of the "search field's" default Google WEB search, the "search field" performs a Google IMAGE search instead...

GreenBrowser (my current favorite) does not do this "alias" search engine scheme... and neither does Firefox (Portable version 1.5.0.6, at least without some unknown extension)...

once Sleipnir and Maxthon gets one accustomed to, say, performing an acronym search by typing a word-here (the "a" is the "alias") or performing a dictionary.com lookup by typing d word-here then you really do NOT want to be without this "alias scheme", lol...


of course, I'm having a few problems with the "as posted" version of this Alias-inator... I'll post a better working rendition once I tweak it some...
Add Thank You Quote this message in a reply
Sep. 11, 2006, 02:07 PM
Post: #4
RE: Google Search Alias-inator
ProxRocks Wrote:of course, I'm having a few problems with the "as posted" version of this Alias-inator... I'll post a better working rendition once I tweak it some...

remove the %20 from the Match line and place it after each individual one/two digit alias in the .txt file...

problem solved... (repeat after me, doh!...)
Add Thank You Quote this message in a reply
Sep. 11, 2006, 03:00 PM
Post: #5
RE: Google Search Alias-inator
afraid that didn't quite do the trick...

needin' a little help here, don't know what's awry...


put download sleipnir into my search box thinkin' it would perform its default Google WEB search to see if v2.48 is out yet...

but got redirected to dictionary.com's search for sleipnir...


what am I missing here?
Add Thank You Quote this message in a reply
Sep. 11, 2006, 09:09 PM
Post: #6
RE: Google Search Alias-inator
ProxRocks Wrote:what am I missing here?
The space after the "d" in "download sleipner" must have been escaped to "%20".
So your filter matched and off to dictionary.com's search for sleipnir you went.

How about:
Code:
[Blocklists]
List.Alias = "..\\Lists\\Alias List.txt"

[HTTP headers]
In = FALSE
Out = TRUE
Key = "URL: Google Search Alias-inator (Out) [add]"
URL = "www.google.com"
Match = "*q\=$LST(Alias)\\2"
Replace = "$LOG(RGET $DTM(c) : Google Search Alias-inator)$JUMP(http://$GET(PreAlias)\\2$GET(PostAlias))"

Alias List.txt (example):
Code:
#NoAddURL
# Google Image
i(%20|\+) $SET(PreAlias=images.google.com/images?q=)

# Google Finance
gf(%20|\+) $SET(PreAlias=finance.google.com/finance?q=)

# Yahoo Web
y(%20|\+) $SET(PreAlias=search.yahoo.com/search?p=)$SET(PostAlias=&ei=UTF-8)

# Yahoo Image
yi(%20|\+) $SET(PreAlias=images.search.yahoo.com/search/images?ei=UTF-8&p=)

# Yahoo Finance
f(%20|\+) $SET(PreAlias=finance.yahoo.com/q?s=)

# MSN Search
ms(%20|\+) $SET(PreAlias=search.msn.com/results.aspx?q=)

# MSN Money
mm(%20|\+) $SET(PreAlias=moneycentral.msn.com/scripts/webquote.dll?iPage=qd&Symbol=)

# Acronym Finder
a(%20|\+) $SET(PreAlias=www.acronymfinder.com/af-query.asp?Acronym=)

# Dictionary.com
d(%20|\+) $SET(PreAlias=dictionary.reference.com/search?q=)

Of course before anybody adds this to sidki's set they'll want to convert the Header filter.
Importing URL Header Filters

Seems to work at http://www.google.com/ anyway.

HTH
Add Thank You Quote this message in a reply
Sep. 11, 2006, 10:41 PM
Post: #7
RE: Google Search Alias-inator
Sorry, I forgot to add that converting requires a little trick.
Try:
Code:
[HTTP headers]
In = FALSE
Out = TRUE
Key = "!-|||||||||||| URL: Google Search Alias-inator (Out) [add]"
URL = "www.google.com/*q\=$LST(Alias)(?+)\\2$LOG(RGET $DTM(c) : Google Search Alias-inator)$JUMP(http://$GET(PreAlias)\\2$GET(PostAlias))"
Note the (?+)\2. In the URL Match you have to 'force' Proxomitron to keep looking.

(Hope everything is posting correct. Inside the "code" tags you sometimes have to use \\ to get \)

HTH
Add Thank You Quote this message in a reply
Sep. 11, 2006, 10:50 PM
Post: #8
RE: Google Search Alias-inator
Arghh!!

I'm up-and-running until I try to import into sidki's config...


edit: talk about timing, I see the above post now, lol...
Add Thank You Quote this message in a reply
Sep. 11, 2006, 10:58 PM
Post: #9
RE: Google Search Alias-inator
ProxRocks Wrote:Arghh!!
Ditto! ;-)
I had to add some "\"s.
Should work now, tho.
Add Thank You Quote this message in a reply
Sep. 11, 2006, 11:04 PM
Post: #10
RE: Google Search Alias-inator
thanks for the help, much appreciated...
after all these years, I'm *still* learning something "new" with Proxo, lol...


I'm a happy camper now, can't live without the search field aliases that Sleipnir and Maxthon has spoiled me with... once you get used to defining what search engine to use by merely placing a one/two digit "alias" in front of the search term is quite hard to abandon...

(and now you Firefox users can now benefit from search field aliases, lol...)


My end result isn't using the %20's in the .txt file, but within the filter instead (just to keep the .txt file "less confusing")...


Final filter (f' the code command "eatery", lol):
In = FALSE
Out = TRUE
Key = "!-|||||||||||| URL: Google Search Alias-inator (Out) [add]"
URL = "www.google.com/search\?q\=$LST(Alias)%20(?+)\2$LOG(RGET $DTM© : Google Search Alias-inator)$JUMP(http://$GET(PreAlias)\2$GET(PostAlias))"


Thanks again...
Add Thank You Quote this message in a reply
Sep. 11, 2006, 11:40 PM
Post: #11
RE: Google Search Alias-inator
ProxRocks Wrote:My end result isn't using the %20's in the .txt file, but within the filter instead (just to keep the .txt file "less confusing")...
That may be ok but be aware of the Limitations...

Hmmm ;-)
A "c" bracketed by parentheses becomes ©
As in $DTM©

Have fun
Add Thank You Quote this message in a reply
Sep. 12, 2006, 09:20 PM
Post: #12
RE: Google Search Alias-inator
I guess a ( c ) not enclosed in the CODE tags looks like ©.

Code:
(c)
Visit this user's website
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: