Old Proxomitron Forums
September 01, 2014, 07:38:14 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: No activity here! This forum is read-only. Go to http://prxbx.com/forums/index.php.
 
   Home   Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: Allow right mouse click II  (Read 2665 times)
altosax

Sr. Member
****
Posts: 328


View Profile WWW Email
« Reply #15 on: August 14, 2002, 12:27:56 AM »

inminente wrote:

quote:

Other thing: I don't like the version 3,(without bounds) Why?

Because will change this
<a href=http:\www.web.captureEvents.cometc.gif>[link]</a>
to that
<a href=http:\www.web.captureEventsProx.cometc.gif>[link]</a>



to make it safer modify it this way:

Name = "Allow Right Click 3"
Active = FALSE
URL = "$TYPE(htm)"
Limit = 256
Match = "document.(on(contextmenu|mousedown|mouseup)|captureEvents)1"
Replace = "document.1Prox"

otherwise you need to write a filter using the # stack.

regards,
altosax.

 
Logged

 
lnminente
Jr. Member
**
Posts: 73


View Profile WWW Email
« Reply #16 on: August 14, 2002, 12:36:57 AM »

And If the name of the web is document.captureevents.com ??

Many thanks Altosax and Sidki3003, i think that # is what i was searching.

I have too much to learn of Proxomitron.

Also, JD5000 has in his latest config set one js filter called "Allow Right Mouse Clicks" that works perfectly.

Regards.



Edited by - lnminente on 14 Aug 2002  18:01:02
Logged

 
altosax

Sr. Member
****
Posts: 328


View Profile WWW Email
« Reply #17 on: August 14, 2002, 07:14:52 PM »

the best filter i know to allow right click is this one by homeric:

Name = "Allow right mouse click [EAH]"
Active = TRUE
Limit = 16
Match = "<end>"
Replace = "
<!--//--><script language="JavaScript">
"
          "if (document.layers)
"
          "{
"
          "document.releaseEvents(Event.MOUSEDOWN);
"
          "document.onmousedown=null;
"
          "window.releaseEvents(Event.MOUSEDOWN);
"
          "window.onmousedown=null;
"
          "}
"
          "if (document.all)
"
          "{
"
          "document.oncontextmenu=null;
"
          "document.onmousedown=null;
"
          "document.body.oncontextmenu=null;
"
          "document.body.onmousedown=null;
"
          "}
"
          "<!--//--></script>
"

i use this one in my config, but i know the filter use by jd and also appreciate it. otoh, the whole jd config is a well assembled collection of filters, i always download every new release.

regards,
altosax.

 
Logged

 
lnminente
Jr. Member
**
Posts: 73


View Profile WWW Email
« Reply #18 on: August 16, 2002, 05:03:36 PM »

Thanks Altosax.

Your knowledge about Proxomitron is great.

Before i was making my own filters set, but now, i'm testing, learning and personifying the JD500 filters set.

Regards.

Edited by - lnminente on 28 Aug 2002  17:09:13
Logged

 
lnminente
Jr. Member
**
Posts: 73


View Profile WWW Email
« Reply #19 on: August 28, 2002, 04:09:43 PM »

Update 1 for multiple matches (added
 in replace code).
Update 2 for style , dedicated to Altosax.


Name = "Allow Right Mouse Click v.IV"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)"
Bounds = "$NEST(<script,</script*>)"
Limit = 5120
Match = "1.(on(contextmenu|mousedown|mouseup)|captureEvents)2"
Replace = "
1.Prox2"

Other thing, i don't use this filter, i prefer "Allow Right Mouse Clicks" from the config set of JD5000.

I only post here for knowledge of the readers to view the use of multiple matches.

Regards to all.

Edited by - lnminente on 28 Aug 2002  21:49:01
Logged

 
altosax

Sr. Member
****
Posts: 328


View Profile WWW Email
« Reply #20 on: August 28, 2002, 06:19:03 PM »

hi inminente,
just a point for style,
not an improvement neither a criticism.

NOTE: this is not a trick of mine, it was suggested by bigpurplemoon time age on yahho prox-list and i've adopted it.

when you have to place some code to discard in a variable you can use the variable for this. this way the filters becomes more readable because you immediately know what stuff will be deleted. also the 0 appears to be the more indicated variable for this.

altosax.

 
Logged

 
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!