Proxomitron Part17

このエントリーをはてなブックマークに追加
485名無し~3.EXE
■iFrame/iLayer Blocker
標準であるiFrame/iLayer to linkに似ているが、
iFrameをなくしてしてリンクにするのではなく、
iFrameのままクリックするまで表示しないようにする。
JavaScript必須

[Patterns]
Name = "iFrame/iLayer Blocker"
Active = TRUE
Bounds = "<i(frame\s*</iframe|layer\s*</ilayer)>"
Limit = 1000
Match = "\0src=$AV(\1)\2"
Replace = "\0src="http://Local.ptron/IFrameBlocker.html?\h\p&\1"\2"

ファイル名 IFrameBlocker.html
例のごとくインストールフォルダ\htmlフォルダへ

<html>
<head><title>IFrame Redirectoer</title></head>
<script>
i=location.href.indexOf("?");
if(i != -1) {
base=location.href.substring(i+1).split("&")[0];
url=location.href.substring(i+1).split("&")[1];
document.write("<base href='" + base + "'>");
document.write("[IFrame/ILayer]<br><a href='" + url + "'>"+url+"</a>");
}
</script>
</html>