A web development/programming blog providing info, tips, and tricks on programming languages, scripting, Linux, MySQL and more
Highlight Domain in Search Results
This is my first GreaseMonkey script for public release. This script will allow you to quickly locate a domain within the search results of a Google, Yahoo!, or Bing Search by highlighting the whole result. After installing this script, you will need to edit the variable site within the script itself otherwise all results will be highlighted. You can also optionally edit the color variable to change the highlight color.
Information:
-
@name Locate Domain in Search Results @filename locate_domain_in_search_.user.js @description Locate a specific domain easily within the results of a Google, Yahoo!, or Bing Search @author Mark Stoecker @version 1.1.1
Installation:
- Click here to Install this Script directly into GreaseMonkey
- Click here to download the text version of the script.
Configuration:
- Once installed, open the script in any text editor and edit line 25
[['mydomain.com', '#color'], ['mydomain2.com', '#color']]by adding your sites and colors between the quotes.
Bugs:
- URLs that have the domain name in them, but are not the primary domain of the site are highlighted.
To Do:
Allow for highlighting of multiple sites in multiple colors– Added by Alex Hall – http://www.devseo.co.uk- Fix issue where results that contain the domain in the URL are highlighted although it is not the primary domain of the site
- Add internationalization
Change Log:
- 1.1 -
- Multiple domain feature added by Alex Hall
- Included functionality for google.co.uk and uk.search.yahoo.com – Added by Alex Hall
- 1.1.1 -
- Added an Event Listener to wait to run the script until the page is done loading (window.onload)
Previous Versions:
- Version 1.0 GreaseMonkey script
- Version 1.0 text version
- Version 1.1 GreaseMonkey script
- Version 1.1 text version
If you have comments or suggestions, please share them below and they may be included in future versions of the script.
- How to Highlight Your Site Listing in Google SERPs
- How to Highlight Your Site Listing in Google SERPs « Site Seo Doctor Blog
- How to Highlight Your Site Listing in Google SERPs | Search Engine Optimization & Internet Marketing (SEO & SEM) Blog
- How to Highlight Your Site Listing in Google SERPs | Msn Yahoo Google
- How to Highlight Your Site Listing in Google SERPs – Google Live Search
- How to Highlight Your Site Listing in Google SERPs | One Click. One Sale.
- Toppositions.org – How To Highlight Your Site Listing In Google serps « TopPositions.org
- How to Highlight Your Site Listing in Google SERPs – SeoAlchemist – How to make gold with SEO.
- Los SERPs de un SEO | Blog de Vannessa Uhlein


August 18, 2009 - 1:28 am
Hi, great tool. Congratulations for good work.
My questions: Is there possibility to add regional search engine? I am from Bulgaria and I need to add google.bg and http://www.google.bg. Can I?
August 18, 2009 - 1:38 am
@Stoyan
Yes, you can add google.bg. On line 26 change “google.com” to “google.bg”. The formatting of the search results is still the same. Currently, the script only allows for the .com version of each Search Engine. In the next version, I will also add-in the internationalization so it will recognize all search engines languages, not just the .com’s. Thanks for the tip.
August 18, 2009 - 1:57 am
Yes, it work fine. For more secure I changed all google.com to google.bg :)
Thank You!
August 18, 2009 - 2:13 am
@Stoyan
Yes, I forgot you will want to change lines 9 and 10 (@include) so the script is called on google.bg. Glad it worked for you.
August 18, 2009 - 4:41 am
I’ve re-created this script to allow for the use of multiple domains in the search. I have added it to userscripts.org at http://userscripts.org/scripts/show/55920, and you can also find a copy of the script at http://www.devseo.co.uk/includes/jscript/multiple-domains.js
August 18, 2009 - 5:51 am
Nice script, really very well script that helps me a lot in highlighting my site whenever i search for my targeted keywords.
August 18, 2009 - 8:11 am
Hi,
your script is not working for Google on my side
i changed .com to .fr and add the url but it’s not working.
Can you help ?
Thank you
Br
August 18, 2009 - 7:55 pm
@Tag44
Glad you like it. Share it with your friends ;)
@ju
Google.fr still functions the same as google.com as it uses the same formatting for displaying links. If you are using version 1.0 of the script, edit lines 9,10, and 27 changing “google.com” to “google.fr”. If you are using version 1.1, change “google.com” to “google.fr” on lines 9,10, and 37.
August 19, 2009 - 1:37 am
Hi,
i made the changes but nothing happens it works in Bing and yahoo but not in google.
Search url are like :
http://www.google.fr/#hl=fr&q=toboggan&btnG=Recherche+Google&meta=&aq=f&fp=705c7232dbc96852
August 19, 2009 - 10:14 am
@ju
I’m working on the issue with google.fr. The search URL is slightly different which is why it isn’t working for you. I got the issue fixed, but it does not highlight when you search, only when you refresh your search. I’m trying to get that fixed and will post here when I have it resolved. You can subscribe to the comments for this thread, or my site feed for future updates. I will try to have this resolved soon for you.
August 21, 2009 - 2:56 am
Hey Mark,
i’ve the same problem of ju with google.de! Looks like the german version uses two different ways of search: 1. with js 2. non-js. When i deactivate js with the webdeveloper toolbar (firefox), the results were highlighted because the submission of the searchterm goes over the “normal” html-form and the url /search. When js is on, it looks like Google uses ajax to show the results and the greasemonkey script couldn’t recognize the links in the results. So for now, it works only when js is deactivated. The greasemonkey script runs in every way.
So long, it’s a great script!
August 21, 2009 - 9:13 am
@Marvin Schroeder
Thank you for the research and the information you found. I’ve noticed that google.de does the same as google.fr where it doesn’t highlight the results initially, but if you refresh the page, then they’re highlighted.
I am currently working on an internationalized version of the script and am finding that there are minor tweaks in the different versions of Google. Hopefully I’ll find ways around this soon and have a new working version posted.
Thanks again. Glad you like it.
August 27, 2009 - 1:02 pm
This is amazing! It worked yesterday in Bing, but for me will not today. Is it working for you still?
August 27, 2009 - 1:16 pm
@Owen
Bing is still working fine for me. On the computer I am currently on (at work ;)), I’m still running version 1.0 of the script. I will give it a quick test on version 1.1.1 later this evening and let you know if I see any issues. Also, right-click on the greasemonkey in the status bar when you are on bing to see if the script is being recognized as a valid script for that current page. Sometimes I’ve noticed that a URL may not be formatted correctly for the browser to recognize it.
August 27, 2009 - 2:40 pm
Thank you Mark. Checking the status bar info everything seems ago. I am running it on a few computers and it seems to be this way for 1.1.1. But it definitely could be user error.
I’ll check back.
Thanks again for your great work.
September 15, 2009 - 6:50 am
This does not work with Googles new search results pages
http://www.google.co.uk/#hl=en&source=hp&q=search&btnG=Google+Search&meta=&aq=f&oq=cheap+holidays&fp=d201e90ebf28d963
notice the #
December 1, 2009 - 2:26 pm
@Shane Thanks for pointing this out. I will look into it and post here when I figure it out.