Post Reply 
Block coub videos
Dec. 30, 2015, 01:06 AM
Post: #1
Block coub videos
Hi,

My Privoxy installation is working very nicely, but I have problem with Coub videos:

like on this page

The auto play is very annoying. Is there any way to stop these? Or leave the first frame, like with the gifs.
Add Thank You Quote this message in a reply
Dec. 30, 2015, 05:48 PM
Post: #2
RE: Block coub videos
Have you tried deanimate-gifs?
Add Thank You Quote this message in a reply
Dec. 30, 2015, 09:10 PM
Post: #3
RE: Block coub videos
Yeah, I have:

{+deanimate-gifs{first}}
/

But it does not work for coub.

My other question:

user.filter:
FILTER: removebanner
s/<div [^<>]*class="banner"[^<>]*>/<div class="banner" style="display:none;">/gi

user.action:
{ +filter{removebanner}}
/

I am t trying to block banner divs, like this:

<div class="banner" data-id="543" data-banner-id="525" data-zone-id="1,2,3,4"><div id="bf1445940949335" style="width:728px;height:90px; overflow: hidden;"><div style="width:728px;height:90px;"><div style="width:728px;height:90px;"><iframe frameborder="0" src="https://html5.host.bannerflow.com/ad_666351_25.html?ad=ad_666351_25.html&amp;size=728x90&amp;pid=282205&amp;bid=2934&amp;tracking=on" style="width:728px;height:90px; background-color: transparent; border: medium none; transition: opacity 100ms linear 100ms; opacity: 1;" scrolling="no"></iframe></div></div></div></div>

And the div is always shown = it is not rewrited. But why?

One more question:

why I get "The proxy server is refusing connections"?

https://www.dropbox.com/s/le05ebm52bdm5y...8.png?dl=0
Add Thank You Quote this message in a reply
Dec. 31, 2015, 11:15 AM (This post was last modified: Dec. 31, 2015 12:05 PM by Faxopita.)
Post: #4
RE: Block coub videos
(Dec. 30, 2015 09:10 PM)adriankoooo Wrote:  user.filter:
Code:
FILTER: removebanner
s/<div [^<>]*class="banner"[^<>]*>/<div class="banner" style="display:none;">/gi

Instead, use this:
Code:
FILTER: removebanner
s/<div [^<>]*class="banner"[^<>]*>/<div id="crap" style="display:none;"/g

It works and it's more funny.


(Dec. 30, 2015 09:10 PM)adriankoooo Wrote:  Why I get "The proxy server is refusing connections"?

https://www.dropbox.com/s/le05ebm52bdm5y...8.png?dl=0

Did you set Privoxy to Advanced filtering mode? Look at here to see the different levels of aggressiveness.
If so, you must add something like this in your user.action file:
Code:
{ +limit-connect{80,443} } # Ports 80 and 443 are OK.
                           # Needed under "advanced" mode.
   /

For example, in my case, I have granted access to the following ports:
Code:
{ +limit-connect{80,443} }
   /

{ +limit-connect{80,350,443,5000,5020} }
   .raynersw.com

{ +limit-connect{443, 9091} }
   .jit.si

If you use the most aggressive settings, you must explicitly let Privoxy know not to crunch incoming/outgoing cookies as well—if issues when visiting a particular website.


(Dec. 30, 2015 09:10 PM)adriankoooo Wrote:  
Code:
{ +deanimate-gifs{first} }
/

But it does not work for coub.

Unfortunately, I don't have a quick fix for this. I thought that resorting to Privoxy's ability to manage external filters would help using ImageMagick's convert program… I know that sounds funny!

You could equally study the deanimate-gifs filter and modify it so it applies to Coub loops as well.

Finally, you can always turn to JavasScript. See thread here.
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: