Proxomitron Filters - Discussions welcome > Feature-Block

Remove specified OnMouseOver events

(1/1)

sidki3003:
I like to see certain OnMouseOver events. Examples are some menus and the display of the message body on some forums.
That's why i block just the annoying ones.

[Patterns]
Name = "Remove specified OnMouseOver events"
Active = TRUE
Multi = TRUE
URL = "($TYPE(htm)|$TYPE(js)|$TYPE(oth))(^$LST(Bypass_Ads))"
Bounds = "<(a|img|image|input|body)s*>"
Limit = 768
Match = "(*onmouseover=)1(*;|)2("
        "$AV(((|{|) ((w.|)status)5=*)"
        "|("|)3 (w.open|MM_displayStatusMsg)5(*)"
        ")(;|)4"
Replace = "1234"

is just there to consume what's within the preceding parens.
5 is for debugging.

edit: If you don't have/want a Bypass Ads list, remove the blue code.

/sidki


Edited by - sidki3003 on 15 Aug 2002  01:56:56

sidki3003:
Update: catch another "status" variation.
Thanks lnminente!

 

lnminente:
Hi, thanks to you Sidki3003.

The other variation of "status" was in http://www.softonic.com/

<a href="/hit.php?id=191" onMouseOver="status='WinOmega'; return true;" onMouseOut="status=''">
<font face="Verdana, Arial, Helvetica" size=2><b>WinOmega</b></font></a>



 

altosax:
hi sidki,
if i have understood, this matches and replaces the allowed functions:

"(*onmouseover=)1(*;|)2("

while these match and remove the nosey code:

"$AV(((|{|) ((w.|)status)5=*)"
"|("|)3 (w.open|MM_displayStatusMsg)5(*)"

now the question: why match and replace what allowed and not simply remove the not needed code?
since this not speed up filtering because the multi option is active, i suggest:

Match = "1 onmouseover=$AV((MM_displayStatusMsg|*.(status=|open))*)2"
Replace = "12"

also, for a more aggressive filtering, you could use:

Match = "1 onmouseover=$AV((MM_displayStatusMsg|*.(status|open))*) (onmouseout=$AV(*)|)2"

in my config i have modified "Link De-Obfuscator" this way:

Match = "1 onmouseover=$AV(*.status=*) (onmouseout=$AV(*)|)2"

and never had problems.

regards,
altosax.

 

sidki3003:
Hi altosax,
quote:
why match and replace what allowed and not simply remove the not needed code?

I can't quite follow. That's what it does: simply remove the not needed code.
quote:
since this not speed up filtering because the multi option is active, i suggest:

Match = "1 onmouseover=$AV((MM_displayStatusMsg|*.(status=|open))*)2"
Replace = "12"


An OnMouseOver event can contain several commands, i just want to remove the annoying ones and keep the others.

Example: kill status obfuscation, but keep image swapping:
http://accesscodes.hypermart.net/download.html

regards and thanks for discussing,
sidki


 

Navigation

[0] Message Index

Go to full version