Created
December 8, 2012 15:06
-
-
Save aisensiy/4240668 to your computer and use it in GitHub Desktop.
[UserScript] stop google links redirect
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-noredirect | |
// @namespace tools | |
// @description stop google links redirect | |
// @include http://www.google.com* | |
// @include https://www.google.com* | |
// ==/UserScript== | |
(function() { | |
window.addEventListener('load', function() { | |
if (document.querySelectorAll) { | |
Array.prototype.forEach.call( | |
document.querySelectorAll('h3.r > a'), | |
function(elem) { | |
elem.onmousedown = function() {}; | |
} | |
); | |
} | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment