CastleCops, Internet Crime Fighters
Need help? Click here to register for free! Absolutely zero advertisements on this site!

Donation/Premium
spacer
block bottom
Security Central
spacer
· Home
· PIRT/Fried Phish
· MIRT
· SIRT
· Deutsch
· Wiki
· Newsletter
· O16/ActiveX
· CLSID List
· Contest2007
· Downloads
· Feedback (send)
· Forums
· HijackThis
· Hijacktrend
· LSPs
· My Downloads
· O18
· O20
· O21
· O22
· O23
· O9
· Premium
· Private Messages
· Proxomitron
· Reviews
· Search
· StartupList
· Stories Archive
· Submit News
· WsIRT
· Your Account
· Acceptable Use Policy
block bottom
spacer spacer

Google Theme Help

 
Post new topic   Reply to topic       All -> FavForums -> Sidki - Proxomitron [del.icio.us!] [digg it!] [reddit!]
View previous topic :: View next topic  
Author Message
natechavez

Corporal
Corporal
Premium Member

Joined: Mar 25, 2006
Posts: 53
Location: USA
Premium

PostPosted: Fri Mar 31, 2006 4:49 am    Post subject: Google Theme Help
Reply with quote

I've been working a lot lately on personalizing my filter set. I'm doing this to remove quirkiness; also to remove [000] as I mentioned in another thread. One thing I did was to merge sidki's set with Gyphen's google themes (and enchanced features). I copied the appropriate lists and HTML files so that the themes would work, and they do. One thing that I can't seem to get to work is the preview feature of these google themes. When I try to use this feature nothing my status bar appears as thought it is working but happens. The preview feature uses: javascript:GooglePrv('google1','URL/','link1','plink1') Anyone have any ideas what sidki filter is blocking this javascript?

Back to top
View users profile Send private message Send email
ProxFox

Proxomitron Host
Proxomitron Host


Joined: Nov 11, 2003
Posts: 940
Location: USA

PostPosted: Fri Mar 31, 2006 10:07 am    Post subject: Re: Google Theme Help
Reply with quote

natechavez wrote:
The preview feature uses: javascript:GooglePrv('google1','URL/','link1','plink1') Anyone have any ideas what sidki filter is blocking this javascript?


It's not that sidki's config is blocking the javascript, it's that sidki's and JD's (where Grypen's config evolved from) BOTH have a PrxToggle function encoded by way of a file called PrxFunctions.js (JD/Grypen) or proxjs-full.js (sidki)...

In JD's/Grypen's PrxFunctions.js, you have THIS line:
Code:
function PrxToggle(pnam,patr,ptog,ptag)

In sidki's proxjs-full.js, you have THIS line:
Code:
function PrxToggle(nam, atr, tags, tog, num)

The VITAL distinction being the ptag/tags and ptog/tog are *NOT* in the same "relative location"...

Since your JD/Grypen Google Preview is what is not working, that means that the PrxToggle that the filter is attempting to use is coming from SIDKI's .js file, NOT JD's/Grypen's - therefore, the filter's "tag" and "tog" are in the WRONG place...

The filter is working perfectly - it was designed for a DIFFERENT .js file...
The .js file is working perfectly - but the filters "calling it" must have everything placed in the correct location...

Here is the Google Preview filter with the tag and tog correctly configured for sidki's .js file
Code:
Name = "Google: Insert Style & Functions 20051015 [Grypen] (modified)"
Active = TRUE
URL = "www.google."
Limit = 1024
Match = "</head>$STOP()"
        "&"
        "("
        "$TST(tCSS=google)$SET(9=@import url("http://local.ptron/Grypen_HTML/google.css");\r\n)"
        "|"
        "$TST(tCSS=older)$SET(9=@import url("http://local.ptron/Grypen_HTML/google-older.css");\r\n)"
        "|"
        "$TST(tCSS=1280)$SET(9=@import url("http://local.ptron/Grypen_HTML/google-1280.css");\r\n)"
        "|"
        "$TST(tCSS=blue)$SET(9=@import url("http://local.ptron/Grypen_HTML/google-blue.css");\r\n)"
        "|"
        "$TST(tCSS=small)$SET(9=@import url("http://local.ptron/Grypen_HTML/google-small.css");\r\n)"
        ")"
        "&"
        "("
        "$TST(thumb=1)$SET(8= dd{margin: 0 0 0 10em;}dl{margin:0 1px 0 0; padding: 1em 0 3.5em .5em;}\r\n)"
        "|"
        "$SET(8= dd{margin: 0;};dl { padding: 0 0 0 .3em; }\r\n)"
        ")"
        "&"
        "($TST(preview=1)|$SET(7= .preview {display:none;}))"
Replace = "<style>"
          "\9"
          "\8"
          "\7"
          "</style>"
          ""
          "<script type=text/javascript>"
          "function GooglePrv(Gid,Gsrc,Glid,Gplid) {"
          ""
          "      PrxToggle(Gplid,'id','a',1);"
          "      PrxToggle(Glid,'id','a',1);"
          "      PrxToggle(Gid,'id','div',1);"
          "      "
          "      var Giframe = document.createElement("iframe");"
          "         Giframe.setAttribute("src", Gsrc );"
          "         Giframe.setAttribute("width", "95%" );"
          "         Giframe.setAttribute("height", "300px" );"
          ""
          "      document.getElementById(Gid).appendChild(Giframe);"
          "}"
          ""
          "function GooglePrvC(Gid,Glid,Gplid) {"
          ""
          "      PrxToggle(Gplid,'id','a',1);"
          "      PrxToggle(Glid,'id','a',1);"
          "      PrxToggle(Gid,'id','div',1);"
          "      "
          "}"
          "</script>"
          ""
          "</head>"

Note that JD's/Grypen's version of this filter not only places the tags and togs in a different place, but that it uses a 'yes' versus a 1...


Hope that helps - and bear with me, we'll get your config up-and-running...


ps - it is possible for the [000] issue to be due to a Grypen/sidki filter "attempting" to function with a sidki/Grypen 'under the hood' file (such as that .js file for the above issue)...

Back to top
View users profile Send private message
natechavez

Corporal
Corporal
Premium Member

Joined: Mar 25, 2006
Posts: 53
Location: USA
Premium

PostPosted: Fri Mar 31, 2006 11:52 pm    Post subject:
Reply with quote

I changed the filter per your suggestion and the preview function still doesn't work. I could be doing something wrogn, and more than likely than not that is the case. It's really not that big of a deal, I can just disable that function.

Back to top
View users profile Send private message Send email
natechavez

Corporal
Corporal
Premium Member

Joined: Mar 25, 2006
Posts: 53
Location: USA
Premium

PostPosted: Sat Apr 01, 2006 2:40 am    Post subject:
Reply with quote

For education's sake, I've attached my filter set...(rename to *.cfg). Maybe someone could find it beneficial. I think it is a good set, other than the preview feature not working. Maybe this one it'll be easier to solve.




default.txt
 Description:

Download
 Filename:  default.txt
 Filesize:  342.5 KB
 Downloaded:  605 Time(s)

Back to top
View users profile Send private message Send email
ProxFox

Proxomitron Host
Proxomitron Host


Joined: Nov 11, 2003
Posts: 940
Location: USA

PostPosted: Sat Apr 01, 2006 5:48 pm    Post subject:
Reply with quote

Try adding this

Code:
www.google.com/search
   $SET(keyword=$GET(keyword)a_code.a_jslink.)

to your IncludeExclude-U and your Google Preview (with the tag/tog swap) should work for you...

Back to top
View users profile Send private message
storm119

Corporal
Corporal


Joined: Apr 19, 2004
Posts: 52


PostPosted: Wed Sep 13, 2006 9:25 am    Post subject: Re: Google Theme Help
Reply with quote

ProxFox wrote:

