Google Redirect Remover

a very simple Google redirect remove, maybe

目前为 2014-10-16 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Google Redirect Remover
  3. // @namespace http://weibo.com/zheung
  4. // @version 2.4.141017
  5. // @description a very simple Google redirect remove, maybe
  6. // @include https://www.google.*/*
  7. // @include http://www.google.*/*
  8. // @run-at document-end
  9. // @copyright DanoR
  10. // ==/UserScript==
  11.  
  12. var as1 = document.querySelectorAll("h3.r>a");
  13. for(i=0; i<as1.length; i++)
  14. as1[i].removeAttribute("onmousedown");
  15.  
  16. var ws = new Array("irc_fsl.irc_but", "irc_vpl.irc_but", "irc_mil", "_Epb.irc_tas", "_ZR.irc_hol");
  17.  
  18. setInterval(function() {
  19. for(i=0; i<ws.length; i++)
  20. {
  21. var as2 = document.querySelectorAll("a."+ws[i]);
  22. for(j=0; j<as2.length; j++)
  23. as2[j].onmousedown = ""
  24. }
  25. },1024);