Unhijacking Google Results
A userscript to disable Google Search results link indirections.
As promised, I’m sharing my first tiny thing.
When you copy a link to a Google search result, Google hijacks it with an internal redirect link. Instead of
www.wikipedia.org, you end up with something like
www.google.de/url?sa=t&rct=j&q… on your clipboard. This is obviously quite inconvenient if you want to share or otherwise reference that URL.
I whipped up a userscript that disables this so you always get the direct link to the search result.
rwt. To disable it, the userscript simply defines an empty non-configurable function with the same name
rwt. The key is the non-configurability which makes it impossible for Google to override our empty
rwt function with theirs.
Works like a charm.
Download the userscript here. You can install it in your browser with your favorite userscript manager such as Tampermonkey or Greasemonkey.