hi
i want to block all types of videos from being played either autoplayed or non autoplayed
thanks
block all videos
Re: block all videos
I made a UserScript called "Disable Audio/Video Autoplay" that might help, but all that ABP can do is block the videos outright, meaning you won't be able to play them at all because they won't load.
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
Re: block all videos
yes that is what i want block the videos outrightlewisje wrote:I made a UserScript called "Disable Audio/Video Autoplay" that might help, but all that ABP can do is block the videos outright, meaning you won't be able to play them at all because they won't load.
can you tell me how to do that
thanks
Re: block all videos
install this lewisje script in greasemonkey (firefox) or tampermonkey (chrome)
https://greasyfork.org/en/scripts/8022- ... o-autoplay
https://greasyfork.org/en/scripts/8022- ... o-autoplay
Re: block all videos
To block videos outright, I wish there were a media-type rule like $media (which actually is a type recognized by Firefox's IContentPolicy API, but not Chromium's webRequest), but the best way is probably to do it by file extension:I can't think of a good way to do this with simple filters without massive false positives, so I did it as a regex (maybe I went overboard with the non-capturing groups...).
I just tested it on the "Video for Everybody" test page, but that rule doesn't work generally enough; for example it does not work on YouTube, for which you'd need to craft your own rule: http://camendesign.com/code/video_for_e ... /test.html
Actually I think this should get rid of embedded YouTube videos, without blocking the YouTube site itself:
Code: Select all
/\w\.(?:webm|mov|divx|avi|mp(?:4|e?g)|og(?:v|m)|wm(?:v|x)|rm(?:vb)?|(?:m2)(?:t|p)s|(?:m(?:k|4)|d|f(?:l|4))v|as(?:f|x))\b/$object,object-subrequest,other
I just tested it on the "Video for Everybody" test page, but that rule doesn't work generally enough; for example it does not work on YouTube, for which you'd need to craft your own rule: http://camendesign.com/code/video_for_e ... /test.html
Actually I think this should get rid of embedded YouTube videos, without blocking the YouTube site itself:
Code: Select all
||youtube.com^$script,object,object-subrequest,other,subdocument,third-party
||youtube-nocookie.com^$script,object,object-subrequest,other,subdocument,third-party
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.