Google-chrome – How to disable Google search result link redirect (on right-click) in Chrome

google-chrome

When logged in to Google, Google search results are redirected (for tracking purposes etc.). This is annoying, as it's not easy to copy/paste the URL without visiting the site. If there would be no redirect, I would just right-click the link in the search results and select "Copy link address". Now it is altered by some Google JavaScript code which monitors for the right-click.

How can this be disabled on Chrome?
I think there used to be a Chrome extension for it, but seems to not be working anymore.

Best Answer

Now when I know what you wanted, I wrote a little script which deletes onmousedown attribute from link.

Here it is:

// ==UserScript==
// @name           Delete onmousedown
// @namespace      google
// @include        http://www.google.*/*
// ==/UserScript==
var runOnce = function(){
    var items = document.querySelectorAll('li.g h3.r a');
    for(var i = 0, len = items.length; i< len; i++){
        items[i].removeAttribute('onmousedown');
    }
}
document.body.appendChild(document.createElement("script")).innerHTML = "("+runOnce+")()";

Save it as some file which ends with .user.js and drop it on Google Chrome and let me know if it helped.

PS. English is not my spoken language so sorry for misunderstanding you.

Edit: I added extra logic so it should work with Google Instant. Tell me if it works for you.

Edit: I rolled back to version "without" Google Instant support.

Related Question