Author Topic: the definitive "banner blaster/replacer"  (Read 4788 times)

altosax

  • Moderator
  • Sr. Member
  • *****
  • Posts: 328
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://
    • Email
the definitive "banner blaster/replacer"
« on: May 04, 2002, 09:43:35 PM »
i've modified these 3 filter set removing "Multi = TRUE" because of the recent scott's explanation on yahoo group.

-------cut here----------

Name = "Banner Blaster (limit text)"
Active = TRUE
URL = "$TYPE(htm)"
Bounds = "<(as[^>]++href=*</a>|input*>|layer*>)"
Limit = 900
Match = "(<layer*|1<i(mg|mage|nput)*src=$AV(*)*>3)"
        "&(*(href|src)=$AV($LST(AdKeys)*)|"
        "*http://*<i(mg|mage|nput)s(*>&&"
        "(*width=[#460-480]&*height=[#55-60]*)|"
        "(*width=[#88]&*height=[#31]*)))"
        "&((*alt="")$SET(2=Ad)|*alt=$AV((?+{18})2*|2)|$SET(2=Ad))"
Replace = "<center>1<font size=1 color=red>[2]</font>3</center>"


Name = "Banner Blaster (full text)"
Active = FALSE
URL = "$TYPE(htm)"
Bounds = "<(as[^>]++href=*</a>|input*>|layer*>)"
Limit = 900
Match = "(<layer*|1<i(mg|mage|nput)*src=$AV(*)*>3)"
        "&(*(href|src)=$AV($LST(AdKeys)*)|"
        "*http://*<i(mg|mage|nput)s(*>&&"
        "(*width=[#460-480]&*height=[#55-60]*)|"
        "(*width=[#88]&*height=[#31]*)))"
        "&((*alt="")$SET(2=Ad)|*alt=$AV(2)|$SET(2=Ad))"
Replace = "<center>1<font size=1 color=red>[2]</font>3</center>"


Name = "Banner Replacer"
Active = TRUE
URL = "$TYPE(htm)"
Bounds = "<as[^>]++href=*</a>"
Limit = 800
Match = "<img (1border=w|) 2 src=$AV(*) (3border=w|) 4"
        "&(*(src|href)=$AV($LST(AdKeys)*)|"
        "(*width=[#460-480] & *height=[#55-60])|"
        "(*width=[#88] & *height=[#31]))*"
Replace = "<img 1 border=1 2 src=http://Local.ptron/killed.gif 3 4"


----------cut here-----------

i've found that without multiple matches allowed the filtering is speeded up, expecially if you use super opener.
just my opinion, but i think that these filters have reached the definitive version and can not be further improved.

note: you need to use only one of the two banner blaster.

regards,
altosax.



Edited by - altosax on 04 May 2002  22:46:06
 

sidki3003

  • Sr. Member
  • ****
  • Posts: 476
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://
    • Email
the definitive "banner blaster/replacer"
« Reply #1 on: May 05, 2002, 09:54:32 AM »
Hi altosax,

I am still switching between this filter and ScoJo's ACR. I cannot make up my mind. Did you compare both?

Concerning Super Opener, i like it and use it, but it distorts a number of pages like
http://www.janaserver.de/en/
Do you use the unmodified beta 37 or did you work on it. I think it takes a big cup of coffee to understand this filter

regards sidki


 
 

altosax

  • Moderator
  • Sr. Member
  • *****
  • Posts: 328
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://
    • Email
the definitive "banner blaster/replacer"
« Reply #2 on: May 05, 2002, 12:03:10 PM »
hi sidki,

i know scojo's acr and intend to use it in future, but now i'm focused on other filters so i haven't the time to test its speed and its advantages compared with my actual filter set.

i've visited the site of janaserver, both with super opener enabled and disabled: the result is the same, nothing to view at all. with proxomitron disabled, i was able to view the site. the problem, there, is not super opener (note that this conclusion is based on my filter set, i can't say anything regarding different filter set).

i've also viewed the site in dbug mode both with super opener enabled and disabled: there is no problem in both cases.

the only strange thing is that the code of that site not use the <body> tags. its code is <html><head>head_code</head><script external_js></script></html>

