Skip to content

Instantly share code, notes, and snippets.

@aisensiy
Created December 8, 2012 15:06
Show Gist options
  • Save aisensiy/4240668 to your computer and use it in GitHub Desktop.
Save aisensiy/4240668 to your computer and use it in GitHub Desktop.
[UserScript] stop google links redirect
// ==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