Post Reply 
[F] Update to Google Filters (support for Google SSL)
Jun. 12, 2011, 09:59 PM (This post was last modified: Jun. 12, 2011 11:38 PM by Kye-U.)
Post: #1
[F] Update to Google Filters (support for Google SSL)
I've incorporated the updates by JJoe in this thread into the below filters: http://prxbx.com/forums/showthread.php?t...3#pid15433

To support the SSL version of Google (domain "encrypted.google.com"), an update was needed to be done to the google-css-dark.css file (in \Proxomitron Naoko-4\html\sidki_h_2010-10-23\Google), where the modifications were made to the stylesheet sections for a#logo (encrypted.google.com doesn't assign the "logo" id to the logo, so I added "#tsf div div a" to allow the alternate style to apply to the logo; lines 48, 57, and 58)


.css  google-css-dark.css (Size: 3.29 KB / Downloads: 1006)

The URL matches for all of the below filters were also updated, changing "www" to "(www|encrypted)". In addition, the inline CSS for the Dark Blue/Grey themes were updated: a#logo { to #tsf div div a, a#logo { and a#logo img { to #tsf div div a img, a#logo img {

Code:
[Patterns]
Name = "Google Search: Remove Ad Blocks     11.06.12 [sd ku] (d.s)"
Active = TRUE
URL = "$TST(hCT=*html)(www|encrypted).google."
Limit = 32766
Match = "<("
        "!-- PROX:( Header Bottom Insertion*-->)\1"
        "$SET(0=<!-- PROX:\1\r\n<style type="text/css">#tads,#mbEnd{display:none!important;}</style>\r\n)"
        "|table[^>]++id=$AV(mbEnd)$SET(#=mbEnd.)$INEST(<table,</table)</table >"
        "|div("
        " style=(*>)+{1} <font$INEST(<div,*href=$AV(/history\?*)$SET(#=history-d.)*,</div >)</div >"
        "|([^>]++id=$AV(tpa[0-9]+$SET(#=tpa.)|tads$SET(#=tads.)|side_section$SET(#=side.)|ietb$SET(#=ietb.))"
        "|> <h2(*>)+{1}Sponsored$SET(#=sponsfloat.))$INEST(<div,</div >)</div >"
        ")"
        "|table ("
        "("
        "cellpadding=0 cellspacing=0 border=0> <tr> <td valign(*>)+{1}( <font*>)+{2}([a-z]+ :)\#"
        "|[^>]++("
        "width=$AV(100%) style=$AV(border: 1px solid*)$SET(#=custom-ad.)"
        "|class=$AV(ra)$SET(#=custom-ra-ad.)"
        ")"
        ")$INEST(<table,</table >)</table >"
        "|(*>)+{1} <tr> <td (^class)(*>)+{1} (<(/td > <td*<)+{0,1}(/+font*<)+|((*<)+{1}/+br+ > )+<)"
        "a href=$AV("
        "/history\?$SET(#=history.)*"
        "|*//(tool(bar|s).|checkout.|desktop.|pack.|survey.|webaccelerator.)\#google(ratings)+.*"
        ")$INEST(<table,</table >)</table >( <br*>)+{0,1}"
        ")"
        "|center> <font$INEST(<center,"
        "*//(tool(bar|s).|checkout.|desktop.|pack.|webaccelerator.)\#google(ratings)+.*"
        ",</center >)</center >( <(br|p)>)+"
        "|td rowspan=[#2] > <a\s[^>/]+//(tool(bar|s)|checkout|desktop|pack|webaccelerator)\#.google(ratings)+."
        "$INEST(<td,</td >)</td > </tr > <tr> $NEST(<td,</td >)$SET(#= td.)"
        "|p>( <font*>)+(*<)+{1}a\s[^>/]+//(books.)\#google.(*<)+{1}/a >( </font >)+ <br>"
        "(^(^<br clear=all>|<table))"
        ""
        ")"
Replace = "\r\n<!-- PROX-S: Modified/Removed by Google Ad Links Filter (\@) -->\r\n\0"
          "$SET(sSpec=$GET(sSpec)\@)"

Name = "Google Search: Alternate Display     11.06.12 (multi) [sd ku] (d.s)"
Active = TRUE
Multi = TRUE
URL = "$TST(hCT=*html)(www|encrypted).google.(*/)+{1}(intl/(*/)+{1}(^?)|search\?(^*\&tbm=isch)|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+|\n\r+)$SET(1= )"
        "|"
        "<("
        "/b> of (about )+<b>[0-9,]+</b> ((from|over the) $NEST(<b>,</b >) )+for <b>( <b>)+[^<]+"
        "&&((<*>|?)+{95})\2???$SET(1=<\2...)*"
        ")"
        "|"
        "</style >(^$TST(b=s))$SET(b=s)$SET(1="
        "</style>\r\n<script type="text/javascript">"
        "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>"
        "\r\n<style id="themed">\r\n"
        "/* Proxomitron "Google Alternate" CSS import */\r\n"
        "@import url(http://local.ptron/sidki_h_$GET(cfg)/Google/google-css-alt.css);\r\n\r\n"
        "/*prox-dummy*/</style>\r\n"
        ")"
        "|"
        "<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|li)\2 class="
        "$AVQ(("+g)\#((\s*|")\#|))("
        "((^ style=$AV(margin-(left|right)*))($TST(a=odd)$SET(a=even)|$SET(a=odd))|)$SET(3=$GET(a))"
        ")(*<a)\#"
        "(*( href=$AV(/interstitial\?url\=h\9|((*/)+{1}/(*/)+{1})\9?*|*))\5*</a >)\4"
        "($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>&#160;&#160;"
        ")*|$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>&#160;&#160;"
        ")*)|)"
        "$SET(1="
        "<\2 class=\#&#x20;\3\#\#\4&#160;&#160;\0"
        "<a\5 target="_blank"><img src="http://local.ptron/sidki_h_$GET(cfg)/Google/google-new.png""
        " width=14 height=10 border=0 title="Open in new window"></a>&#160;&#160;"
        ")"
Replace = "\1"

Name = ". + Google Toggle: Left NavBar     11.06.12 (!nn multi) [ozo] (d.s)"
Active = TRUE
Multi = TRUE
URL = "$TST(hCT=*html)(www|encrypted).google.(^$TST(hOrigUA=mozilla/4.[1-9](^*opera)*))(*/)+{1}(intl/(*/)+{1}(^?)|search\?(^*\&tbm=isch)|webhp|(^?))"
Limit = 256
Match = "<("
        "style( id="themed">*\*prox-dummy\*/)\2"
        "$SET(1="
        "<style\2\r\n/* Proxomitron LeftNav adjustments */\r\n"
        "#leftnav {visibility: hidden;}\r\n"
        "#center_col {margin-left: 0 ;border: none;}\r\n"
        "#prox-navtoggle {\r\n"
        "  position: absolute; top: -17px; left: 10px; cursor: pointer;\r\n"
        "  color: #AAAAAA !important; font-size: 13px;\r\n"
        "}\r\n"
        ")"
        ""
        "|div id=($AV(leftnav))\2$STOP()"
        "$SET(1="
        "\r\n\r\n<!-- PROX-S: Inserted by Google LeftNav Toggle -->\r\n"
        "<div id="prox-navtoggle" onclick="(function(){"
        "var c=document.getElementById('leftnav').style;c.visibility=c.visibility=='visible'?'hidden':'visible'"
        "})();">&#9660;&#160;Navigation</div>\r\n\r\n<div id=\2 class="prox-nav""
        ")"
        ")"
Replace = "\1"

Name = ". + Google Theme: Dark Blue     11.06.12 (!nn) [vc sd st] (d.s)"
Active = TRUE
URL = "$TST(hCT=*html)(www|encrypted).google.(^$TST(hOrigUA=mozilla/4.[1-9](^*opera)*))(*/)+{1}(intl/(*/)+{1}(^?)|search\?(^*\&tbm=isch)|webhp|(^?))"
Limit = 512
Match = "<("
        "img("
        "$INEST(<img,*src=$AV((*/|*_|)logo*)*,>)"
        "&&*width=([#267:400]$SET(6=-mn)|[#140:160])*|*height=$AV(110)$SET(6=-mn)*"
        ")>( <br>|)$SET(1=<span id="logo\6"></span>)"
        "|div($INEST(<div,*/logo*,>)&&*width : [#267:400]px*)>$SET(1=<div align="left" id="logo-mn">)"
        "|a\s((*>)+{1})\2 <img[^>]++src="
        "$AV(*/(logo_(google_suggest_$SET(3= class="logo-sg")$SET(4=Suggest)|)|experimental_)sm*)"
        "*>$SET(1=<a id="logo"\3 \2\4<span>&#160;</span>)"
        "|font([^>]++)\2color=$AV(#+(008000|6f6f6f|666666|cc00(00|33))|green)$SET(1=<font\2id="high")"
        "|style id="themed">\0/\*prox-dummy\*/"
        "("
        "$TST(hOrigUA=*msie(^*opera)*)"
        "$SET(5=: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader\(src=)"
        "|$SET(5=-repeat: no-repeat; background-position: top left; background-image: url\()"
        ")"
        "$SET(1="
        "<style type="text/css">\0"
        "/* Proxomitron "Google Dark" CSS import */\r\n"
        "@import url(http://local.ptron/sidki_h_$GET(cfg)/Google/google-css-dark.css);\r\n\r\n"
        "/* Proxomitron dark blue Google theme */\r\n"
        "body {background: #253960"
        " url(http://local.ptron/sidki_h_$GET(cfg)/Google/google-bg-blue.png) repeat-x !important;}\r\n"
        "#logo-mn {display: block; margin-top: 7%; width: 281px; height: 103px;"
        " background\5http://local.ptron/sidki_h_$GET(cfg)/Google/google-logo-m.png\);}\r\n"
        "#tsf div div a, a#logo {background\5http://local.ptron/sidki_h_$GET(cfg)/Google/google-logo-s.png\);}\r\n"
        "#tsf div div a img, a#logo img {visibility: hidden;}\r\n"
        "span#more, div#gbardd, .gb2, .mbEnd, table.ra, table.ra td, div#ss-box, div#po-box, div.prox-nav"
        " {background: #172E59 !important;}\r\n"
        "table.t.bt, .pb, #ssb, #bsf {background: #405882 !important;}\r\n"
        ".even {background: #334B7B;}\r\n"
        ")"
        ")"
        "|\&copy;( [#*:*])\2("
        "( Google)\3( </font>| - <a)\4"
        "|( - <a)\4$SET(3= <a href=""
        "http://elizar.palad.info/blog/before-google-there-was-googel-or-was-it-googol/"
        "">Gooogle</a>))$SET(1=&copy;\2\3 - Theme by <a href="http://www.valacar.com/">Valacar</a>\4)"
Replace = "\1"

Name = ". + Google Theme: Dark Gray     11.06.12 (!nn) [vc sd st] (o.s)"
Active = FALSE
URL = "$TST(hCT=*html)(www|encrypted).google.(^$TST(hOrigUA=mozilla/4.[1-9](^*opera)*))(*/)+{1}(intl/(*/)+{1}(^?)|search\?(^*\&tbm=isch)|webhp|(^?))"
Limit = 512
Match = "<("
        "img("
        "$INEST(<img,*src=$AV((*/|*_|)logo*)*,>)"
        "&&*width=([#267:400]$SET(6=-mn)|[#140:160])*|*height=$AV(110)$SET(6=-mn)*"
        ")>( <br>|)$SET(1=<span id="logo\6"></span>)"
        "|div($INEST(<div,*/logo*,>)&&*width : [#267:400]px*)>$SET(1=<div align="left" id="logo-mn">)"
        "|a\s((*>)+{1})\2 <img[^>]++src="
        "$AV(*/(logo_(google_suggest_$SET(3= class="logo-sg")$SET(4=Suggest)|)|experimental_)sm*)"
        "*>$SET(1=<a id="logo"\3 \2\4<span>&#160;</span>)"
        "|font([^>]++)\2color=$AV(#+(008000|6f6f6f|666666|cc00(00|33))|green)$SET(1=<font\2id="high")"
        "|style id="themed">\0/\*prox-dummy\*/"
        "("
        "$TST(hOrigUA=*msie(^*opera)*)"
        "$SET(5=: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader\(src=)"
        "|$SET(5=-repeat: no-repeat; background-position: top left; background-image: url\()"
        ")"
        "$SET(1="
        "<style type="text/css">\0"
        "/* Proxomitron "Google Dark" CSS import */\r\n"
        "@import url(http://local.ptron/sidki_h_$GET(cfg)/Google/google-css-dark.css);\r\n\r\n"
        "/* Proxomitron dark gray Google theme */\r\n"
        "body {background: #333333"
        " url(http://local.ptron/sidki_h_$GET(cfg)/Google/google-bg-gray.png) repeat-x !important;}\r\n"
        "#logo-mn {display: block; margin-top: 7%; width: 281px; height: 103px;"
        " background\5http://local.ptron/sidki_h_$GET(cfg)/Google/google-logo-m.png\);}\r\n"
        "#tsf div div a, a#logo {background\5http://local.ptron/sidki_h_$GET(cfg)/Google/google-logo-s.png\);}\r\n"
        "#tsf div div a img, a#logo img {visibility: hidden;}\r\n"
        "span#more, div#gbardd, .gb2, .mbEnd, table.ra, table.ra td, div#ss-box, div#po-box, div.prox-nav"
        " {background: #272627 !important;}\r\n"
        "table.t.bt, .pb, #ssb, #bsf {background: #606060 !important;}\r\n"
        ".even {background: #454343;}\r\n"
        ")"
        ")"
        "|\&copy;( [#*:*])\2("
        "( Google)\3( </font>| - <a)\4"
        "|( - <a)\4$SET(3= <a href=""
        "http://elizar.palad.info/blog/before-google-there-was-googel-or-was-it-googol/"
        "">Gooogle</a>))$SET(1=&copy;\2\3 - Theme by <a href="http://www.valacar.com/">Valacar</a>\4)"
Replace = "\1"

Name = ". + Google Theme: Light Blue     11.06.12 (!nn) [...] (o.s)"
Active = FALSE
URL = "$TST(hCT=*html)(www|encrypted).google.(^$TST(hOrigUA=mozilla/4.[1-9](^*opera)*))(*/)+{1}(intl/(*/)+{1}(^?)|search\?(^*\&tbm=isch)|webhp|(^?))"
Limit = 256
Match = "<style id="themed">"
        "$STOP(Code by: JD5000, sidki, Kye-U, ProxRocks, OZO)"
        "\1/\*prox-dummy\*/"
Replace = "<style type="text/css">\1"
          "/* Proxomitron light blue Google theme */\r\n"
          "body {margin-right: 1%;}\r\n"
          ".odd {background: #EFF6FF;}\r\n"
          ".even {background: #DFEFFF;}\r\n"
          "a:link, a:link span, .q a:link, a.prox-atop:visited {color: #0C5AA9;}\r\n"
          "a:visited {color: #087D7E;}\r\n"
          "a.l:hover {text-decoration: underline !important;}\r\n"
          "a:hover, a:hover span, a:visited:hover, .g .fl:hover {color: #1689FF;}\r\n"

Name = "Google Search: Fix Shortcuts     11.06.12 [sd] (d.s)"
Active = TRUE
URL = "(www|encrypted).google.(*/)+{1}extern_js/f/(*/)+{1}(*.)+{1}js"
Bounds = "\(function\(\) { var b=true, [ef]=false, g={};$INEST({,})"
Limit = 6000
Match = "(\#("
        "a.("
        "b.className=="g"$SET(#=a.b.className=="g"||a.b.className.indexOf("g ")==0)"
        "|c.className=="l"$SET(#=a.c.className=="l"||a.c.className.indexOf("mainlink")!=-1)"
        "|keyCode==(27$SET(#=a.keyCode==9||a.keyCode==27)|79$SET(#=a.keyCode==78||a.keyCode==79))"
        "|shiftKey$SET(#=a.shiftKey||a.keyCode==78)"
        ")"
        "|<tr><th>("
        "O</th>$SET(#=<tr><th>N</th><td>Opens the selected result in a new window.</td></tr><tr><th>O</th>)"
        "|/</th>$SET(#=<tr><th>S</th><td>Puts the cursor in the search box.</td></tr><tr><th>/</th>)"
        "|\&lt;Esc"
        "$SET(#=<tr><th>&lt;Tab&gt;</th><td>Removes the cursor from the search box.</td></tr><tr><th>&lt;Esc)"
        ")"
        "|,\"g\",$SET(#=,"g","g odd","g even",)"
        "|;case 47:$SET(#=;case 47:case 83:case 115:)"
        "|\"KeySc\"$SET(#="_blank")"
        "|src="/images/chevron.gif'$SET(#=src="http://local.ptron/sidki_h_$GET(cfg)/Google/google-chevron.png")"
        "|<table border=0 class=\"lg std\""
        "$SET(#=<table border=0 class="lg std" style="display:none;padding-bottom:10px;")"
        "|</table><br>$SET(#=</table>)"
        "|<(span[^>]+)\2>Keyboard Shortcuts*</span >"
        "$SET(#=<\2 style=\\"text-align:right;float:right;width:252px;font-size:13px;cursor:pointer;\\""
        " onclick=\\"this.nextSibling.style.display=(this.nextSibling"
        ".style.display==\\x27none\\x27)?prxO.oiIsIE?\\x27block\\x27:\\x27table\\x27:\\x27none\\x27;\\""
        ">Keyboard&#160;Shortcuts&#160;&#9660;</span>)"
        "))+\#"
Replace = "\@"

Name = "Google Search: Add Modifier Links     11.06.12 (multi) [sd] (d.s)"
Active = TRUE
Multi = TRUE
URL = "$TST(hCT=*html)(www|encrypted).google.(*/)+{1}(intl/(*/)+{1}(^?)|search\?(^*\&tbm=isch)|webhp|(^?))"
Limit = 5500
Match = "<!-- PROX: Body Insertion Ends -->$SET(a=\q)("
        "$TST(a=("
        "(\?)\0complete=1(\&hl=en|)(\&\2|)|\0\&complete=1(\&hl=en|) \2"
        "|(*[?&]hl=en|$SET(9=&hl=en))$SET(5=<a class=prox-atop href="\u&complete=1\9">Autocomplete</a>)*"
        ")"
        "&(\4\&esrch=BetaShortcuts\6|$SET(s=<a class=prox-atop href="\u&esrch=BetaShortcuts">Shortcuts</a>)*)"
        ")"
        "("
        "$TST(\0="
        "?$SET(#=<a class=prox-atop href="$GET(uProt)//$GET(uHost)\p)"
        "(?*|$TST(\2=*))$SET(#=\0\2">Reset</a>)|$SET(#=">Reset</a>)"
        ")"
        "|$TST(\4=*)$SET(#=<a class=prox-atop href="$GET(uProt)//$GET(uHost)\p\4\6">Reset</a>)|"
        ")"
        "|(^$TST(a=*))"
        "$SET(5=<a class=prox-atop href="$GET(uProt)//$GET(uHost)/webhp?complete=1&hl=en">Autocomplete</a>)"
        ")"
        "("
        "$TST(\0=*)($TST(\4=*)|$TST(uFile=webhp))$SET(8=\@)"
        "|$TST(\0=*)$SET(8=\@&#160;|&#160;$GET(s))"
        "|$TST(\4=*)$SET(8=\@&#160;|&#160;\5)"
        "|($TST(uFile=webhp)|(^$TST(a=*)))$SET(8=\5)"
        "|$SET(8=\5&#160;|&#160;$GET(s))"
        ")"
        ""
        "("
        "(^(^ <("
        "center>( <table(*>)+{1} <tr(*>)+{1} <td*>)+{0,1}"
        "|table(*>)+{1} <tr(*>)+{1}( <form*>)+{0,1} <td(*>)+{1} <a(*>)+{1}"
        ") <img src=$AV([a-z]+/*)))"
        "$SET(1="
        "<!-- PROX: Body Insertion Ends -->\r\n<table border="0" cellspacing="0" cellpadding="0" width="100%">"
        "<tr><td align="right2 nowrap><font size="-1">\8</font></td></tr></table>"
        ")"
        "|"
        "( ($NEST(<noscript,</noscript >) |$NEST(<textarea,</textarea >)"
        " |$NEST(<script,</script >) |$NEST(<iframe,</iframe >)"
        " )+(<span*> )+<div)\3"
        "(*>(\&nbsp;\|\&nbsp;|\ \|\ |))\7(^(^"
        " <a[^>]++href="+https(*<)+{1}(^img|span)"
        "))(^$TST(\7=*<img(^[^>]++height=$AV(1))*))"
        "$SET(1=<!-- PROX: Body Insertion Ends -->\3\7\8&#160;|&#160;)"
        "|$SET(a=)$SET(s=)PrxFail$TST()"
        ")"
Replace = "\1$SET(a=)$SET(s=)"

Name = "Google Images: Direct Links     11.06.12 [po] (d.s)"
Active = TRUE
URL = "$TST(hCT=*html)(images.google.|www.google.(*/)+{1}images\?|(www|encrypted).google.*\&tbm=isch)"
Bounds = "<a\s*>"
Limit = 1024
Match = "*/imgres\?imgurl\=\1\&(amp;)+imgrefurl\=\2\&*"
Replace = "<a class="Pr0XFlPref" href="\1" onmouseover="prxO.oFly.flShow(prxO.oFly.flLink("
          "'Originating&#160;Page','\2'),event,1);" onmouseout="prxO.oFly.flDHide();">"
Visit this user's website
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
[F] Update to Google Filters (support for Google SSL) - Kye-U - Jun. 12, 2011 09:59 PM

Forum Jump: