Post Reply 
[Kye-U] Google Alternate Display...
Jun. 27, 2009, 07:43 PM
Post: #23
RE: [Kye-U] Google Alternate Display...
For a strange reason your new version of "Google Search: Alternate Display 09.06.27" doesn't work in my IE7. But I've tried your idea of removing the line "( <br>$SET(7=<br class=mainspace>)|( <(table|cite))\7)" and applying "line-height:18px" style for <cite> elements. To compensate additional gap at the bottom created by increasing the overall height of the line I added "position:relative; top:2px;" style as well. And to correct position of the next in the line "span.gl" element I've added that to its style too. So, now it looks like:
Code:
"cite {line-height:18px; position:relative; top:2px;}\r\n"
"span.gl {position:relative; top:2px;}\r\n"
Everything was fine in IE7 and FF3 until I tried zoom in IE and discovered that when I change it from 100% IE displaced <span class=gl> element (putting it over the <cite> element, perhaps a bug in IE7). So, I went back to idea with <div> tag.

Taking into consideration your good point about validating the code without "element is empty" error I've decided to give one more try to it by adding "&nbsp;" inside the <div> element. And it looks like it's working well in IE7 and FF3, even if I zoom the page.

So, what I've done comparing to the latest "update" version 6.6 is:

1) I've replaced the line in "Google Search: Alternate Display 9.04.30" filter
Code:
"( <br>$SET(7=<br class=mainspace>)|( <(table|cite))\7)"
with
Code:
"( <br>$SET(7=<div class=mainspace>&nbsp;</div>)|( <(table|cite))\7)"

2) I've used the code for "Google Light Theme":
Code:
Name = ". + Google Light Theme     9.06.27 (!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))\2(*</style >)\3"
Replace = "<style\2\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;}\r\n"
          ".even {background: #F0FEF0;}\r\n"
          ".s {max-width: none !important; width: auto !important;}\r\n"
          "div.med {padding-right: 0 !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"
          "\3"
(It's actually similar to what I already posted earlier, except the "line-height" style for "div.mainspace" element)

And it works in IE7 and FF3.
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [Kye-U] Google Alternate Display... - OZO - Jun. 27, 2009, 06:46 AM
RE: [Kye-U] Google Alternate Display... - OZO - Jun. 27, 2009 07:43 PM

Forum Jump: