Favorite items first in Google

By Crend King Last update Jan 10, 2012 — Installed 2,278 times.

Multiple favorites?

in
Subscribe to Multiple favorites? 5 posts, 3 voices



Brierley User
Firefox

Hello,

I've been messing around with the script, trying to figure out how to have it promote more than one site to the top of search results.

I definitely understand how the switches work, and I've attempted to mimic expressions (based on the wikipedia example), but I can't seem to get it to work.

For example, I want "baseball-reference.com" items to show up after wikipedia items.

Any help would be great. Thanks!

 
Crend King Script's Author
Firefox

Try this:

var title_regexp = [null, null];
var addr_regexp = [/^\w+\.wikipedia\.org\/.*$/, /^www\.baseball-reference\.com.*$/];
var mark_style = ['background-color: #CCFF99 !important; padding: 0.5em; -moz-border-radius: 0.5em', 'background-color: #FFEEDD !important; padding: 0.5em; -moz-border-radius: 0.5em'];
var match_pattern = 2;

 
Brierley User
Firefox

@ Crend King

Thank you so much for the help! I made the amateur mistake of thinking that website I wanted the script to track needed its own variable expression line in the code.

My mistake, and thanks for the pointer! Great Script!

<3>

 
amdou User
Firefox

can we add twitter also? it will be great

 
Crend King Script's Author
Firefox

Why not? Any regular result in Google can be added, as long as you know how to write simple regular expressions. If you have difficulty on regular expression, you can take 5 minutes reading this: Regular Expression Quick Start.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel