Post Reply 
filter to strip presentation tags
Apr. 01, 2004, 09:08 PM
Post: #5
 
What i'm doing is just blocking all original external stylesheets ...
Code:
[Patterns]
Name = "<link>: Cancel Styles on sel. Sites"
Active = TRUE
URL = "$TYPE(htm)$LST(foo)"
Bounds = "<link\s*>"
Limit = 256
Match = "(*rel=)\1$AV(stylesheet)\2"
Replace = "\1"alternate stylesheet"\2"
... and injecting my one.
I didn't need to remove the <style> blocks yet but that is probably easy: bounds=$NEST(<style,</style >) match=*.
I wouldn't bother about the other smallish style tags and attributes, unless they actually disturb the page layout *after* applying my user CSS.

sidki
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
[] - jardokraka - Apr. 01, 2004, 06:30 PM
[] - ProxRocks - Apr. 01, 2004, 07:43 PM
[] - jardokraka - Apr. 01, 2004, 07:51 PM
[] - ProxRocks - Apr. 01, 2004, 08:47 PM
[] - sidki3003 - Apr. 01, 2004 09:08 PM
[] - jardokraka - Apr. 01, 2004, 10:28 PM
[] - ProxRocks - Apr. 01, 2004, 10:37 PM
[] - jardokraka - Apr. 01, 2004, 11:06 PM
[] - JD5000 - Apr. 01, 2004, 11:19 PM
[] - jardokraka - Apr. 01, 2004, 11:23 PM
[] - JD5000 - Apr. 01, 2004, 11:30 PM
[] - JD5000 - Apr. 01, 2004, 11:35 PM
[] - jardokraka - Apr. 01, 2004, 11:35 PM
[] - JD5000 - Apr. 01, 2004, 11:37 PM
[] - jardokraka - Apr. 02, 2004, 12:10 AM
[] - JD5000 - Apr. 02, 2004, 12:39 AM
[] - jardokraka - Apr. 02, 2004, 12:54 AM
[] - JD5000 - Apr. 02, 2004, 01:02 AM
[] - jardokraka - Apr. 02, 2004, 01:10 AM
[] - JD5000 - Apr. 02, 2004, 02:02 AM

Forum Jump: