>>469のFLURL用スクリプトを作り直したからよかったら使ってくれ。
<html><head><title>FLURL</title><script language="javascript"><!--
function showPage(str){
lines = str.split("\n");
regex = /.*FLURL-dot-com-([0-9a-zA-Z]+)_(\w+)\.\w+/;
if(!lines[0].match(regex)){
alert("1行目にFLURL動画ファイルへのURLを入力してね");
return;
}
pageURL = "
http://www.flurl.com/item/" + RegExp.$2 + "_u_" + RegExp.$1 + "_original";
window.open(pageURL,"_blank");
}
function showLink(str){
lines = str.split("\n");
source = ['<html><body style="font-size: 12;">'];
for(i = 0; i < lines.length; i++){
if(lines[i].length == 0){continue;}
regex = /[ \t]*(h?
ttp:\/\/\S+)[ \t]?/;
if(lines[i].match(regex)){
url = (RegExp.$1.charAt() != "h") ? ("h" + RegExp.$1) : RegExp.$1;
source.push(url.link(url));
source.push("<br>");
}
}
if(source.length > 1){
source.push("</body></html>");
linkWin = window.open("","","width=700,height=200,status=yes,resizable=yes,scrollbars=yes");
linkWin.document.write(source.join(""));
linkWin.document.close();
}
}
function replace(form){
str = form.urlLines.value;
regex = form.regex.value;
replacement = form.replacement.value;
if ((str.length == 0) || (regex.length == 0)){return;}
source = new Array();
while(str.match(regex)){
source.push(RegExp.leftContext);
source.push(replacement);
str = RegExp.rightContext;
}
source.push(str);
form.urlLines.value = source.join("");
} //-->
</script></head><body><form><table>
<tr><td>regex: <input type="text" size="30" name="regex" style="width:200px;" onfocus="this.select()">
</td><td>replacement: <input type="text" size="30" name="replacement" style="width:200px;" onfocus="this.select()">
</td><td align="left"><input type="button" value="replace" onClick="replace(this.form)"></td></tr><tr><td colspan="3">
<textarea name="urlLines" cols="120" rows="10" style="font-size: 12; width:700px;"></textarea>
</td></tr><tr><td td colspan="3" align="left">
<input type="button" value="show" onClick="showPage(this.form.urlLines.value)">
<input type="button" value="link" onClick="showLink(this.form.urlLines.value)">
<input type="button" value="clear" onClick="this.form.urlLines.value=''">
</td></tr></table></form></body></html>