goog-no-rewritelink

Remove link redirection on Google search results.

  1. // ==UserScript==
  2. // @author @leoncastro
  3. // @namespace https://github.com/leoncastro
  4. // @name goog-no-rewritelink
  5. // @version 0.01
  6. // @description Remove link redirection on Google search results.
  7. // @icon https://addons.cdn.mozilla.net/user-media/addon_icons/661/661700-64.png
  8. // @include /(https?:)?\/\/(www\.)?google\.((com)|((com?\.)?[\w]{2}))\/.*/
  9. // @compatible firefox+greasemonkey
  10. // @compatible chrome+tampermonkey
  11. // @grant none
  12. // @run-at document-end
  13. // ==/UserScript==
  14. //
  15. setInterval(function(){
  16. Array.slice(document.querySelectorAll('a[onmousedown*="return rwt"]')).forEach(function(a){
  17. a.removeAttribute('onmousedown')
  18. })
  19. },500);