Premshree Pillai ([info]premshree) wrote,
@ 2005-05-12 16:25:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Current music:David Bowie - Life on Mars

Yahoo! Search link on Google

I use Google as my primary search engine. However, nowadays, more often than not, I tend to use Yahoo! Search too. After I search using Google and I’m not satisfied with the results, mind you. So, a Greasemonkey script that does this:

Yahoo! Search link on Google

Notice the “Yahoo!” among the tabs. Simple. Useful. You may install the script from here.

Edit [11:58, 13/05/05]: One of the comments to Jeremy’s post mentions Butler—way more comprehensive, etc. I should look for stuff before I hack my own, ya know.



(Post a new comment)


[info]dimere
2005-05-12 10:52 am UTC (link)
Does it search in Yahoo and give results using the same google page?
Wow, that seems interesting :)


Offtopic: I've added you to my friendlist, but I'm writing in russian primarily. Sorry for that :) Promise to comment in english :0)

(Reply to this)(Thread)


[info]premshree
2005-05-13 01:47 pm UTC (link)
Doesn’t give the results in the same page; however, saves a few clicks. :-)

I wish I could understand a few more non-programming languages.

(Reply to this)(Parent)


[info]teemus
2005-05-12 11:31 am UTC (link)
Ha ha ha. Nifty!

(Reply to this)


[info]solzaire
2005-05-12 01:02 pm UTC (link)
sorry for earlier - works fine :)

(Reply to this)


[info]happysteve
2005-05-12 01:57 pm UTC (link)
works great! you should add "http://www.google.com/search*" to the list of @includes.

(Reply to this)(Thread)


[info]premshree
2005-05-12 02:09 pm UTC (link)
Um, shouldn’t http://www.google.com/* take care of that?

(Reply to this)(Parent)(Thread)


[info]happysteve
2005-05-12 02:16 pm UTC (link)
I'm not seeing that on the list:

// @include http://google.co.in/*
// @include http://www.google.co.in/*
// @include http://google.tld/*
// @include http://www.google.tld/*

but I did see (after making my post) that version 0.3.4 is supposed to see .tld as (.com|.co.uk|...). I only had v0.3.3 installed.

(Reply to this)(Parent)


[info]ga_woo
2005-05-12 02:21 pm UTC (link)
I don't think you need to wrap the script in an anonymous function from now on. It's done automatically for you

(Reply to this)(Thread)


[info]premshree
2005-05-12 03:40 pm UTC (link)
Backward “compatibility”. :-|

(Reply to this)(Parent)


[info]yodha
2005-05-12 04:26 pm UTC (link)
Yahoo! Search has been getting better. I too use it occasionaly.

(Reply to this)


[info]satyap
2005-05-13 01:22 am UTC (link)
Dude you're on Jeremy Zawodny's blog.

(Reply to this)


[info]tariquesani
2005-05-13 05:59 am UTC (link)
http://diveintomark.org/projects/butler/ is what put halt to my development of a similar script

(Reply to this)(Thread)


[info]premshree
2005-05-13 06:10 am UTC (link)
Noticed it on Jeremy’s blog. Heh, I’m such a dope!

(Reply to this)(Parent)(Thread)


[info]tariquesani
2005-05-13 06:28 am UTC (link)
Heh, looks like even Jeremy did not know about Butler!!

BTW - anyone aspiring to write GM scripts take a look at http://diveintogreasemonkey.org/ and those who do not want GM ruining their pages look at http://dean.edwards.name/weblog/2005/03/ungreased/

(Reply to this)(Parent)


(Anonymous)
2005-05-13 06:36 am UTC (link)
And vice versa? (just in case)

// ==UserScript==
// @name Google Search link on Yahoo!
// @description adds a link to Google search on Y!
// @include http://search.yahoo.com/*
// ==/UserScript==


(function() {
if (document.getElementById("yschinfo")) {
var q = document.s.yschsp.value;
q_elem = document.getElementById("yschtg");
var y_elem = document.createElement("a");
y_elem.href = "http://www.google.com/search?q=" + q;
y_elem.innerHTML = "Google";
q_elem.insertBefore(y_elem, q_elem.childNodes[2]);
}
})();

- Shajith

(Reply to this)(Thread)

Canadian version of both these scripts
(Anonymous)
2005-05-13 06:23 pm UTC (link)
// ==UserScript==
// @name Yahoo Canada! Search link on Google Canada
// @description adds a link to Y! Canada search on Google Canada
// @include http://www.google.ca/*
// @include http://www.google.com/*
// ==/UserScript==

(function() {
if (document.gs) {
var q = document.gs.q.value;
var q_elem = document.getElementById("t1a");
var y_elem = document.createElement("a");
y_elem.href = "http://ca.search.yahoo.com/search?p=" + q;
y_elem.innerHTML = "Yahoo Canada!";
q_elem.parentNode.insertBefore(y_elem, q_elem);
space_elem = document.createElement("span");
space_elem.innerHTML = " ";
q_elem.parentNode.insertBefore(space_elem, q_elem);
}
})();

=BREAK==DONT INSERT THIS LINE=====THESE ARE 2 SEPERATE SCRIPTS======

// ==UserScript==
// @name Google Canada Search link on Yahoo Canada!
// @description adds a link to Google Canada search on Y! Canada
// @include http://search.yahoo.com/*
// @include http://ca.search.yahoo.com/*
// ==/UserScript==


(function() {
if (document.getElementById("yschinfo")) {
var q = document.s.yschsp.value;
q_elem = document.getElementById("yschtg");
var y_elem = document.createElement("a");
y_elem.href = "http://www.google.ca/search?q=" + q;
y_elem.innerHTML = "Google Canada";
q_elem.insertBefore(y_elem, q_elem.childNodes[2]);
}
})();


Enjoy
Memorydump

(Reply to this)(Parent)

Sauce for the Google ...errr... goose... :)
(Anonymous)
2005-05-14 05:17 am UTC (link)
Nice. Completes the set!

(Reply to this)(Parent)


sriramb
2005-05-13 04:05 pm UTC (link)
GreaseMonkey throws up an interesting issue: What if there are GM scripts that phish for information, and a user unwittingly installs an extension that acts as a phishing script? Should browsers start supporting a CRC/MD5 check logo (like the ssl lock icon) to certify that the client and server-side copies of a page are the same and unaltered? Just curious....

(Reply to this)(Thread)


[info]premshree
2005-05-13 04:29 pm UTC (link)
I’m wondering if maybe we could hack a Greasemonkey script to do that: we could check for the rendered DOM (or content) against the original.

One thing that website owners can do is to disable gm userscripts, but that’s kinda undemocratic. Supporting an (optional) check or something sounds nice, considering that it does not have to be Mozilla- (or Opera-) specific.

This thing about gm and phishing is interesting; if you find more literature, please pass it on. :-)

(Reply to this)(Parent)(Thread)

It's been done already!
(Anonymous)
2005-05-13 06:51 pm UTC (link)
http://yagoohoogle.com/

(Reply to this)(Parent)(Thread)

Re: It's been done already!
[info]premshree
2005-05-13 06:53 pm UTC (link)
It _forces_ me to view results from both.

(Reply to this)(Parent)


sriramb
2005-05-19 04:09 pm UTC (link)
Bruce has a nice paper on phishing on his blog.
http://www.schneier.com/blog/archives/2005/05/phishing.html

(Reply to this)(Parent)


[info]premshree
2005-05-16 06:52 am UTC (link)
I posted your comment to the Greasemonkey mailing list. You might want to take a look at the thread. One of the interesting things that was mentioned was about Userscipt.org (not live yet) — which aims to be a repository of registered, reviewed userscripts.

(Reply to this)(Parent)

http://www.customizegoogle.com/
(Anonymous)
2005-05-13 06:49 pm UTC (link)
Why not just use http://www.customizegoogle.com/ ?

(Reply to this)(Thread)

Re: http://www.customizegoogle.com/
[info]premshree
2005-05-13 06:54 pm UTC (link)
Because I didn’t know about it.

(Reply to this)(Parent)

Re: http://www.customizegoogle.com/
[info]premshree
2005-05-13 06:55 pm UTC (link)
Moreover, I wanted what I wanted.

(Reply to this)(Parent)(Thread)

Re: http://www.customizegoogle.com/
(Anonymous)
2005-05-13 06:57 pm UTC (link)
bet your not smart enough to hack my computer :-)

