Post Reply 
Google Light Theme - fixed 2010-05-06
May. 07, 2010, 09:32 PM
Post: #6
RE: Google Light Theme - fixed 2010-05-06
Great to hear that it works for you Smile!

I've made some corrections to the code. And I added hiding unnecessary "Search English pages" horizontal bar. Here is the new code:
Code:
Name = ". + Google Light Theme     10.05.07 (!nn) [ozo] (o.s)"
Active = TRUE
URL = "$TYPE(htm)www.google.(^$TST(hOrigUA=mozilla/4.[1-9](^*opera)*))[^:/]+/(intl/[^/]+/(^?)|search\?(^q\=cache:)|webhp|(^?))"
Limit = 32
Match = "<style( id=\"themed\"*>$INEST(<style,//-->|-->|</style))\1(*</style >)\2"
Replace = "<style\1\r\n"
          "/* Google Light Theme */\r\n"
          "a {text-decoration: none;}\r\n"
          "a:link, .q a:link, a.toplink:visited {color: #00A !important;}\r\n"
          "a:visited {color: #A0D;}\r\n"
          "a:active, .q a:active, a.fl:active {color: #D00 !important;}\r\n"
          "a:hover, .q a:hover, a.fl:hover {text-decoration: underline; color: #000 !important;}\r\n"
          "a.ProXPref:hover {color: #379CCD;}\r\n"
          "a.ProXPrefJs {color: #008 !important; }\r\n"
          "a.ProXPrefJs:visited {color: #A0D !important;}\r\n"
          "a.ProXPrefJs:active {color: #D00 !important;}\r\n"
          "a.ProXPrefJs:hover {color: #000 !important;}\r\n"
          ".odd {background: #F0F0FE; margin-bottom:0.7em !important;}\r\n"
          ".even {background: #F0FEF0; margin-bottom:0.7em !important;}\r\n"
          ".s {max-width: none !important; width: auto !important;}\r\n"
          "li {padding-left: .5em; padding-right: .5em;}\r\n"
          ".g {line-height: 16px; margin-top: 10px; margin-bottom: 10px;}\r\n"
          "div.mainspace {line-height: 3px;}\r\n"
          "/* Fixing center column: */\r\n"
          "#center_col { margin: 0px; padding:0px;}\r\n"
          "\2"

Name = ". + Google - No left bar     10.05.07 (!nn) [ozo,sumw] (o.s)"
Active = TRUE
URL = "$TYPE(htm)www.google.(^$TST(hOrigUA=mozilla/4.[1-9](^*opera)*))[^:/]+/(intl/[^/]+/(^?)|search\?(^q\=cache:)|webhp|(^?))"
Limit = 15000
Match = "<div id=leftnav*(<div id=foot class=tsf-p)\1"
Replace = "\r\n<!-- Removed LeftNav -->\r\n\1$STOP()"

Name = ". + Google - No Logo     10.05.07 (!nn) [ozo] (o.s)"
Active = TRUE
URL = "$TYPE(htm)www.google.(^$TST(hOrigUA=mozilla/4.[1-9](^*opera)*))[^:/]+/(intl/[^/]+/(^?)|search\?(^q\=cache:)|webhp|(^?))"
Limit = 500
Match = "<div style="position:absolute;left*(<div class=tsf-p)\1"
Replace = "\r\n<!-- Removed Logo -->\r\n\1$STOP()"

Name = ". + Google - No Search English pages bar     10.05.07 (!nn) [ozo] (o.s)"
Active = TRUE
URL = "$TYPE(htm)www.google.(^$TST(hOrigUA=mozilla/4.[1-9](^*opera)*))[^:/]+/(intl/[^/]+/(^?)|search\?(^q\=cache:)|webhp|(^?))"
Limit = 500
Match = "<div id=tbbc*(<div id=res class=med)\1"
Replace = "\r\n<!-- Removed Search English pages bar -->\r\n\1d$STOP()"
Please use the latest version.

Here is the picture how it looks with the filters above:
[Image: googlelighttheme100507.png]

@Dave Guest
I'd like to merge some of those filters and put them into just one, but I don't know how to apply multiple matches to corresponding multiple replacements in one filter. Perhaps it's impossible. And if it is, to remove the left column, the huge logo image and "Search English pages" bar we have to use separate filters...
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Google Light Theme - fixed 2010-05-06 - OZO - May. 07, 2010, 06:06 AM
RE: Google Light Theme - fixed 2010-05-06 - OZO - May. 07, 2010 09:32 PM

Forum Jump: