How to block/disable all videos from automatically loading in Chrome?

60

14

Many sites now have auto-playing or automatically streaming videos: embedded in news pages, down side bars promoting other content, and some sites even have massive honking-great purely decorative videos in the background of a search page (e.g. AirBnB and Lastminute).

As well as the annoyance factor, these are a problem for me because I'm usually on a metered connection, and these things can waste hundreds of valuable MBs in seconds, on something I didn't even want to watch in the first place. There's almost always no way to stop the video downloading other than closing the page.

Is there any way I can prevent videos from loading at all in Chrome? I've already blocked Flash using Chrome's Content Settings for "Plug-ins". What I want is, a way such that any time Chrome sees a <video> or <audio>, it just shows something like a grey box and doesn't even touch the linked video content. Maybe a "click to load video" button would be a nice feature, but it's not necessary.

I thought there would be an extension for this, but it seems there isn't:

  • The promisingly-named Video Blocker actually only removes specified Youtube channels and suggested videos on the Youtube page.
  • Disable HTML5 Autoplay sounds promising, but doesn't work as expected. I have it installed, set to its strongest "disable" setting, yet videos still load and play.
  • Every other extension I can find is limited to blocking only videos in ads, or only Youtube videos, or only Facebook videos, or some combination.

To be clear, I want to stop the videos being streamed/loaded as well as stopping auto-play.

I've seen How to block HTML5 videos system wide but unfortunately the answer only addresses Firefox and IE.


It seems odd that there's apparently no simple option to block video, given that Chromes's "Content settings" has a simple, easy option to block images:

enter image description here

