Post Reply 
sidki's config set: 2005-06-09
Apr. 12, 2005, 07:22 PM
Post: #136
 
Ha, you got it to work. Cool.
Add Thank You Quote this message in a reply
Apr. 18, 2005, 04:33 PM
Post: #137
 
how do i change the position of the prox menu (prox_cold.gif) ?
i would like to have somewhere top left.

thanks.
Add Thank You Quote this message in a reply
Apr. 18, 2005, 08:05 PM
Post: #138
 
It's in the PrxMShow() function in ProxFunctions.js. Try playing around with these three assignments - probably you don't need prxElement.clientWidth and prxElement.clientHeight:
Code:
var bodyX = (prxIsMoz) ?
(prxElement.clientWidth - document.body.clientWidth) / 2 :
document.body.offsetLeft;
      prxMID.style.left =
((window.pageXOffset) ? window.pageXOffset : prxElement.scrollLeft) +
prxElement.clientWidth - prxMx - bodyX - 50 + "px";
      prxMID.style.top =
((window.pageYOffset) ? window.pageYOffset : prxElement.scrollTop) +
prxElement.clientHeight - prxMID.offsetHeight - 50 + "px";
Add Thank You Quote this message in a reply
Apr. 18, 2005, 10:02 PM
Post: #139
 
i am sorry, i can't get it to work.
how should it look like for left/top 50px ?
Add Thank You Quote this message in a reply
Apr. 19, 2005, 12:07 AM
Post: #140
 
what about a toolbar on top ?
it would be cool to have related content for different pages.

is it possible to add a toolbar to a defined textfield (form element) ?
i need such for my cms (mambo and tiki),
toolbar layout could come from a css file and data from xml.
Add Thank You Quote this message in a reply
Apr. 19, 2005, 11:11 AM
Post: #141
 
shell shaolin Wrote:i am sorry, i can't get it to work.
Replace PrxMShow() and PrxIShow() with these versions:
Code:
function PrxMShow() {
      clearTimeout(prxTidM);
      if (prxMID.style.visibility == "visible") {
return;
      }
      prxMID.style.left =
((window.pageXOffset) ? window.pageXOffset : prxElement.scrollLeft) +
40 + "px";
      prxMID.style.top =
((window.pageYOffset) ? window.pageYOffset : prxElement.scrollTop) +
40 + "px";

      function ShowMNow() {
prxMID.style.visibility = "visible";
      }

      prxTidM = PrxOldSetTimeout(ShowMNow, 150);
    }
Code:
function PrxIShow() {
if (naomi.style.visibility == "visible") {
return;
}
naomi.style.left =
((window.pageXOffset) ? window.pageXOffset : prxElement.scrollLeft) +
20 + "px";
naomi.style.top =
((window.pageYOffset) ? window.pageYOffset : prxElement.scrollTop) +
20 + "px";
naomi.style.visibility = "visible";
      }

No guaranties that this shows up correctly on all pages. Wink

sidki
Add Thank You Quote this message in a reply
Apr. 19, 2005, 11:23 AM
Post: #142
 
shell shaolin Wrote:what about a toolbar on top ?
If you mean that in regard to the Prox menu of my config set, it will stay in the format and position as it is now, because i like it that way. It already reacts to page content btw. Smile!

If you mean a site-specific toolbar, i would think it's possible. Basically you can do everything that doesn't require server-side scripting.
There is a marker in the config that is intended as target for this type of injections, so you can start like:
Code:
[Patterns]
Name = "Inject Site-Spec Code below <body>"
Active = FALSE
URL = "mysite.com"
Limit = 32
Match = "(<!-- PROX: Body Begins -->)\1$STOP()"
Replace = "\1"
"YOUR_CODE_HERE"

Use the $FILE() command, if the replacement code is larger than 4096 bytes.

HTH
sidki
Add Thank You Quote this message in a reply
Apr. 21, 2005, 12:59 PM
Post: #143
 
sidki3003 Wrote:No guaranties that this shows up correctly on all pages. Wink

sidki
thanks Hail
Add Thank You Quote this message in a reply
Apr. 25, 2005, 04:33 PM
Post: #144
 
washingtonpost.com changed layout, the "Washington Post: Alternate Display" filter is broken and renders the site unreadable. It was an intense filter, too much work to fix and maintain it. So - if you read that newspage - remove the filter and add...
Code:
# HTML: washingtonpost.com
wrapperClassified
...to AdStrings.ptxt instead.

sidki
Add Thank You Quote this message in a reply
Apr. 27, 2005, 10:44 PM
Post: #145
 
