Skip to content

Instantly share code, notes, and snippets.

@aaronfrost
Created April 27, 2011 18:13
Show Gist options
  • Save aaronfrost/944822 to your computer and use it in GitHub Desktop.
Save aaronfrost/944822 to your computer and use it in GitHub Desktop.
constant scan for new results on google
function runSetup(){
//Find the items that you are looking for, that don't have your setup class.
$K("#rso > li:not(.tmsetup)").each(function(){
//CODE TO DO SOMETHING WITH YOUR ITEM
//MAKE SURE TO RUN THIS NEXT LINE... so that they don't appear in your next search.
$K(this).addClass('tmsetup');
});
}
setInterval(function(){
runSetup();
},500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment