Last active
February 3, 2017 19:41
-
-
Save blinksmith/713fa531972fab77e5ad to your computer and use it in GitHub Desktop.
google search url cleaner - userscript
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 search url cleaner | |
// @author blinksmith | |
// @version 0.1 | |
// @namespace https://gist.github.com/713fa531972fab77e5ad | |
// @description google search url cleaner | |
// @include https://encrypted.google.com/?* | |
// @include http://www.google.*/search?* | |
// @include https://www.google.*/search?* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
var b = function(a) { | |
var c, b = a.getElementsByTagName("a"); | |
a = b[0]; | |
for (c = 1;a;c++) { | |
a.removeAttribute("onmousedown"), a = b[c]; | |
} | |
}; | |
document.addEventListener("load", b(document.body), false); | |
document.body.addEventListener("AutoPagerize_DOMNodeInserted", function(a) { | |
b(a.target); | |
}, false); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment