Multiple favorites?
![]() |
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! |
![]() |
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; |
![]() |
@ 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> |
![]() |
can we add twitter also? it will be great |
![]() |
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. |
