Post Reply 
Nocturnal Surfing
Sep. 04, 2008, 02:54 AM
Post: #1
Nocturnal Surfing
I do a lot of surfing at night, and all the bright white backgrounds and images hurt my eyes, so I've decided to write a pretty simple filter to turn the background colors to black, text to a "light" grey, links to a faded blue, remove background-images, and set the opacity of all images to 35% Smile! I didn't do a lot of testing yet with this filter, but let me know what you think of it!

Code:
[Patterns]
Name = "Nocturnal"
Active = TRUE
Multi = TRUE
URL = "($TYPE(htm)|$TYPE(css))"
Limit = 128
Match = "$TYPE(htm)((?)\0(^$TST(topmatched=1))$SET(topmatched=1)|(^*?)$STOP())$SET(1=<style type="text/css">"
        "* { background-color: #000 !important; color: #ccc !important; background-image: none !important; background: #000 !important; border: none !important; font-size: 12px !important; font-family: "Segoe UI" !important;}"
        "select, input, textarea { border: 1px solid #7489ff !important; }"
        "select:hover, input:hover, textarea:hover { border: 1px solid #1689ff !important; }"
        "a { color: #7489ff !important; text-decoration: none !important; }"
        "a:hover { color: #1689ff !important; text-decoration: underline !Important; }"
        "img { filter:alpha(opacity=35) !important; -moz-opacity:0.35 !important;opacity:0.35 !important; }"
        "</style>\0)"
        "|$TYPE(css)background(-(color|image)|) : ([a-z]|#)\9$SET(1=foo: \9)"
Replace = "\1"
Visit this user's website
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Nocturnal Surfing - Kye-U - Sep. 04, 2008 02:54 AM
RE: Nocturnal Surfing - Siamesecat - Sep. 04, 2008, 05:31 AM
RE: Nocturnal Surfing - lnminente - Sep. 04, 2008, 12:11 PM
RE: Nocturnal Surfing - ProxRocks - Sep. 04, 2008, 12:32 PM
RE: Nocturnal Surfing - lnminente - Sep. 04, 2008, 12:56 PM
RE: Nocturnal Surfing - Kye-U - Sep. 04, 2008, 01:21 PM
RE: Nocturnal Surfing - Ralph - Sep. 04, 2008, 05:06 PM

Forum Jump: