Post Reply 
Boosting Privoxy's Filtering Capabilities with Customised Filters
Aug. 04, 2015, 02:59 PM (This post was last modified: Aug. 04, 2015 03:29 PM by cattleyavns.)
Post: #2
RE: Boosting Privoxy's Filtering Capabilities with Customised Filters
Hi Faxopita, okay, so '0 hits' means my filter cannot find any tags to replace with my code.

First, can you try this:
Code:
FILTER: blockwebrtc
s†(<head>)†\n<script>function NoWebRTC(e){return 1}window.RTCPeerConnection=NoWebRTC; window.webkitRTCPeerConnection=NoWebRTC; window.mozRTCPeerConnection=NoWebRTC;</script>\n$1†i

The second I think possibly, that is "†" might not work on some system (for me † is the best), so can you please try this code, I simply replace † with @:
Code:
FILTER: blockwebrtc
s@(^[^;]*?(?:<head[^>]*?>|<body[^>]*?>|<script[^>]*?>[^>]*?</script>))@\n<script>function NoWebRTC(e){return 1}window.RTCPeerConnection=NoWebRTC; window.webkitRTCPeerConnection=NoWebRTC; window.mozRTCPeerConnection=NoWebRTC;</script>\n$1@i


If my filter work, that page couldn't get my local IP, like this picture: http://i.imgur.com/6E4D5v7.png
Anyways, I will help you fix this problem until everything work fine.

SMALL AND OFF-TOPIC TIPS: By disabling Privoxy log, Privoxy will become faster.
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Boosting Privoxy's Filtering Capabilities with Customised Filters - cattleyavns - Aug. 04, 2015 02:59 PM

Forum Jump: