Take the 2-minute tour ×

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 not to be working anymore.

share|improve this question
What is the purpose of your right-click? –  Beniamin Aug 26 '11 at 11:10
@Beniamin: as said in my question: "copy [paste] the URL". I just want to get the URL (e.g. for pasting in a report etc.) –  Rabarberski Aug 26 '11 at 11:45
FYI: Just selecting the text with the cursor and pressing ctrl-c is not always an option, because google concatenates long URLs –  Rabarberski Aug 26 '11 at 11:50
Ok. But when you right-click on link, it changes to google tracking link. So you won't get that link unless you open page, google will redirect you to desired page and you will have what you want. –  Beniamin Aug 26 '11 at 12:18
The question is exactly on how to avoid that. (there was some chrome extension before (doesn't work anymore), and some greasemonkey script for firefox, but last time I checked I had some issues with that. So saying "you won't get that link unless you open the page" doesn't make sense). –  Rabarberski Aug 26 '11 at 12:43

5 Answers 5

Edit - I think that script linked by reflexiv is the best way to go, but I'm leaving my answer just for the reference.

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++){
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.

share|improve this answer
Thanks for the effort. I tried something similar, however, when I drag the script file over Chrome, it is opened in the browser, displaying the source code instead of installing the script. –  Rabarberski Aug 26 '11 at 13:35
Try Ctrl+O to open the file. And are you sure you named it something like: google.user.js? –  Beniamin Aug 26 '11 at 14:09
And I've read that chrome window need to be maximized. –  Beniamin Aug 26 '11 at 14:16
Or install some greasemonkey-like extension in chrome. It will help you install scripts and greasemonkey scripts should work. For example: chrome.google.com/webstore/detail/… –  Beniamin Aug 26 '11 at 14:21

Currently working and frequently updated userscript (install like an extension) to do this across all Google services: http://userscripts.org/scripts/show/121261

share|improve this answer

Benjamin's script works for me if I change the selector to: li.g div.vsc h3.r a

Actually this user script looks like it would do the job:

Google Tracking-B-Gone for Greasemonkey

share|improve this answer

I find this scriptlet easiest to run. Copy and drag it to your bookmarks bar and click it before right clicking on any of the search result links.


God these people are satan but I updated the script Beniamin gave, works as of the date of this post. User this trick to lightweight make sure page has loaded before stripping a elements of their mousedown events. Must use TamperMonkey to make this work.

// ==UserScript==
// @name           Delete onmousedown
// @namespace      google
// @version        0.1
// @description    Allows you to right click links on Google search results without having them mangled on you.
// ==/UserScript==
var tid = setInterval( function () {
    if ( document.readyState !== 'complete' ) return;

    var items = document.getElementsByTagName('a');

    var succeeded=false;
        if( items[i].onmousedown ) { succeeded=true; } // we stripped the urls
        items[i].onmousedown = null ;

    if( succeeded )  clearInterval( tid ); // stop invoking this routine when we succeeded.
}, 100 );
share|improve this answer

Your Answer