i think the ComputerCops: Clean up Posts and Prox Forums 5.03.26 [sd] (d.s) filter needs modifying.
i changed it as follows and it seems to be working again.
Code:
[Patterns]
Name = "CastleCops: Clean up Posts and Prox Forums     5.04.28 [sd] (d.s)"
Active = TRUE
URL = "$TYPE(htm)castlecops.com/(forum-cat14|post|modules.php\?(name=(Your_Account|Private_Messages)|*file=(posting|search))|$LST(Mem-CCProx))"
Limit = 32767
Match = "<((!-- PROX: Body Begins -->)\2 \ $SET(4=<)|br (/|)> <center> <img[^>]++alt=$AV(Castle Cops))*"
"<td width="100%">\s(^(^<!--[^>]++-- > <style|<link rel=$AV(stylesheet)|<style|<table))"
"$SET(comment=)$SET(1=\4\2\3)"
"|"
"(modules.php\?name=Your_Account(\&op=logout|)\&redirect=)\2(index|forums)"
"$SET(1=\2prx-sitespec-hey_this_is_just_a_friendly_proxo_filter_no_worries-\h\p\q)"
"|"
"<br (/|)> <center> <table[^>]++width=[0-9]+% class="forumline">*</center > <br (/|)>$SET(1=\3)"
"|"
"<tr> <td class="catLeft""
"(*</tr >(^(^([^>]+>)+{4}Proxomitron))|(^([^>]+>)+{3}Proxomitron)*</tr >(^(^ </table)))$SET(1=\3)"
"|"
"<(div align="center"> <span class="copyright">|center> <table width="950")"
"*</table > </center >$SET(1=\3)"
"|"
"<(a[^>]++class=$AV((nav*)\7)[^>]+>&&(*href=)\2$AV((*.html)\4*)\5)([^>]++Proxo)\6"
"$SET(1=<a class="\7" href="forum-cat14.html">Proxomitron</a> -> <\2"\4"\5\6)"
"|"
"<(a[^>]++href=)\2$AV((forum(x|)[0-9\-]+.html)\4*)"
"($TST(\4=$LST(Mem-CCProx))|$ADDLST(Mem-CCProx,$WESC(\4)))$SET(1=<\2"\4")"
"|"
"<(img[^>]++src=)\2$AV(images/(atom$SET(4=blue)|xml$SET(4=red)).gif)"
"$SET(1=<\2"http://local.ptron/sidki_h_2005-04-02/\4.gif" width="5" height="5")"
Replace = "$SET(3=\r\n<!-- PROX-S: Removed by CastleCops Filter -->\r\n)"
"$TST(($GET(sSpec)+1)=$LST(Count))$SET(sSpec=$GET(i))"
"\1"

in view of the recent changes at Yahoo i think that the Yahoo Groups: MyGroups - Alternate Display 5.03.31 [sd] (d.s) filter is no longer working or indeed needed.
Add Thank You Quote this message in a reply
Apr. 27, 2005, 11:53 PM
Post: #146
 
traviscn Wrote:i think the ComputerCops: Clean up Posts and Prox Forums 5.03.26 [sd] (d.s) filter needs modifying.
i changed it as follows and it seems to be working again.
Good thinking, traviscn! I changed the ALT text exactly like that 10 minutes ago while posting there. [lol]

Quote:in view of the recent changes at Yahoo i think that the Yahoo Groups: MyGroups - Alternate Display 5.03.31 [sd] (d.s) filter is no longer working or indeed needed.
Right, okay, here are my working Yahoo WIP filters. I don't like to add them to the update MergeMe on my site, because my config is completely out of sync with the released one, and i can't be sure that everything is compatible (i did a quick test tho just now).
Code:
[Patterns]
Name = "Yahoo: Clean up Site     5.04.25 [sd] (d.s) WIP1"
Active = TRUE
URL = "$TYPE(htm)([^.]+.)++yahoo.com/(^$TST(keyword=*.a_code.*))"
Limit = 16384
Match = "<("
"table[^>]+>("
"([^>]+>)+{3} (sponsored [a-z]+)\3(*</table >&&(^*<t(r|able))*)"
"( <table[^<]+<tr(*</table >&&(^*<t(r|able))*))+ $NEST(<table,</table >)$SET(1=table-1-\3)"
"|([^>]+>)++{1,5} (advertisem|sponsor(ed|))\3 ([a-z&;]+)\4 <"
"$INEST(<table,</table)</table >$SET(1=table-2-\3\4)"
")"
"|table[^>]++("
"cellspacing=[#0] height=([#100])\1"
"|id=$AV(yfncbrobtn)$SET(1=Finance Top Ads)"
")$INEST(<table,</table)</table >"
"|td width=[#5:22][^>]+>(\ |) </td > <td width=([#160]$TST(uHost=*news.yahoo.com))\1"
"[^>]+>$INEST(<td,</td)</td >"
"|td[^>]++class=$AV((regsblk|ymapttd)\1|ygma*)$INEST(<td,</td)</td >"
"|td[^>]++id=$AV(ygma(^greet)*)$SET(1=Search Bar)$INEST(<td,</td)</td >"
"|div[^>]++class="
"("
"$AV((ydirspns)\1)(*</div >&&(^*<div)*)"
"|$AV((ovt*|tgl|ymapovt|ydirspns|ydireast)\1)$INEST(<div,</div)</div >"
")"
"|div[^>]++id=$AV(((west|east|ovt|swads|ymap(clad|ead|nad|west|footer))[0-9]+)\1)"
"$INEST(<div,</div)</div >"
"|h2[^>]++class=$AV((ovthd)\1)*</h2 >"
"|!-- ("
"begin copyright -*- end (copyright)\1"
"|start north banner -*- end (north banner)\1"
"|b:overture -*- e:(overture)\1"
") -- >"
"|(br[^>]+> <table width=)\3([#420])\1$SET(2=<\3100%)"
"|center> <hr size=[#1] width=[#750] noshade >$INEST(<center,</center)</center >$SET(1=Footer)"
")"
"$SET(0=\r\n<!-- PROX-S: Removed by Yahoo Cleaner (\1) -->\r\n\2)"
Replace = "\0$SET(sSpec=$GET(sSpec)\1.)"

Name = "Yahoo et al.: Multi URL Untangler     5.04.25 (multi) [sd] (d.s) WIP4"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)(([^/]++.|)yahoo.com/|[^.]+.altavista.com/|(www.|)alltheweb.com/)"
Bounds = "<a\s*>"
Limit = 1024
Match = "<a(*href=(\\"|"|))\1"
"("
"*/(click(%3f|\?)u=http(s|)\2(%3a|:)(\3)(%26|\&)*("*)\4|\?http(s|)\2(%3a|:)(\3))"
"|(*\*-+http(s|)\2(%3a|:))+{1,*}(\3(done\=*|search\?*)\4|\3)"
")"
"&(^$TST(tNoscript=1))"
Replace = "<a id=proxPref\1http\2:$UESC(\3)\4"

Name = "Yahoo Groups: Clean up Site     5.04.02 [sd] (d.s) WIP1"
Active = TRUE
URL = "$TYPE(htm)([^.]+.|)groups.yahoo.com/(^$TST(keyword=*.a_code.*))"
Limit = 4096
Match = "<("
"table[^>]+> <tr[^>]+> <td height=[#85] align=$AV(center) >$INEST(<table,</table)</table >"
"$SET(1=\0\5)$SET(2=Top Ad)"
"|td[^>]++class=$AV((ygrp-ad*)\2)$INEST(<td,</td)</td >$SET(1=\0\5)"
"|table[^>]++class=$AV((footview*|ygrp-titlebar)\2)$INEST(<table,</table)</table >$SET(1=\0\5)"
"|div[^>]++id=$AV((doc-foot|ygrp-(ad*|sponsor*|gtips))\2)$INEST(<div,</div)</div >$SET(1=\0\5)"
"|(td class=$AV(ygrp-gnav) )\3width=$AV(1%)\4>$SET(1=<\3style="width:1%"\4>)"
")"
"|<$TST(uFile=post)("
"(input\s[^>]++name=$AV(wordWrap)[^>]++)\3checked$SET(1=<\3\5)$SET(2=Wrap Unchecked)"
"|(textarea[^>]++name=$AV(message))\3*>$SET(1=<\3 rows=25 cols=90 wrap="soft">\5)$SET(2=Soft Wrap)"
")"
"|<$TST(uPath=*/message/)("
"table align=$AV(right) cellpadding=[#10] >$INEST(<table,</table)</table >"
"$SET(1=\0\5)$SET(2=Right Side Ad)"
"|a([^>]++href=[^>]++/message/[0-9]+)\3(^\?)([^>]+>(Wrap)\2)\4"
"$SET(1=<a\3?unwrap=0\4\5)"
"$SET(9=Above part is necessary if you use unwrapped view by default)"
"|tt>$SET(1=\r\n<!-- PROX-S: Teletype Font changed by YG Cleaner -->\r\n<font size="-1">)"
"|/tt >$SET(1=</font>\5)$SET(2=teletype)"
")"
"|<a($TST(uPath=*/messages/)|$TST(uFile=messages))("
"([^>]++/message/[0-9]+)\3\?[^ "'>]+$SET(1=<a\3)"
")"
""
"&$SET(0=\r\n<!-- PROX-S: Removed by YG Cleaner (\2) -->\r\n)$SET(5=$SET(sSpec=$GET(sSpec)\2.))"
Replace = "\1"

Name = "Yahoo Groups: Fast Forward Search     5.04.22 [sd] (d.s) WIP4"
Active = TRUE
URL = "(^$KEYCHK(R))$TYPE(htm)([^.]+.|)groups.yahoo.com/group/[^/]+/messagesearch"
Limit = 20000
Match = "*href=$AV(\1) >Next (\ )+ (\>)+ <$STOP()*<blockquote> No matches found"
Replace = "<html><head>"
"<title>Yahoo! Groups : Searching...</title>\r\n"
"<script type="text/javascript">\r\n"
"if (window.navigate) {"
"  window.navigate('\1');"
"} else {"
"  document.location.replace('\1');"
"}\r\n"
"</script>\r\n"
"</head></html>\k"

Name = "Yahoo Groups: MyGroups - Alternate Display     5.04.22 [sd] (d.s) WIP1"
Active = TRUE
URL = "$TYPE(htm)groups.yahoo.com/mygroups"
Limit = 2048
Match = "<("
"(a[^>]++href=)\2"
"$AV((/group/[^/]++)\3\?yguid\=$SET(1=<\2"\3/messages/")*|(/group/*/*)\3\?yguid\=$SET(1=<\2"\3/")*)"
"|div[^>]++\s(class=$AV(ygrp-thumbnail)|id=$AV(doc-foot))$INEST(<div,</div)</div >"
")"
Replace = "\1"

sidki
Add Thank You Quote this message in a reply
May. 01, 2005, 03:01 PM
Post: #147
 
ComputerCops renamed a lot of their local links, here is the updated filter.
It may go a bit far, but that way it's less work to adjust it for future changes.

The forum portal page and all forum categories (*not* the single forums) except "Proxomitron" are still excluded.

Code:
[Patterns]
Name = "ComputerCops Forums: Alternate Display     5.05.26 [sd] (d.s)"
Active = TRUE
URL = "(^$KEYCHK(^A))$TYPE(htm)castlecops.com/(forum-cat14|c14-|(check|f(orumx+|)|p(o+st(lite|p|s|x|)|)|t)[0-9]|modules.php\?name\=)"
Limit = 32767
Match = "<("
"((!-- PROX: Body Begins -->)\2 \ $SET(4=<)|br (/|)> <center> <img[^>]++alt=$AV(Castle Cops))*"
"<td width="100%">\s(^(^<!--[^>]++-- > <style|<link rel=$AV(stylesheet)|<style|<table))"
"$SET(comment=)$SET(1=\4\2\3)$SET(5=top)"
"|"
"br (/|)> <center> <table[^>]++width=[0-9]+% class="(forumline)\5">*</center > <br (/|)>$SET(1=\3)"
"|"
"tr> <td class=$AV(catLeft) colspan=$AV(2)"
"(*</tr >(^(^([^>]+>)+{4}Proxomitron))|(^([^>]+>)+{3}Proxomitron)*</tr >(^(^ </table)))$SET(1=\3)"
"$SET(5=collapsed)"
"|"
"(div align="center"> <span class="copyright">|center> <table width="950")"
"*</table > </center >$SET(1=\3)$SET(5=bottom)"
"|"
"(a[^>]++class=$AV((nav*)\7)[^>]+>&&(*href=)\2$AV((*.html)\4*)\5)([^>]++Proxo)\6"
"$SET(1=<a class="\7" href="forum-cat14.html">Proxomitron</a> -> <\2"\4"\5\6)"
"|"
"a[^>]++href=$AV(*/backendforum*)*</a > (<a[^>]++href=$AV(*(backend|atom)\5forum*)*</a > )+<br /+>"
"$SET(1=\3)"
"|"
"a[^>]+> <img[^>]++alt=$AV(Subscribe to this Feed)[^<]+</a > (^(^<br /+>))"
")"
"$SET(3=\r\n<!-- PROX-S: Removed by ComputerCops Filter (\5) -->\r\n$SET(sSpec=$GET(sSpec)\5.))"
"|"
"(modules.php\?name=Your_Account(\&op=logout|)\&redirect=)\2(index|forums)"
"$SET(1=\2prx-sitespec-hey_this_is_just_a_friendly_proxo_filter_no_worries-\h\p\q)"
Replace = "\1"

edit: forgot to change the local.ptron path to that one of the 4/2 config -> done
edit2: added missing "next" and "previous" topic page URLs
edit3: URL match changed again (probably more to come, as site changes still seem to be under way)
edit4: URL match changed again (s.a.)
edit5: New collection of "add feed to..." buttons gets removed. Bypass filter with ALT key.

sidki
Add Thank You Quote this message in a reply
May. 01, 2005, 06:22 PM
Post: #148
 
Hi all,

sidki's config tweaks

Count.ptxt (list)

This list tends to be rather chatty with respect to the log window and not very useful, since the list always matches.

So to prevent the log window from filling up with these "matches" I made the following changes:

Code:
([0-9]++)\0
(
  0(\+1$SET(i=\01)|-1$SET(i=\0-1)(^$TST(i=$LST(Count)))$SET(i=$GET(i)9)(^$TST(i=0\0)$SET(i=\0)|))
|1(\+1$SET(i=\02)|-1$SET(i=\00))
|2(\+1$SET(i=\03)|-1$SET(i=\01))
|3(\+1$SET(i=\04)|-1$SET(i=\02))
|4(\+1$SET(i=\05)|-1$SET(i=\03))
|5(\+1$SET(i=\06)|-1$SET(i=\04))
|6(\+1$SET(i=\07)|-1$SET(i=\05))
|7(\+1$SET(i=\08)|-1$SET(i=\06))
|8(\+1$SET(i=\09)|-1$SET(i=\07))
|9(\+1$SET(i=\0+1)(^$TST(i=$LST(Count)))$SET(i=$GET(i)0)|-1$SET(i=\08))
)

# original code
#   0(\+1$SET(i=\01)|-1$SET(i=\0-1)$TST(i=$LST(Count))$SET(i=$GET(i)9)($TST(i=0\0)$SET(i=\0)|))
#  |9(\+1$SET(i=\0+1)$TST(i=$LST(Count))$SET(i=$GET(i)0)|-1$SET(i=\08))


# make the list return false so the log window doesn't fill up
~[0-9]+

The main drawback is that several filters have to be edited to negate the $TST like so:

Code:
# change the way this is called like so:

# count up
# (^$TST(($GET(n)+1)=$LST(Count)))$SET(n=$GET(i))

# count down
# (^$TST(($GET(n)-1)=$LST(Count)))$SET(n=$GET(i))

but once that's done, the log window is a better place.

FYI: I used NoteTab Light's RegEx Search & replace which made if fairly painless

Mike
Add Thank You Quote this message in a reply
May. 01, 2005, 09:20 PM
Post: #149
 
Hi Mike, cool idea! And yeah, the chattiness of this list sucks. I usually turn of "HTML filters" while using the log window (using log files and dbug view to look at web filter hits).

Anyway, did you test it? Especially the negation of the recursive list calls.
Here is a little test filter:
Code:
[Patterns]
Name = "<div>: Check Tag Nesting - Mike's List"
Active = FALSE
Multi = TRUE
Limit = 8
Match = "<("
"div"
"(^$TST(($GET(n)+1)=$LST(Count)))$SET(n=$GET(i))"
"|"
"/div"
"(^$TST(($GET(n)-1)=$LST(Count)))$SET(n=$GET(i))"
"|eof$SET(2=-$GET(n))"
")\1>"
Replace = "<\1\2>"

And here is some rather inventive test code:
Code:
<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo
<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo
<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo
<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo
<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo
<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo
<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo
<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo
<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo<div>foo
</div>foo</div>foo</div></div>foo</div>foo</div></div>foo</div>foo</div>foo</div>foofoo</div>foo
</div>foo</div>foo</div></div>foo</div>foo</div></div>foo</div>foo</div>foo</div>foofoo</div>foo
</div>foo</div>foo</div></div>foo</div>foo</div></div>foo</div>foo</div>foo</div>foofoo</div>foo
</div>foo</div>foo</div></div>foo</div>foo</div></div>foo</div>foo</div>foo</div>foofoo</div>foo
</div>foo</div>foo</div></div>foo</div>foo</div></div>foo</div>foo</div>foo</div>foofoo</div>foo
</div>foo</div>foo</div></div>foo</div>foo</div></div>foo</div>foo</div>foo</div>foofoo</div>foo
</div>foo</div>foo</div></div>foo</div>foo</div></div>foo</div>foo</div>foo</div>foofoo</div><eof>

sidki
Add Thank You Quote this message in a reply
May. 01, 2005, 10:51 PM
Post: #150
 
Hi sidki

I tested it manually, very simple checks, it seemed to work.

When I run the test filter and data you posted, it returns <eof-22>

I'm not sure if this is a good thing or not. Smile!

Mike
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: