Note that this snippet has to run after DOM has loaded for it to work — the easiest way to test is to copy and paste it into the JavaScript console after appending "#/" (without quotes) and followed by a integar to the URL.
Do what you want with this code, but please don't use it. Use Emphasis - Dynamic Deep-Linking and Highlighting which is more robust, offers highlighting and will work even if you reorder and alter content.