Post Reply 
[help] Google Preview...
Oct. 19, 2008, 01:39 AM
Post: #1
[help] Google Preview...
i'm trying to get the "preview function" that Grypen used to have to work with sidki-1.2.08...

for some reason, the .js doesn't seem to pass the URL ???


three filters, the first is placed directly beneath "Header Top Add: Initial JS Code 7.11.29 (ccw! !mos) [...] (d.r)" and is:
Code:
Name = "Header Top Add: User JS Code - Google Preview [add]"
Active = TRUE
URL = "(^TYPE(oth))www.google."
Limit = 16
Match = "(^(^<ProxHdrTop>))$STOP()"
Replace = "\t<script type="text/javascript">//<![CDATA[\r\n"
      "\t function GooglePrv(Gid,Gsrc,Glid,Gplid) {\r\n"
      "\t \r\n"
      "\t prxO.oInt.inToggleB(Gplid,'id','a',1);\r\n"
      "\t prxO.oInt.inToggleB(Glid,'id','a',1);\r\n"
      "\t prxO.oInt.inToggleB(Gid,'id','div',1);\r\n"
      "\t \r\n"
      "\t var Giframe = document.createElement("iframe");\r\n"
      "\t Giframe.setAttribute("src", Gsrc );\r\n"
      "\t Giframe.setAttribute("width", "95%" );\r\n"
      "\t Giframe.setAttribute("height", "300px" );\r\n"
      "\t \r\n"
      "\t document.getElementById(Gid).appendChild(Giframe);\r\n"
      "\t }\r\n"
      "\t \r\n"
      "\t function GooglePrvC(Gid,Glid,Gplid) {\r\n"
      "\t \r\n"
      "\t prxO.oInt.inToggleB(Gplid,'id','a',1);\r\n"
      "\t prxO.oInt.inToggleB(Glid,'id','a',1);\r\n"
      "\t prxO.oInt.inToggleB(Gid,'id','div',1);\r\n"
      "\t \r\n\t }\r\n\t//]]></script>\r\n"

the next two "replace" two of sidki's:
Code:
Name = ". + Google Light Blue Theme     7.06.08 (!nn) [jd sd] (o.s) [un-082208] PFR"
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"
          ".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 {width: 100%;}\r\n"
          ".gbh, .gbd {border-top:none;}\r\n"
          ".s{max-width:none;font-size:11px;}\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"
          "\3"

and:
Code:
Name = "Google Search: Alternate Display     7.10.30 (multi) [sd] (d.s) [un-101808] PFR"
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 = "</body$SET(a=)$SET(b=)PrxFail$TST()"
        "|"
        "<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="
        "<script>"
        "var prxSpics=["http://local.ptron/sidki_h_$GET(cfg)/Google/google-","
        "new Image(),new Image(),new Image()];"
        "prxSpics[1].src=prxSpics[0]+"bug.png";prxSpics[2].src=prxSpics[0]+"top.png";"
        "prxSpics[3].src=prxSpics[0]+"new.png";"
        "</script>"
        "<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 >"
        ")"
        "|"
        "<(div|p|li)\2 class="
        "$AV(g)("
        "((^ style=$AV(margin-(left|right)*))($TST(c=odd)$SET(a=even)|$SET(a=odd))|)$SET(c=$GET(a))"
        ")(*<a)\#"
        "((*href=$AV(/interstitial\?url\=h\9|([^/]+//[^/]+/)\9?*|*)*)\5>*</a >)\4\6( <br>|( <table)\7)"
        "($TST(\9=t$SET(0="
        "<a href="h\9"><img src="http://local.ptron/sidki_h_$GET(cfg)/Google/google-bug.png""
        " width=16 height=10 border=0 title="Malware warning!"></a>&nbsp;&nbsp;"
        ")*|$SET(0="
        "<a href="\9"><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;$GET(c);\#\4&nbsp;&nbsp;\0"
        "<a class="tool"\5 target=_blank><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)','\h','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"
which is SUPPOSED TO pass the host, http://www.google.com...
but ultimately will pass the search result...


any suggestions?
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
[help] Google Preview... - ProxRocks - Oct. 19, 2008 01:39 AM
RE: [help] Google Preview... - ProxRocks - Oct. 19, 2008, 01:28 PM
RE: [help] Google Preview... - lnminente - Oct. 20, 2008, 02:10 PM
RE: [help] Google Preview... - ProxRocks - Oct. 20, 2008, 02:22 PM
RE: [help] Google Preview... - z12 - Oct. 20, 2008, 02:38 PM
RE: [help] Google Preview... - ProxRocks - Oct. 20, 2008, 04:10 PM
RE: [help] Google Preview... - lnminente - Oct. 20, 2008, 02:54 PM
RE: [help] Google Preview... - z12 - Oct. 20, 2008, 04:48 PM
RE: [help] Google Preview... - ProxRocks - Oct. 20, 2008, 06:58 PM
RE: [help] Google Preview... - z12 - Oct. 20, 2008, 07:06 PM
RE: [help] Google Preview... - ProxRocks - Oct. 20, 2008, 08:51 PM
RE: [help] Google Preview... - z12 - Oct. 20, 2008, 11:35 PM

Forum Jump: