光輝之街

使光輝之街圖片正確顯示

  1. // ==UserScript==
  2. // @author shyangs
  3. // @name 光輝之街
  4. // @description 使光輝之街圖片正確顯示
  5. // @namespace http://wiki.moztw.org/index.php/User:Shyangs
  6. // @version 0.1
  7. // @include http://cmi.star-kids.info/sellman/drago/*
  8. // @license MIT License; http://opensource.org/licenses/mit-license.php
  9. // ==/UserScript==
  10. (function() {
  11. var pStr="http://i271.photobucket.com/albums/jj139/shyangs_album/ACGN/GAME/dragonoma/";
  12. var regex=/http:\/\/cmi\.star\-kids\.info\/sellman\/drago\/image\/item\-no\-\d{1,3}\.png/;
  13. var a=document.images;
  14. var n=a.length;//圖片計數
  15. for(var i=0;i<n;i++)
  16. {
  17. //GM_log(a[i].src)
  18. //如果圖片連結匹配,置換圖片連結
  19. if(regex.test(a[i].src))
  20. {
  21. a[i].src=a[i].src.replace("http://cmi.star-kids.info/sellman/drago/image/",pStr);
  22. }
  23. }
  24. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址