Proxomitron Filters - Discussions welcome > Feature-Block

Anti-Auto-Meta-Refresher (mod)

(1/1)

sidki3003:
This version:
 catches also instant refreshes,
 displays the intended delay,
 fixes certain refreshes on non-default pages,
 and doesn't touch links containing JS expressions.

If you happen to wipe meta tags e.g. with altosax's tag manager, place it above that filter.

[Patterns]
Name = "Anti-Auto-Meta-Refresher (mod sidki)"
Active = TRUE
URL = "$TYPE(htm)"
Bounds = "<metas*>"
Limit = 256
Match = "*http-equiv=("|)refresh*"
        "&"
        "*content=("|) ([#0:*])2"
        "("
        " ([;,]|) "
        "("
        "(url=("|)((^*[+]*[>" ])&([^>" ]+)1))"
        "|"
        "((^url)&$SET(1=#))"
        ")"
        ")*"
Replace = "<center><a class="prox" href="1">[Meta Refresh 2 sec]</a></center>$STOP()"

/sidki


 

Navigation

[0] Message Index

Go to full version