Here is the Google Preview filter with the tag and tog correctly configured for sidki's .js file
Code:
Name = "Google: Insert Style & Functions 20051015 [Grypen] (modified)"
Active = TRUE
URL = "www.google."
Limit = 1024
Match = "</head>$STOP()"
        "&"
        "("
        "$TST(tCSS=google)$SET(9=@import url("http://local.ptron/Grypen_HTML/google.css");\r\n)"
        "|"
        "$TST(tCSS=older)$SET(9=@import url("http://local.ptron/Grypen_HTML/google-older.css");\r\n)"
        "|"
        "$TST(tCSS=1280)$SET(9=@import url("http://local.ptron/Grypen_HTML/google-1280.css");\r\n)"
        "|"
        "$TST(tCSS=blue)$SET(9=@import url("http://local.ptron/Grypen_HTML/google-blue.css");\r\n)"
        "|"
        "$TST(tCSS=small)$SET(9=@import url("http://local.ptron/Grypen_HTML/google-small.css");\r\n)"
        ")"
        "&"
        "("
        "$TST(thumb=1)$SET(8= dd{margin: 0 0 0 10em;}dl{margin:0 1px 0 0; padding: 1em 0 3.5em .5em;}\r\n)"
        "|"
        "$SET(8= dd{margin: 0;};dl { padding: 0 0 0 .3em; }\r\n)"
        ")"
        "&"
        "($TST(preview=1)|$SET(7= .preview {display:none;}))"
Replace = "<style>"
          "\9"
          "\8"
          "\7"
          "</style>"
          ""
          "<script type=text/javascript>"
          "function GooglePrv(Gid,Gsrc,Glid,Gplid) {"
          ""
          "      PrxToggle(Gplid,'id','a',1);"
          "      PrxToggle(Glid,'id','a',1);"
          "      PrxToggle(Gid,'id','div',1);"
          "      "
          "      var Giframe = document.createElement("iframe");"
          "         Giframe.setAttribute("src", Gsrc );"
          "         Giframe.setAttribute("width", "95%" );"
          "         Giframe.setAttribute("height", "300px" );"
          ""
          "      document.getElementById(Gid).appendChild(Giframe);"
          "}"
          ""
          "function GooglePrvC(Gid,Glid,Gplid) {"
          ""
          "      PrxToggle(Gplid,'id','a',1);"
          "      PrxToggle(Glid,'id','a',1);"
          "      PrxToggle(Gid,'id','div',1);"
          "      "
          "}"
          "</script>"
          ""
          "</head>"


Hi mate,

Unfortunately, the current sidki's config set (2006-09-03) doesn't work with this filter anymore (preview link)...a quick look sidki had changed the functions (toggle) defined in proxjs-full.js. I saw iToggleA..B... Sad .

Any idea, how to modify this filter to work with sidki's latest config ..?

TIA

Back to top
View users profile Send private message Visit posters website
ProxFox

Proxomitron Host
Proxomitron Host


Joined: Nov 11, 2003
Posts: 940
Location: USA

PostPosted: Wed Sep 13, 2006 10:50 am    Post subject: Google...
Reply with quote

ah yes, I see...
I'll look into it and should have something yet this morning...

thanks for the heads-up...


follow-up: I'm stumped thus far...
I'll need a few on-and-off days with this one...

There are now three "types" of toggles and I'll have to experiment a bit...
"Bringing in" the previous toggle function doesn't seem to do the trick either (I figured that would at least serve as a 'temporary fix')...

Back to top
View users profile Send private message
sidki3003

Proxomitron Host
Proxomitron Host


Joined: May 11, 2002
Posts: 1252
Location: Germany

PostPosted: Wed Sep 13, 2006 8:04 pm    Post subject:
Reply with quote

Did you try prxOint.iToggleB(Gplid,'id','a'); ?

Back to top
View users profile Send private message Send email Visit posters website
storm119

Corporal
Corporal


Joined: Apr 19, 2004
Posts: 52


PostPosted: Thu Sep 14, 2006 8:18 am    Post subject:
Reply with quote

Thank you ,sidki Wink. After few trials.....finally it's worked like a charms Smile
Here the update filter .....

Code:

