Skip to content

Instantly share code, notes, and snippets.

@im007boy
Created October 21, 2012 00:39
Show Gist options
  • Save im007boy/3925343 to your computer and use it in GitHub Desktop.
Save im007boy/3925343 to your computer and use it in GitHub Desktop.
gblock
// ==UserScript==
// @name Google Real Link
// @include http://www.google.*/*
// @include https://www.google.*/*
// @include https://encrypted.google.*/*
// @downloadURL https://gist.github.com/raw/3925343/https.user.js
// @version 0.2
// @author im007boy
// ==/UserScript==
if (window.location.href.toLowerCase().indexOf('q=') > -1){
Array.prototype.forEach.call(document.querySelectorAll("#ires h3 a, #ires .fc a"),function(el){
if (el.getAttribute('onmousedown') && el.getAttribute('onmousedown').indexOf('return rwt') > -1){
el.onmousedown = null;
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment