Created
October 21, 2012 00:39
-
-
Save im007boy/3925343 to your computer and use it in GitHub Desktop.
gblock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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