Name = "Google: Insert Style & Functions 20051015 [Grypen] (modified)"
Active = TRUE
URL = "www.google."
Limit = 1024
Match = "</head>$STOP()"
        "&"
        "("
        "$TST(tCSS=google)$SET(9=@import url("http://local.ptron/Grypen_HTML/google.css");\r\n)"
        "|"
        "$TST(tCSS=older)$SET(9=@import url("http://local.ptron/Grypen_HTML/google-older.css");\r\n)"
        "|"
        "$TST(tCSS=1280)$SET(9=@import url("http://local.ptron/Grypen_HTML/google-1280.css");\r\n)"
        "|"
        "$TST(tCSS=blue)$SET(9=@import url("http://local.ptron/Grypen_HTML/google-blue.css");\r\n)"
        "|"
        "$TST(tCSS=small)$SET(9=@import url("http://local.ptron/Grypen_HTML/google-small.css");\r\n)"
        ")"
        "&"
        "("
        "$TST(thumb=1)$SET(8= dd{margin: 0 0 0 10em;}dl{margin:0 1px 0 0; padding: 1em 0 3.5em .5em;}\r\n)"
        "|"
        "$SET(8= dd{margin: 0;};dl { padding: 0 0 0 .3em; }\r\n)"
        ")"
        "&"
        "($TST(preview=1)|$SET(7= .preview {display:none;}))"
Replace = "<style>"
          "\9"
          "\8"
          "\7"
          "</style>"
          ""
          "<script type=text/javascript>"
          "function GooglePrv(Gid,Gsrc,Glid,Gplid) {"
          ""
          "prxOint.iToggleB(Gplid,'id','a',1);"
          "prxOint.iToggleB(Glid,'id','a',1);"
          "prxOint.iToggleB(Gid,'id','div',1);"
          ""
          "var Giframe = document.createElement("iframe");"
          "Giframe.setAttribute("src", Gsrc );"
          "Giframe.setAttribute("width", "95%" );"
          "Giframe.setAttribute("height", "300px" );"
          ""
          "document.getElementById(Gid).appendChild(Giframe);"
          "}"
          ""
          "function GooglePrvC(Gid,Glid,Gplid) {"
          ""
          "prxOint.iToggleB(Gplid,'id','a',1);"
          "prxOint.iToggleB(Glid,'id','a',1);"
          "prxOint.iToggleB(Gid,'id','div',1);"
          ""
          "}"
          "</script>"
          ""
          "</head>"


@ProxFox
Thanks for help ....too Wink

Back to top
View users profile Send private message Visit posters website
ProxFox

Proxomitron Host
Proxomitron Host


Joined: Nov 11, 2003
Posts: 940
Location: USA

PostPosted: Thu Sep 14, 2006 10:29 am    Post subject:
Reply with quote

cool!...

Back to top
View users profile Send private message
sidki3003

Proxomitron Host
Proxomitron Host


Joined: May 11, 2002
Posts: 1252
Location: Germany

PostPosted: Thu Sep 14, 2006 2:18 pm    Post subject:
Reply with quote

I hope >this< helps getting used to the new toggle functions. Smile

Back to top
View users profile Send private message Send email Visit posters website
ProxFox

Proxomitron Host
Proxomitron Host


Joined: Nov 11, 2003
Posts: 940
Location: USA

PostPosted: Thu Sep 14, 2006 2:28 pm    Post subject:
Reply with quote

awesome, thanks...

Back to top
View users profile Send private message
natechavez

Corporal
Corporal
Premium Member

Joined: Mar 25, 2006
Posts: 53
Location: USA
Premium

PostPosted: Wed Jul 30, 2008 9:35 pm    Post subject:
Reply with quote

Any chance the filter above could be updated to working with the latest beta of Sidki's set?

Back to top
View users profile Send private message Send email
Display posts from previous:   
Post new topic   Reply to topic       All -> FavForums -> Sidki - Proxomitron All times are GMT
Page 1 of 1

 
Quick Reply:
Username: 

Quote the last message
Attach signature (signatures can be changed in profile)
 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001 phpBB Group
spacer spacer