(Reply to this)(Parent)(Thread)

Re: http://www.customizegoogle.com/
[info]premshree
2005-05-13 07:00 pm UTC (link)
Eh?

PS: I love anonymous folks.

(Reply to this)(Parent)

Good Job!
(Anonymous)
2005-05-14 06:38 am UTC (link)
Indians Rocks!

(Reply to this)

Dude, you're on ZDNet!
[info]swaroopch
2005-05-14 07:41 am UTC (link)
Check it out:

http://news.com.com/2061-10811_3-5706343.html


Google and Yahoo are back together again, but not by their own design. Premshree Pillai, a 22-year-old self-described hacker from India, has written a script to insert a Yahoo tab on the Google home page with the use of dynamic HTML. That way, he can easily click to Yahoo search results (without retyping the query) when Google's listings fall short. Clever, but it won't bring smiles in the corporate camps of Yahoo and Google.


Enjoy!
Swaroop
www.swaroopch.info

(Reply to this)(Thread)

Re: Dude, you're on ZDNet!
[info]swaroopch
2005-05-14 07:42 am UTC (link)
Oops, I meant CNet :-/, can you please correct that?

Swaroop
www.swaroopch.info

(Reply to this)(Parent)(Thread)

Re: Dude, you're on ZDNet!
(Anonymous)
2005-05-14 09:36 am UTC (link)
hacker my ass

(Reply to this)(Parent)

Re: Dude, you're on ZDNet!
[info]premshree
2005-05-15 02:24 am UTC (link)
Holy shit! Mark must be pretty pissed at me. ;-)

(Reply to this)(Parent)(Thread)

Re: Dude, you're on ZDNet!
(Anonymous)
2005-05-17 01:44 pm UTC (link)
Congrats. Great script.

You are also mentioned here;

http://www.linkpopularity.ca/googlenews.asp

... and your link has been emailed to their subscriber list!

All the best.

Doug

(Reply to this)(Parent)

Google on Yahoo!
(Anonymous)
2005-05-18 08:33 pm UTC (link)
Hi Premshree,

Are the cease and desist e-mails from Google pouring in yet?

However, after being inspired by your script and being introduced to GreaseMonkey *just* tonight, I have hacked together a Google! on Yahoo script @ http://sarat.xcelens.co.uk/2005/05/18/google-search-link-on-yahoo/

Now only if I could build on that to allow Google and Yahoo results side by side in the same page. I have some few ideas and wondered if you were interested in a joint effort?

E-mail me at (sarat [dot] pediredla [at] xcelens [dot] co [dot] uk) if you think its worth a shot

(Reply to this)(Thread)

Re: Google on Yahoo!
[info]premshree
2005-05-19 08:35 am UTC (link)
There’s already one: http://yagoohoogle.com/. Yeah, but doesn’t use cool stuff. :-)

(Reply to this)(Parent)(Thread)

Re: Google on Yahoo!
(Anonymous)
2005-05-21 04:54 pm UTC (link)
Like you said twingine.com or yagoohoogle.com does this but it is
not pretty or even really useful. I could tile 2 firefox windows horizontally
and get the same effect. I wanted to produce a better dynamic version of search and am working on it.

Will post a link when I finish it.

Sarat

(Reply to this)(Parent)

Works on Opera
(Anonymous)
2005-05-19 04:13 am UTC (link)
This'll work on Opera if you take away the .tld thing and add .com or whatever your local google is :)

(Reply to this)

A little late :)
(Anonymous)
2005-05-23 05:02 am UTC (link)
But I figured, "why not do away with Yahoo Search on my.yahoo.com altogether?". I needed an excuse to experiment with GM and this was it. Thanks for the inspiration.

http://ragweed.net/firefox/MyYaGoogle.user.js

(Reply to this)

Check GrabAll.com
(Anonymous)
2005-06-08 03:41 am UTC (link)
http://www.GrabAll.com does the job for you. Good luck!

(Reply to this)(Thread)

Re: Check GrabAll.com
(Anonymous)
2005-07-09 05:35 am UTC (link)
almost the same does http://www.dogpile.com/
...but with nicer GUI...

peace!

(Reply to this)(Parent)


Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…