the source of the script is http://www.janaserver.de/js/index_en.js
i've downloaded it and read the code, then i've tried to view directly the page:
http://www.janaserver.de/en/start.htm
but every attempt (both proxo enabled and disabled) failed because of a redirection.

then i tried to view it in dbug mode and it appears. there is an ETag header and various calls to external .js files. i think they are the problem, not super opener.

this is what happens to me. do you see something different?

btw, regarding super opener, it's true that when images links are composed by assembling various parts with a table the layout is bad because of the addition of the lozenge to each part of the image. this is a known problem that happens on a large number of sites, so i've thinked to realize a text only version when the work on the remaining filters of my filter set will be ended.

regards,
altosax.



Edited by - altosax on 05 May 2002  13:12:21
 

sidki3003

  • Sr. Member
  • ****
  • Posts: 476
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://
    • Email
the definitive "banner blaster/replacer"
« Reply #3 on: May 05, 2002, 04:04:31 PM »
Thanks for inspecting that page, altosax. Maybe it depends on the browser.
With IE6 and all filters off i get a blue text and a JavaScript Menu on the left.
Now switching only Super Opener on, the menu is gone,
and there is a distorted picture at the bottom.
However, in the worst case i'd just have to make an exception list for SU.

I like your idea of a text only version of SU.
It would be much easier to overview and improve.
I think in one of his last Yahoo posts before he disappeared,
BigPurpleMoon spoke about doing that as well.

regards sidki


 
 

JD5000

  • Full Member
  • ***
  • Posts: 241
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://home.satx.rr.com/jd5000/
    • Email
the definitive "banner blaster/replacer"
« Reply #4 on: May 05, 2002, 08:21:16 PM »
Hello Altosax & Sidki3003,

That page looked normal to me in both Opera & IE6 using a SLIGHTLY modified version of Super-Opener. (Just deleted some stuff) LoL

Name = "SO-links"
Active = TRUE
URL = "$TYPE(htm)(^$LST(NO-SO))"
Bounds = "<a&$NEST(<as,<(\|)/a>)|<as(?)++(<(\|)/a>)"
Limit = 350
Match = "<a"
        "("
        "([^>]++(shref=$AV(*))1[^>]+>)"
        "&&"
        "((shref=$AV(*)|starget=$AV(_blank|_new)"
        "|(sclass=$AV(*))2|(sstyle=$AV(*))3|((s[^ ]+)|>)#))+"
        ")"
        ""
        "( $NEST(<,(^(\|)/a(^?))*,> )+)4"
        ""
        "("
        "<(/a>|as)"
        "|"
        "(&[^; ]++; |[^<] )5"
        "($NEST(<,(^(\|)/a(^?))*,> )+ )8"
        "<((\|)/a>|as)$SET(7=<font size=-2>↑</font>)"
        "|"
        "(( (&[^; ]++;|[^<])"
        "$NEST( <,(^(\|)/a(^?))*,>)+)++{1,2})5"
        "( (&[^; ]++;|[^<])"
        " $NEST(<,(^(\|)/a(^?))*,> )+ )8"
        "<((\|)/a>|as)"
        "|"
        "( (&[^; ]++;|[^<])"
        " $NEST(<,(^(\|)/a(^?))*,> )+"
        "(&[^; ]++;|[^<])"
        " (&[^; ]++;|[^<]|$NEST(<,(^(\|)/a(^?))*,> )+)++ )5"
        "( (&[^; ]++;|[^<])"
        " $NEST(<,(^(\|)/a(^?))*,> )+"
        "(&[^; ]++;|[^<])"
        " $NEST(<,(^(\|)/a(^?))*,> )+ )8"
        "<((\|)/a>|as)"
        ")"
Replace = "<a123@45</a>"
          "<a id=BPM-supero"
          " target=_blank123>"
          "78</a>"

Note: You can disable the comment remover filter.

As for ScoJo's ACR, It's work's great, but I find it to be more CPU intensive than my normal Ad filters.

Also, I've been thinking of posting my config, but I would like it if y'all could test it out before I do.

--------

"Imagination is more important than knowledge" - Einstein

