Quantcast
Channel: LowEndTalk
Viewing all articles
Browse latest Browse all 39981

Improve LET search

$
0
0

I think pretty much everyone around here knows how awful LET's search is. If you don't, go ahead, try it. I'll wait. Yeah, could use some work, right? You know who does a better job with search? Google. So let's let them do the dirty work. If you have Firefox or Chrome (which is probably a fair number of us), you can set up a user script that makes the search bar reference Google. In Firefox, install Greasemonkey. In Chrome, get TamperMonkey to manage user scripts. With that in place, here's the script:

var form=document.getElementsByClassName("Search")[0].childNodes[0]; //Get the form element
form.action="http://www.google.com/search"; //Change the action (page it submits to) to Google search
document.getElementById("Form_Search").name="q"; //Give the search box the same name as Google's
form.onsubmit=function() {
    document.getElementById("Form_Search").value="site: lowendtalk.com "+document.getElementById("Form_Search").value;
} //Add site:lowendtalk.com to the beginning of the query before submitting, so that Google knows to only search LET

The comments are in there, but basically what it does is make the form submit to Google, change the name of the textbox to the same as Google's search box, and add the "site:" parameter on to the search before submitting. I have been using this method for a while, and it works well. Hope it works for you too.


Viewing all articles
Browse latest Browse all 39981

Trending Articles