2010 06/10 19:35
Category : カレン・システム
Fx.dec = function(s){
var e = "_";
s = s.replace(/\[\[(.+?)\]\]/gm, function(e0,e1){
return e1.replace(/\x3cbr \/>/g, "\/\/\/");
});
s = s.replace(/(\&)amp;/g, "$1");
s = s.replace(/\x3cbr \/>/g, " ");
s = s.replace(/\x26quot;/g, '"');
s = s.replace(/\x26lt;/g, "<").replace(/\x26gt;/g, ">");
s = s.replace(/\x26#39;/g, "'");
s = s.split("&" + "#95;").join(e);
s = s.split(e + e + ".").join(">").split(e + e).join("<");
s = s.replace(/<\-/g, "\&" + "lt;");
s = s.replace(/>\-/g, "\&" + "gt;");
s = s.replace(/\/\/\//g, "\x3cbr \/>");
if(Fx.dec2){
s = s.replace(/\$\$/g, "");
s = s.replace(/MIHO/g, "http://www.nancyan.net/image/futari/");
s = s.replace(/YOSHI/g, "http://www.nancyan.net/archive/gaiax/image/");
s = s.replace(/(\x3cimg\s)yukikko/g, '$1src="files/yukikko2b.gif" alt="" width="350" height="190"');
s = s.replace(/(\x3cimg\s)hamu(\d)/g, '$1src="files/hamu_folder$2.gif" alt="" height="35" width="35"');
}
return s;
};
var e = "_";
s = s.replace(/\[\[(.+?)\]\]/gm, function(e0,e1){
return e1.replace(/\x3cbr \/>/g, "\/\/\/");
});
s = s.replace(/(\&)amp;/g, "$1");
s = s.replace(/\x3cbr \/>/g, " ");
s = s.replace(/\x26quot;/g, '"');
s = s.replace(/\x26lt;/g, "<").replace(/\x26gt;/g, ">");
s = s.replace(/\x26#39;/g, "'");
s = s.split("&" + "#95;").join(e);
s = s.split(e + e + ".").join(">").split(e + e).join("<");
s = s.replace(/<\-/g, "\&" + "lt;");
s = s.replace(/>\-/g, "\&" + "gt;");
s = s.replace(/\/\/\//g, "\x3cbr \/>");
if(Fx.dec2){
s = s.replace(/\$\$/g, "");
s = s.replace(/MIHO/g, "http://www.nancyan.net/image/futari/");
s = s.replace(/YOSHI/g, "http://www.nancyan.net/archive/gaiax/image/");
s = s.replace(/(\x3cimg\s)yukikko/g, '$1src="files/yukikko2b.gif" alt="" width="350" height="190"');
s = s.replace(/(\x3cimg\s)hamu(\d)/g, '$1src="files/hamu_folder$2.gif" alt="" height="35" width="35"');
}
return s;
};