JD5000

  • Full Member
  • ***
  • Posts: 241
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://home.satx.rr.com/jd5000/
    • Email
the definitive "banner blaster/replacer"
« Reply #5 on: May 05, 2002, 08:27:54 PM »
I guess, I should mention that it will not add "diamonds" to image links.

--------

"Imagination is more important than knowledge" - Einstein

sidki3003

  • Sr. Member
  • ****
  • Posts: 476
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://
    • Email
the definitive "banner blaster/replacer"
« Reply #6 on: May 05, 2002, 09:20:19 PM »
Hi JD5000,

I know we are a bit off topic talking about SO in this thread
However, nice idea getting rid of the multi match in this filter. I won't miss the diamonds beneath images. It will take me some time to implement this filter, since i also changed SO. I moved the whole styling stuff to my css file and replaced the target=_blank with a random name (through $CON) to keep the Tame JS's working. But it seems to be what i was looking for. Thanks for that one

I'd like to look at your config, not for using the whole thing forever, but for seeing your sort order and your mods of the filters i have problems with.

regards sidki


 
 

JD5000

  • Full Member
  • ***
  • Posts: 241
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://home.satx.rr.com/jd5000/
    • Email
the definitive "banner blaster/replacer"
« Reply #7 on: May 05, 2002, 10:02:16 PM »
I thought of that too (off topic), sorry Altosax.

Sidki3003, I'll pm you with the config addy,

--------

"Imagination is more important than knowledge" - Einstein

altosax

  • Moderator
  • Sr. Member
  • *****
  • Posts: 328
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://
    • Email
the definitive "banner blaster/replacer"
« Reply #8 on: June 30, 2002, 10:38:27 PM »
i've update my slightly modified version of these 3 filter set to reflect the recent modifies introduced by scott into these 3 filter from naoko 4.2 to naoko 4.3

if you are using my modified version, replace your old filter with these.


Name = "Banner Blaster (limit text)"
Active = TRUE
URL = "$TYPE(htm)"
Bounds = "<(as[^>]++href=*</a>|iframe*</iframe>|input*>|ilayer*</ilayer>)"
Limit = 900
Match = "(<i(frame|layer)*|1<i(mg|mage|nput)*>3)"
        "&(*(href|src)=$AV($LST(AdKeys)*)|"
        "*http://*<i(mg|mage|nput)s(*>&&"
        "(*width=[#460-480]&*height=[#55-60]*)|"
        "(*width=[#88]&*height=[#31]*)))"
        "&((*alt="")$SET(2=Ad)|*alt=$AV((?+{18})2*|2)|$SET(2=Ad))"
Replace = "<!-- <center>1<font size=1 color=red>[2]</font>3</center> -->"



Name = "Banner Blaster (full text)"
Active = FALSE
URL = "$TYPE(htm)"
Bounds = "<(as[^>]++href=*</a>|iframe*</iframe>|input*>|ilayer*</ilayer>)"
Limit = 900
Match = "(<i(frame|layer)*|1<i(mg|mage|nput)*>3)"
        "&(*(href|src)=$AV($LST(AdKeys)*)|"
        "*http://*<i(mg|mage|nput)s(*>&&"
        "(*width=[#460-480]&*height=[#55-60]*)|"
        "(*width=[#88]&*height=[#31]*)))"
        "&((*alt="")$SET(2=Ad)|*alt=$AV(2)|$SET(2=Ad))"
Replace = "<center>1<font size=1 color=red>[2]</font>3</center>"



Name = "Banner Replacer"
Active = FALSE
URL = "$TYPE(htm)"
Bounds = "<as[^>]++href=*</a>"
Limit = 800
Match = "<img (1border=w|) 2 src=$AV(*) (3border=w|) 4"
        "&(*(src|href)=$AV($LST(AdKeys)*)|"
        "(*width=[#460-480] & *height=[#55-60])|"
        "(*width=[#88] & *height=[#31]))*"
Replace = "<img 1 border=1 2 src=http://Local.ptron/killed.gif 3 4"


note: i've also commented the replace expression in the active banner blaster. remove <!-- and --> to show the replacement.

regards,
altosax.