以下规则,会将不来源于当前所访问页面服务器的第三方脚本显示出来,便于我们分析广告之用。请将其置于过滤规则的最后面使用。
Code: Select all
[Patterns]
Name = "Show 3rd party JavaScript [phoenix]"
Active = TRUE
URL = "$TYPE(htm)"
Bounds = "$NEST(<script\s,</script>)"
Limit = 256
Match = "(* src=*http://((^\h|local.ptron)*)\1/*</script>)\2"
Replace = "\2<span style="color: red;">[3rd party JavaScript from \1 ]</span><br>"
"$SET(script=)"