sitehilite: highlight search keywords and CTRL+F feature with regular expressions on any page
Imagine if your browser had this inherent feature: it would highlight the words you were looking for once you click through to a result page from any search-engine: Google, Bing, Yahoo, or even any other regular, like this one. Your browser doesn’t do that. But sitehilite can make it do that, and then some.
Sitehilite is a double faced hammer. It will highlight your search words and help you get there, fast. But it can also let you perform inline searchs (ala CTRL-F) within any document looking for exact matches or patterns using regular expressions (take that, you wimpy CTRL-F).
Click here for a quick demo.
It is available both as a drag-to-install bookmarklet and a standalone library.



Easy go: visual guide to the relative positions of matches (left) and links to each match (center)
We’ve all dealt with this frustration for years: not being able to spot your search words on a result page immediately upon arriving on that site..so you’re forced to take unnecessary steps like squinting your eyes and scrolling up and down or pressing CTRL-F for an in-page search.
Get the bookmarklet
To use this bookmarklet, drag the link below onto
your bookmarks toolbar, or right-click and bookmark;
sitehilite ← you may also click for a demo
- Quick demo (try this! )
Click the above link. Once it is loaded, enter this regular expression [aeiou]\w{10,} into the text field, put a check-mark on the regex button, and click GO. That should match and highlight all words on this page that start with a vowel and are at least 11 characters long.. You got the powah!Sitehilite plays nice with the following buddies:
Firefox 3 Chrome Safari 3.2 Opera 10
Put in on your website
You can embed this library into your website to automatically highlight your visitors’ search words once they arrive at your site. Click through to see how.
Do NOT open a results page through the right-click + open in new tab context menu. Google Chrome and Safari will get a severe amnesia that makes them forget where you came from, and thus your search terms (they discard the referrer information, sigh!). Instead use CTRL + CLICK if you need to open a new tab.
I’m having the famous bug/feature dilema here, but it’s safe to say that the Chrome guys are aware of this issue.
Source code
This project is hosted on Google’s servers, take a peek at the source code here.If you have any suggestions, ideas or just a plain wheee…. Go on and say your piece.