I want something that works like disabling images, but for videos (and I'd like to be able to keep images).


I've tried AdBlock Plus based on Sanny's suggestion but haven't yet found a way to make it do what I want.

user56reinstatemonica8

Posted 2016-02-12T11:46:00.427

Reputation: 3 946

Check out this link http://www.makeuseof.com/tag/stop-auto-playing-flash-html5-videos-chrome/ also has options for HTML5 if it works let me know and I will copy the answer into here so others can find it.

– David Golding – 2016-02-17T13:01:53.940

Seems to be YouTube only. – user56reinstatemonica8 – 2016-09-07T17:18:50.303

From the reviews it look like both only work on <video> tags and fail on sites that use another method to load HTML5 videos. – user56reinstatemonica8 – 2016-09-07T20:52:31.707

Have you tried ScriptSafe or Script Blocker ?

– harrymc – 2016-09-08T08:18:34.913

Answers

18

How about HTML Content Blocker, it is different than HTML 5 Autoplay. [https://chrome.google.com/webstore/detail/html-content-blocker-js-c/nobnkgabkebhhlgfddbemmefjnjnahoe?hl=en]

In conjunction with your current Flash blocking it should solve your problem.

thesoundman20

Posted 2016-02-12T11:46:00.427

Reputation: 359

there is also a flash blocker extension: [https://chrome.google.com/webstore/detail/flashcontrol/mfidmkgnfgnkihnjeklbekckimkipmoe/related?hl=en] – thesoundman20 – 2016-09-08T18:24:06.917

Looks promising, no reviews though. Will try to test it tomorrow. – user56reinstatemonica8 – 2016-09-08T20:37:01.723

So far, so good. Using this set to block "Media" and "Object", several videos that got through Adblock Plus have been successfully blocked completely by this, no wasted data. Not yet encountered any videos that sneaked through the net – user56reinstatemonica8 – 2017-01-19T14:24:33.047

Does that extension just prevent from showing the video or it even prevents the HTML5 video from being downloaded by the browser? – None – 2017-04-04T18:46:03.393

1

I've tried it, and there are only five options: which kind of content to block. With the 'media' option selected, it prevents auto-loading and auto-playing of video. Unfortunately, it doesn't allow manual playing. So if you want to watch a video, you have to go to the extension and deselect 'media'. Not gonna work for me. Tested on this site: http://www.thekitchn.com/how-to-make-kombucha-tea-at-home-cooking-lessons-from-the-kitchn-173858

– Kit Johnson – 2017-05-20T02:15:23.893

This one seems to work right. For videos initially it tells the webpage that the source is unsupported, OK, and then it lets the user manually load the clip. In some cases as Kit Johnson mentions the player is flimsy so the addon will block it without being able to make it play on demand. – JasonXA – 2017-12-23T11:59:08.200

very good thx! on youtube, if I just want to read/answer comments, it would initially video buffer spending at least 2MB (144p), now it only spends about 200kb what is a huge improvement saving the data usage (I also use the "block image" extension, but may be this one would be enough). – Aquarius Power – 2018-11-02T20:27:42.460

10

First of all, what you ask may not completely be achieved as you please. If the case is that you want no video playing on websites because you are on metered connections, and regardless of using Google Chrome, I believe this can only be possible with Firefox and NoScript

But using NoScript may effect your browsing experience, since it blocks many websites' functions.

Try to install Tampermonkey and search for a script that changes the 'preload' attribute of the <video> tag from 'auto' to 'none'. However, changing this attribute would only stop auto-playing instead of blocking the element entirely, as NoScript does, which means Chrome may still buffer some small parts yet without playing them (BTW, Firefox has a feature to stop auto-play videos).

If someone wonders whether NoScript is available for Chrome, then it is not, unfortunately. But there are fork projects of NoScript for Chrome.

You can use AdBlockPlus to hide elements you don't prefer by user specific filters. Note you can use this option if you have few websites to block videos and after you discover the <dev> tags that hold them, e.g. the filter ##div.hero__background hides the background video on airbnb.com. Otherwise, you can hide every video tag on every website you visit by using the filter ##video.

UPDATE:

I still say that you won't get something that block every video on every website. So AdBlockPlus sometimes fail to block with the filter ##video. However, if you visit a website frequently and you know it has videos, use ContentBlockHelper that will identify common elements, like images and video, as icons sorted by their URL sources. Block videos by clicking on the video icon as indicated below, and repeat with the other URL sources (on airbnb.com, videos may not load by default so the screenshot below may differ):

enter image description here

I repeat, this is not a global solution. But it does give you some control on websites you visit frequently until you switch to Firefox (honestly I'm not a fan of Firefox but it's the only browser that should provide a satisfying solution for you).

Sanny

Posted 2016-02-12T11:46:00.427

Reputation: 1 488

I've tried installing AdBlock Plus, not sure exactly what you're suggesting, do you mean just a filter saying ##video? – user56reinstatemonica8 – 2016-02-17T12:56:40.000

In fact I was talking about ##div.class and ##div#id that hold the <video> tags. Adding ##video will cut out the tag globally. You may prefer it over scanning the page for class and id. And then if you want to watch HTML5 players that use video like in YouTube, you can just disable ADB on such sites. – Sanny – 2016-02-17T13:38:07.983

@user568458 e.g. if you search airbnb.com homepage, adding the filter ##div.hero__background hides the background videos. And thus you keep on searching which sounds boring :) – Sanny – 2016-02-17T13:48:46.383

I want something 100% global, blocking all videos, everywhere, ever, even if for example I click a YouTube link. Then, I can manually disable it if I did decide to go mad and blow my week's data allowance on one video – user56reinstatemonica8 – 2016-02-17T13:55:01.543

Then go ahead and use ##video in AdBlock Plus. I tried it and it worked fine. Good luck :) – Sanny – 2016-02-17T13:58:45.550

I've been using AdBlock Plus set to block ##video plus flash disabled but recently some videos have been loading and auto-playing anyway. Don't know why – user56reinstatemonica8 – 2016-06-25T22:14:41.523

1Yeah, this doesn't work. Videos will still download. – Ant6n – 2016-08-05T13:04:43.297

@user568458 use ContentBlockHelper as in the updated the solution – Sanny – 2016-08-13T20:03:31.497

@Ant6n use ContentBlockHelper, check the 'update' part in my answer – Sanny – 2016-08-13T20:04:19.750

I got better results from this when I added ##object to the filters alongside ##video and ##audio. Not sure if that covers everything, if anything does still slip through, I'll try to make a note of the site and see what it is – user56reinstatemonica8 – 2016-09-09T20:34:34.240

5

While none of the solutions on the 'net seemed to work for those increasingly annoying news sites that throw media in your face, I was overjoyed that chrome #61 finally allows us to control this - though it is a lab and will unceremoniously disappear on us one day.

Use this flag: Autoplay policy - worked like a charm on usatoday.com !!

chrome://flags/#autoplay-policy

Update: Doesn't work on some sites; and since switching to Vivaldi, this switch is not honored at all, so I use uBlock Origin instead, which seems to work well for most sites, except it doesn't block that darn subscribe to newsletter pop-ups which 75% of sites throw at your face. I hate HTML5 for the increased powers it has given these sites, instead of us.

killjoy

Posted 2016-02-12T11:46:00.427

Reputation: 213

Tried it -- didn't work at all. Two youtube videos started playing immediately over each other on relaunch of chrome (Version 70.0.3538.77) – Sirap – 2018-10-25T20:29:04.527

1

As of 2019 August this appears to work generally in Chrome

  • use the ublock origin extension
  • open settings and then in the [My filters] tab enter the following blocking of video elements on all domains with a single exception for YouTube.

    *##video

    ~www.youtube.com##video

In my case I also disable sound in Chrome with exceptions (for YouTube, NPR, etc) in the settings. This may in some way alter my experience (happy altered experiences everyone).

jimmont

Posted 2016-02-12T11:46:00.427

Reputation: 121

-2

You can change chrome settings to disable video autoplay.

  • Open chrome://settings/content
  • Scroll down to Plugins
  • select “Let me choose when to run plugin content”
  • You can also check "Manage Exceptions" to see if you whitelisted a site before
  • Click Done.

However, to disable video auto play on Facebook, you can log in into your Facebook account and visit https://www.facebook.com/settings/?tab=videos Under video settings, you can choose to turn Auto-Play settings On or Off as required.

Abhishek Jain

Posted 2016-02-12T11:46:00.427

Reputation: 19

3That only affects Flash videos; also, I'd already mentioned I'd done that in the question – user56reinstatemonica8 – 2016-02-18T06:40:03.013

There is no "Plugins" section on my Chrome on settings/content. – Matt – 2017-06-15T04:32:48.877