Proxomitron フィルター作成スレッド Part4

このエントリーをはてなブックマークに追加
901名無しさん@お腹いっぱい。
>>900
元画像とサムネイルの入れ替え自体は>>887-888のフィルタでも行われてるので
あとはIMGタグのwidth属性とheight属性の指定を削除すればいいのかな?
これでどうでしょう?
[Patterns]
Name = "google image (060629) +js"
Active = TRUE
URL = "images.google.co(.jp|m)/"
Limit = 1024
Match = "var\ e=\"/imgres\?imgurl=http://[^;]+;c\+=[^;]+;[^;]+;[^;]+;$STOP()"
"$SET(9=var e=unescape(b.n.match(/^[^&]+/));if(b.g.match(/^https:\\/\\//)){b.g=b.g.replace(/^http(s):\\/\\//,"")};"
"c+="<a href="+e+" target=_blank>imgref</a> / <a target=_blank href=http"+RegExp.$1+"://"+unescape(b.g)+">img</a><br>"
"<img ondblclick='this.src="+'"";this.style.display="none"'"
"+"' onclick='if(this.a){this.src=this.a;this.a=0}else{this.a=this.src;this.src="+'"http://'+unescape(b.g)+'"}'"
"+"' src=/images?q=tbn:"+b.c+b.g+">";)"
"|"
"<a href=/imgres\?imgurl=[^&]+\&imgrefurl=([^&]+)\0[^>]+> <img[^>]++(src=/images\?q\=tbn:[^:]+:([^ >]+)\2)\1*</a>"
"$SET(9=<a href="$UESC(\0)" target="_blank">imgref</a> / <a href="http://\2" target="_blank">img</a><br>"
"<img ondblclick="this.src='';this.style.display='none'" onclick="if(this.a){this.src=this.a;this.a=0}else{this.a=this.src;this.src='http://\2'}"\1</a>)"
Replace = "\9"