Post Reply 
Google Preview
Oct. 20, 2008, 11:14 AM
Post: #1
Google Preview
here's my latest Google Theme with PREVIEW function (see attached .png screen-cap, pic is worth 1000 words) Big Teeth

the "Header Top Add: User JS Code" filter should be placed alongside sidki's already-present User JS Code filter...
the other two filters UPDATE/REPLACE the sidki filters by the same "approx." name...


hope you like...


Attached File(s)
.zip  Google Preview.zip (Size: 43.83 KB / Downloads: 933)
.png  google-preview.png (Size: 38.7 KB / Downloads: 1075)
Add Thank You Quote this message in a reply
Oct. 25, 2008, 01:58 PM
Post: #2
RE: Google Preview
two minor fixes (both language-related)...

1) moved "preview" to the LEFT when the 'New Window' and the 'Go To Top Domain' images/links appear on the LEFT due to search result being in a right-to-left language, such as Hebrew for example...

2) "themed" Google's 'Translate this page' (i don't care for those stupid retarded-looking [ square brackets ], lol)...


the added trans.png is attached also, be sure to copy into the "storm119" folder or edit the filter accordingly...


ps - also removed an "un-needed" (?) prxSpics javascript variable... Kye-U, you might be able to tell me "why" it was there ??? (whatever the reason, "I" wasn't using it because i don't use sidki's bug|new .png... - but if i need to re-implement for browser-specific reasons, i'm more than happy to do so...)


Attached File(s) Image(s)
   

.txt  GooglePreviewTranslate.txt (Size: 3.57 KB / Downloads: 936)
.zip  trans.zip (Size: 1.07 KB / Downloads: 936)
Add Thank You Quote this message in a reply
Mar. 15, 2009, 04:03 PM
Post: #3
RE: Google Preview
ProxRocks,
Is there an update to these filters for use with sidki's Feb 13,2009 config release (and its confirmed fixes)
or do they work ok as posted?
Many thanks!

Edited 1 time for clarity

soccerfan
Add Thank You Quote this message in a reply
Mar. 15, 2009, 10:02 PM
Post: #4
RE: Google Preview
here is what i'm currently using -
Code:
Name = "Google Search: Alternate Display     9.02.09 (multi) [sd ku] (d.s) PFR [add]"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)www.google.[^:/]+/(intl/[^/]+/(^?)|search\?(^q\=cache:)|webhp|(^?))$SET(keyword=$TST(keyword=\1.(i_layout:[#*:0].)+\2)\1.i_layout:2.\2)"
Limit = 2048
Match = "(^?)$SET(a=)$SET(b=)$STOP()"
        "|"
        "<br>((\r|)\n$SET(1= )| <br>( <table)\2$SET(1=</p><br class=mainspace>\2))"
        "|"
        "<("
        "/b> of (about )+<b>[0-9,]+</b> ((from|over the) $NEST(<b>,</b >) )+for <b>( <b>)+[^<]+"
        "&&((<*>|?)+{95})\2???$SET(1=<\2...\3\4\5)*|$SET(1=<\2\3\4\5)\2"
        ")(*</table > )\3(<div(^ id=)$INEST(<div,>)$SET(5=<div)|)$SET(4=<div id="topspace">&nbsp;</div>\r\n)"
        "|"
        "<style(^$TST(b=s))$SET(b=s)$SET(1="
        "<style id="themed""
        ")"
        "|"
        "<div ("
        "id=("
        "$AV(ie6tb)>$INEST(<div,</div)</div >( $NEST(<script,</script >))+"
        "|$AV(exp_msgs)$INEST(<div,</div)</div >"
        ")"
        "|style=$AV(margin : -5px 0 5px)$INEST(<div,</div)</div >"
        ")"
        "|"
        "(<span class="std nobr">\&nbsp;- \[ <a href=$AV(\8) class=fl>Translate this page</a> \]</span>)"
        "$SET(Gtranslate=&nbsp;&nbsp;"
        "<a class="tool" href="\8" target=_blank><img src="http://local.ptron/My_HTML/storm119_HTML/trans.png""
        " width=15 height=15 border=0 align="middle">&nbsp;Translate</a>)"
        "|"
        "<(div|li)\2 class="
        "$AV(g(\s*|))("
        "((^ style=$AV(margin-(left|right)*))($TST(a=odd)$SET(a=even)|$SET(a=odd))|)$SET(#=$GET(a))"
        ")(*<a)\#"
        "((*href=$AV(/interstitial\?url\=h\9tp(s$SET(Gsecure=https-px-.)|):\/\/\8|http(s$SET(Gsecure=https-px-.)|):\/\/(([^/]+/)\9?*)\8|http(s$SET(Gsecure=https-px-.)|):\/\/\8)*)\5>*</a >)\4\6( <br>|( <table)\7)"
        "($TST(\9=t$SET(0="
        "<a href="http://\8"><span dir=ltr><img src="http://local.ptron/My_HTML/storm119_HTML/sim.png""
        " width=15 height=15 border=0 align="middle" title="Malware warning!"></a>&nbsp;&nbsp;"
        ")*|$SET(0="
        "<a href="http://\9"><span dir=ltr><img src="http://local.ptron/sidki_h_$GET(cfg)/Google/google-top.png""
        " width=10 height=10 border=0 title="Go to top domain"></a>&nbsp;&nbsp;"
        ")*)|)"
        "$SET(google=$GET(google)1)"
        "$SET(iframe=<div id="google$GET(google)" style="display:none"></div>)"
        "$SET(1="
        "<\2 class=g&#x20;\#\#\4&nbsp;&nbsp;\0"
        "<a class="tool"\5 target=_blank><span dir=ltr><img src="http://local.ptron/Grypen_HTML/imgs/google/new.png""
        " width=14 height=10 border=0 align="middle">&nbsp;New&nbsp;Window</a>&nbsp;&nbsp;"
        "<a id="plink$GET(google)" class="tool" style="display:inline""
        " href="javascript:GooglePrv('google$GET(google)','&#104;ttp://$GET(Gsecure)\8','link$GET(google)','plink$GET(google)')">"
        "<img src="http://local.ptron/My_HTML/storm119_HTML/preview.png""
        " width=15 height=15 border=0 align="middle">&nbsp;Preview</a>"
        "<a id="link$GET(google)" class="tool" style="display:none""
        " href="javascript:GooglePrvC('google$GET(google)','link$GET(google)','vlink$GET(google)')">"
        "<img src="http://local.ptron/My_HTML/storm119_HTML/close.png""
        " width=15 height=15 border=0 align="middle">&nbsp;Close&nbsp;Preview</a>"
        "<a id="vlink$GET(google)" class="tool" style="display:none""
        " href="javascript:GooglePrvC('google$GET(google)','link$GET(google)','vlink$GET(google)')">"
        "<img src="http://local.ptron/My_HTML/storm119_HTML/reload.png""
        " width=15 height=15 border=0 align="middle">&nbsp;Show&nbsp;Preview</a>"
        "$GET(iframe)\6<br class=mainspace><br class=mainspace>\7"
        ")"
Replace = "\1"
Code:
Name = ". + Google Light Blue Theme   7.06.08 (!nn) [jd sd] (o.s) [un-102508] PFR [add]"
Active = TRUE
URL = "$TYPE(htm)www.google.(^$TST(hOrigUA=mozilla/4.[1-9](^*opera)*))[^:/]+/(intl/[^/]+/(^?)|search\?(^q\=cache:)|webhp|(^?))"
Limit = 4900
Match = "<style( id=\"themed\"*>$INEST(<style,//-->|-->|</style))\2(*</style >)\3"
Replace = "<style\2\r\n"
          "/* Proxomitron light blue Google theme */\r\n"
          "body {background: #EDEAE9}\r\n"
          ".g {line-height:16px;margin-top:0px;margin-bottom:0px;border-top:2px solid #dddddd;clear:both;padding:0px 7px 2px;}\r\n"
          "div.g, p.g {line-height:16px;padding:2px 5px 4px 5px;}\r\n"
          ".odd {background:#EFF6FF;margin:0px -16px 0px 0px;}\r\n"
          ".even {background:#DFEFFF;margin:0px -16px 0px 0px;}\r\n"
          "div#topspace {padding-top:0px;line-height:0;}\r\n"
          "br.mainspace {line-height:0px;}\r\n"
          "a {text-decoration:none;font-size:12px;}\r\n"
          "a:link, .q a:link, a.toplink:visited {color:#0000cc;}\r\n"
          "a:visited {color: #990066;}\r\n"
          "a:hover {text-decoration: underline;}\r\n"
          "a:hover,.q a:hover, a.fl:hover {color: #1689FF;}\r\n"
          "a#topthumb, a.mainlink {font-size: 15px;}\r\n"
          "a.mainlink:hover, a.toplink:hover {color:#1689FF;text-decoration:none;border-bottom:1px solid #1689FF;}\r\n"
          "a.ProXPref:hover {color:#379CCD;}\r\n"
          "a.ProXPrefJs:hover {color:#968AFF;}\r\n"
          "#a.ProXPref.mainlink {padding-right:20px;background:url(http://local.ptron/sidki_h_$GET(cfg)/Google/google-bug.png) no-repeat right center;}\r\n"
          "a.ProXPrefJs {padding-right:0;background:none;}\r\n"
          ".j, hr {width: 100%;}\r\n"
          ".gbh, .gbd {border-top:none;}\r\n"
          ".s{max-width:none;font-size:11px;}\r\n"
          ".f{display:none;}\r\n"
          ".fl{display:none;}\r\n"
          "a.tool{background:none transparent scroll repeat 0% 0%;border-bottom:0;border-left:0;border-right:0;border-top:0;color:#999999;text-decoration:none;font-size:12px;padding:0px 3px 0px 3px;}\r\n"
          "a.tool:hover{background:#ffff66; transparent scroll repeat 0% 0%;color:#0000cc;padding:0px 3px 0px 3px;}\r\n"
          "a.tool:visited{color: #990066;}\r\n"
          "a.tool:active{text-decoration:line-through;}\r\n"
          "\3"
Add Thank You Quote this message in a reply
Mar. 15, 2009, 10:54 PM
Post: #5
RE: Google Preview
Thanks a bunch, ProxRocks!

soccerfan
Add Thank You Quote this message in a reply
Mar. 18, 2009, 10:03 AM
Post: #6
RE: Google Preview
Hi ProxRocks,

Just this quick newbie question.

Does this script auto-load the preview in the background,
or only when hovering a link or a picture ?

I'm asking this because I have to pay for my internet traffic,
and I'm trying to get as few traffic as possible (poor me) Wink
Add Thank You Quote this message in a reply
Mar. 18, 2009, 10:19 AM
Post: #7
RE: Google Preview
nope... no background loading...

i actually hate pre-loading scripts, i want "full" bandwidth on the page i am "viewing", i don't want it "slowed down" for the sake of faster pages "in the future" by some script trying to "predict" (albeit inaccurately) what i will click down the road...
Add Thank You Quote this message in a reply
Mar. 18, 2009, 12:52 PM
Post: #8
RE: Google Preview
Toppy, to know it by yourself in other situations open the log window having ticked "HTTP headers".
Anyway add this to your bookmarks http://local.ptron/.pinfo/urls/ and you will see what is passing across proxomitron, remember to reload it to see the changes. Fix your attention to the second column where you can see an incrementing number wich is the connection.

BTW, in the base config i added smarter filters for logging requests depending if they are images or not having unticked HTTP headers and having less bloated the log window.
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: