/ Published in: JavaScript
                    
                                        
A recent update to either Google's search results page or Firefox's Tab Mix Plus add-on has prevented a locked tab from opening links in a new tab. This Greasemonkey script removes the tracking code on the Google links that causes the problem. I don't understand what the incompatibility is though, since the tracking script just changes the href attribute at the last minute.
Based on a script at [http://www.searchlores.org/ritz\_google\_anti\_snoop.htm](http://www.searchlores.org/ritz_google_anti_snoop.htm).
                Based on a script at [http://www.searchlores.org/ritz\_google\_anti\_snoop.htm](http://www.searchlores.org/ritz_google_anti_snoop.htm).
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
// ==UserScript==
// @name Remove Google Tracking Script
// @namespace http://dragonzreef.com/
// @description Removes tracking script in Google search result links
// @include http://www.google.com/search*
// @include https://www.google.com/search*
// ==/UserScript==
var rxp = /^.*?\{\s*return true;\s*}$/;
function overwriteRwt()
{
if(rxp.test(unsafeWindow.rwt))
setTimeout(overwriteRwt, 100);
else
unsafeWindow.rwt = function(){ return true; };
}
overwriteRwt();
URL: http://dragonzreef.com/greasemonkey/remove_google_tracking_script.user.js
Comments
 Subscribe to comments
                    Subscribe to comments
                
                