Re 2ch Links

2ch各種連結還原

当前为 2014-11-11 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Re 2ch Links
  3. // @version 0.4b
  4. // @description 2ch各種連結還原
  5. // @include http://*.2ch.*/
  6. // @include http://*.bbspink.com/*
  7. // @include http://*.open2ch.net/*
  8. // @noframes
  9. // @namespace https://greasyfork.org/users/6037
  10. // ==/UserScript==
  11. var ras = 0;
  12. var ra = function re1(){
  13. var b=document.body;
  14. b.innerHTML = b.innerHTML.replace(/(\<a\shref\=\")http\:\/\/.*?\/.*?(\"\starget\=\"\_blank\"\>)(http\:\/\/.*?)(\<\/a\>)/g, '$1$3$2$3$4');
  15. ras++;
  16. if (ras < 10){
  17. setTimeout(ra, 3000);}
  18. };
  19. ra();