Unhijacking Google Results

A userscript to disable Google Search results link indirections.

screenshot

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.

It took a while finding the source of the redirection in Google’s Javascript. The culprit is a global function 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

Download the userscript here. You can install it in your browser with your favorite userscript manager such as Tampermonkey or Greasemonkey.

Hello

hello

This will be my place on the internet. For what exactly I don’t know yet.

Over the last few years, I have created many small projects and hacks that have made my life a weeny bit easier. I have learned a bunch and had many thoughts and ideas. But I have never really put those things down somewhere, for me or others to see. It all just floats away.

Part of it is being afraid, of not feeling ready. That doesn’t mean I shouldn’t start anyway. I want to put stuff out there, even if it is tiny and insignificant and nobody cares. I want this to be a place to document all this, where I allow myself to experiment and to suck so I can learn and grow from it.

Along the way, I might even contribute something back to this world.