光輝之街

使光輝之街圖片正確顯示

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

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