Old Proxomitron Forums
Proxomitron Filters - Discussions welcome => Cosmetic => Topic started by: Arne on August 09, 2001, 07:29:32 AM
-
Disables external stylesheets referenced in the <link> tag:
[Patterns]
Name = "CSS - Disable stylesheets in <link>"
Active = TRUE
Bounds = "<links*>"
Limit = 256
Match = "<link 1stylesheet2"
Replace = "<nolink CSS=disabled 1stylesheet2"
If you wish to use your own css file on your local harddisk the save it in Proxomitrons "html" folder and have this is your Replace in the filter:
<link REL="stylesheet" TYPE="text/CSS" MEDIA="screen" HREF="http://Local.ptron/my.css"> and you dont need to use the variables 1 and 2 in the match.
Best wishes
Arne 

Edited by - arne on 09 Aug 2001 09:35:32
-
style= attribute disabler that uses recursion:
[Patterns]
Name = "CSS - Disable style="...""
Active = TRUE
Multi = TRUE
Bounds = "<*>"
Limit = 1024
Match = "((#sstyle=$SET(#= StyleOff=))+) #"
Replace = "@"
Best wishes
Arne 
-
Changes the <style> element to a <script> with an unknown language, something the browser should ignore:
[Patterns]
Name = "CSS - Disable <style>...</style>"
Active = TRUE
Limit = 256
Match = "<(/$SET(1=</script>)"
"|$SET(1=<script language="ShonenScript">)"
")style[^>]+>"
Replace = "1"
Best wishes
Arne 