eloston / disable-html5-autoplay Goto Github PK
View Code? Open in Web Editor NEW[CURRENTLY UNMAINTAINED] An extension for Chromium-based browsers that disables autoplay of HTML5 audio and video
License: GNU General Public License v3.0
[CURRENTLY UNMAINTAINED] An extension for Chromium-based browsers that disables autoplay of HTML5 audio and video
License: GNU General Public License v3.0
The current YouTube algorithm is too sloppy and breaks in some cases.
The algorithm needs to be rewritten to accomplish the following:
repro: visit www.gypsyweb.net with disable autoplay .6.1. Hear music.
expected: no music autoplays
Actual: music plays
The project page will be the source of information for anything related to this project. This includes a blog for development updates. Support for feeds in the blog would be nice.
Probably going to add this after I get a lot more work done on the extension.
Reported by Mark Booth on the Chrome Web Store.
Title: Not disabling autoplay on about.com
Description:
http://cellphones.about.com/od/roamingpoliciesbycarrier/qt/metropcsroaming.htm
This still autoplays when you scroll down. They appear to be autoplaying a bit differently.
The video consistently autoplays when my ad-blocker is disabled and the video is visible.
It would be great if you could submit this extension to the Opera Addons Catalog as well. It accepts crx files as well, so if you want, you can submit this exact same crx extension that you use for the chrome store and submit it to the Opera addons catalog too, so that Opera users can also install it properly from the official channel.
(I can help you out with the whole process of submitting it to the catalog too, if you want).
Will you add enable autoplay option? or show me the code that can enable autoplay, so i will do it :)
A wishlist idea: add an option to stay in a permanent "resumed state", where the videos don't start automatically, but it's possible to start them with their play button, without having to switch from the "suspended state" to the "resumed state".
Also, I'd suggest to exchange the icons for the two states.
Thanks!
Opera add-ons Bug Report: Reported by chas4 on 2015-08-16
Breaks Instagram and Twitter videos (example Twitter video https://twitter.com/BabyAnimalPics/status/631830082756169728)
Also does not work with Embedded HTML5 Youtube videos
Using Chrome 43.0.2357.134 on Linux, extension version 0.6.1.
The extension never enables and does not work.
When I go to the options page, I'm getting
Uncaught SyntaxError: Unexpected token [ options.js:24
in the developer tools menu.
With Disable HTML5 Autoplay running, incoming WebRTC video in both Google Hangouts and Blue Jeans meetings becomes extremely choppy, as does the "self view" window. All frames are dropped for several seconds, followed by a handful of frames making it through, followed by more frames being dropped.
To reproduce, just install the extension and attempt to have a Google Hangouts meeting. Observe what happens with the incoming video and the self-view video. Then disable the extension and observe that it all returns to normal.
When I went to the Calgary Herald site today and opened an article containing and HTML5 video, the video still played despite this extension.
Address: http://www.calgaryherald.com/business/alberta+reveals+more+details+carbon+levy+rebates/11866119/story.html
Element from the web page:
<video id="ooPlayer0container_Player_html5_api" data-account="4077388043001" data-player="4a521d08-c17d-425f-ba6e-dddedfd26d9a" data-embed="default" data-setup="{"techOrder": ["html5", "hls", "flash"]}" class="vjs-tech" preload="none" style="display: block;" src="http://cdnbakmi.kaltura.com/p/1698541/sp/169854100/playManifest/entryId/0_6gmjjsc8/flavorParamId/487051/format/url/protocol/http/a.mp4"></video>
Browser: Chrome Version 50.0.2661.75 beta (64-bit)
Extension: Disable HTML5 Autoplay Version 0.6.1
Like in title. Of course, if it's necessary
Videos still autoplay at Nesn.com. This is especially vexing since, for some insane reason, many of the site's pages (for instance, http://nesn.com/2016/05/watch-bartolo-colons-incredible-first-career-home-run-in-all-its-glory/) contain not just one, but two embedded videos, both of which will autoplay. (Yes, it's crazy, but that's what they do!)
This is a clarification of an earlier report (might have been in the play store).
In Chrome, if I right-click on "154 comments" for a shared video and then click "Open in new tab" and I immediately switch to that tab with a keyboard shortcut (CTRL+Page Down) before the page/video is done loading, the video still autoplays for me. If I wait any amount of time before switching, it won't, and if I force refresh the page while looking at it, it doesn't.
I also use ABP and Session Buddy.
Thanks.
SoundCloud won't play HTML5 audio with this extension enabled, notably after hitting the 'play' button (which is not an "autoplay" functionality). I've toggled the extension enable checkbox four times and checked if the audio plays after a page reload each time. I'm seeing a consistent pattern of the audio playing only when "disable-html5-autoplay" is not enabled.
For some reason, checkboxes don't scale up on Opera when CSS is applied to them.
A solution is to use custom graphics instead of a checkbox.
I enjoy using Blab.im which uses webRTC technology. This extension was blocking the receiving of Video and Audio.
Is there a way to white-list certain web sites or urls to allow video/audio? I'd like to use the ex to stop videos from playing automatically across web sites I visit. But, I didn't know it would prevent me from using live video on the site I want to use.
Add an options page and a persistent whitelist. The persistent whitelist will be customizable in the options page.
The whitelist should have regular expressions support.
EDIT: The whitelist feature is now known as mode rules
Per the install instructions in Chrome, this plugin "Can read your browsing history."
Reading browsing history is potentially a privacy violation if the data leaves the user's computer.
If data does leave the computer then it should be declared in the plug-in description.
Further, if there is some functional advantage to reading browsing history, then there should be an option to disable the reporting of such data outside the user's computer.
It can be hard to tell what media has been stopped by this extension, and even harder to selectively choose which media to play.
Add an option to show an icon over unknown media types that have been stopped.
Ever since Chrome updated, this program hasn't stopped a single video from autoplaying. I've tried uninstalling, reinstall, etc., to no avail. It used to work great, but now it's just taking up space.
Add an option to detect mouse clicks in close proximity to media elements.
I actually have no idea whether USA Today uses "HTML5" to play its videos - but they're definitely not stopped by this extension. Here's a recent example:
http://www.usatoday.com/story/weather/2016/01/20/winter-storm-snow-mid-atlantic-northeast/79048448/
I'm running v.0.6.1 of the plugin and the latest version of Chrome - 47.0.2526.111 on Windows 10.
I want "youtube.com/watch" to still autoplay, but not the rest of YouTube. Specifically "youtube.com/user" should not autoplay. Channels that have an autoplaying video on their channel page drive me mad, and they're the main reason I got this addon.
If I choose "Nothing" from the menu, which should stop this extension from stopping videos in whole domain, it works just untill I reset the browser.
Make the user interface more friendly, and make features and important documentation (e.g. troubleshooting) more obvious.
Quite a few users do not know about some features that are already implemented and documentation on the Wiki, as evident from closed bug reports on GitHub and reviews and support issues on the Chrome Web Store.
Planned changes:
Reported by user Keima Katsuragi in a review on the Chrome Web Store. Description: "Para el autoplay de la gran mayoria pero no total... o es que quizas este fallando el addon... ,por ejemplo en la web www.anime.moe >>"
"www.anime.moe" does not exist, but a quick Google search reveals www.animeid.moe to be an existing website, which redirects to www.animeid.tv. I assume that this is the website the reviewer is referring to.
Any video on that website seems to autoplay. Here's what I found so far in my investigation:
I will investigate the problem further in the near future.
The content scripts are not injecting into some empty iframes. This may be due to the current injection method since the content scripts are only injected when the onCommitted webNavigation event fires for http, https, and file protocols. Thus, this may be fixed with the switch back to manifest content scripts in #23.
An example of this is the Vidible media player when set to use iframes.
This is an example of the Vidible player autoplaying without the extension detecting any media: http://www.codingforums.com/javascript-programming/17254-javascript-documentation-references.html
This is relevant documentation on Vidible: https://vidible.atlassian.net/wiki/display/SUP/Player+Tag+API#PlayerTagAPI-Tags
Extend mode rules functionality to allow domains of any level.
Also, prevent duplicate domain names in the options page.
The new button seems not to be working on my system. At first it appeared in color and autoplay was disabled (as expected). Clicking the button produced no discernible change in appearance or behavior. At some point today the button changed to grey and autoplay became enabled. Now, the button seems to be stuck on grey and clicking it seems to do nothing. And autplay is still enabled.
System: OS 10.10.4, Chrome version 44.0.2403.130
Extension version: 0.4.1
Recently, CNN videos will switch video sources if the current source doesn't play (after a certain time?) This causes it to eventually switch to an m3u8 source which Chrome cannot play.
A possible solution is to modify BrowserControlsDelegate and UnknownDelegate to trick the page into thinking that the media is actually playing, though I'm not sure how this could be done yet. This solution may also prevent other media players from breaking.
Another solution is to write CNN specific code (or whatever media player they're using)
Doesn't allow the video to load, just produces a blank image.
http://www.pcworld.com/article/2922403/how-to-stop-autoplaying-html5-videos.html and http://money.cnn.com/2015/08/06/news/companies/cvs-viagra/index.html?sr=fbmoney080615CVS1030story both had autoplay videos that were not stopped by the plugin.
When I toggle the button to 'Nothing' on YouTube, the extension remembers my selection during the current session. After restarting the browser, it is as if I never whitelisted the YouTube domain and the toggle is back to blocking autoplay.
I'm using Opera stable (32.0.1948.69) on Win10 Home, Flash PPAPI installed, and third-party cookies blocked in the preferences (with YouTube NOT whitelisted).
Documentation: https://developer.chrome.com/extensions/i18n
URL: http://www.usatoday.com/story/news/politics/elections/2016/04/28/ted-cruz-california-primary-donald-trump-fiorina/83641576/
Element in this article that autoplays is a video at the top of the article. 'Inspect' says the URL for the video is: http://videos.usatoday.net/Brightcove2/29906170001/2016/04/29906170001_4869360653001_4868940407001.mp4
But pretty much any article at USA Today with a video will autoplay.
I also have Ad Block Plus (which I tried disabling) and have configured Chrome to block flash plugins until I click (which I also tried disabling).
Steps to cause it to break: Just load the article
On my system, the following youtube video displays in HTML 5 (rather than Flash), and automatically starts playing at about the 3 minute mark. The extension icon appears in color with a the number "1".
https://www.youtube.com/watch?t=184&v=u4zb6LUehwY
System: Mac OS 10.10.4, Chrome version 44.0.2403.130
Extension version: 0.4.1
I visited the website howtogeek.com (while doing a google search to figure out how to stop HTML5 videos from buffering, which seems to be a pipe dream) to see an ad from sekindo.com playing automatically. I've seen this ad on several other websites, and each time it plays automatically, regardless of autoplay settings. Running disable-html5-autoplay 0.6.1 under chrome 42. Here's the video tag when I inspect the element.
<video width="300" height="250" autoplay="" src="https://video.sekindo.com/uploads/video/the_cure_to_overeating_mini.mp4" style="top: 0px; z-index: 2; display: block;"></video>
Love the plugin, however for sites like Netflix, I would like to disable it because Netflix auto next video doesn't play. :P
I would like to know if this extension prevents HTML5 videos from both buffering and auto-playing? Or does it only stop them from auto-playing?
The reason I ask is that I have a limited 100MB daily bandwidth plan using my 3 USB key, and so I want to conserve bandwidth while browsing.
Thank you.
In Opera 33.
And feature suggestion: if you could maintain a whitelist of sites permitted to play, that would be huge.
I would accept it, even if it would require editing a text file...
Massive changes are on the way:
Object.defineProperty
to create hooks into HTMLMediaElement.prototype
attributes and methodsAt the following URL, which requires logging in with a Google account, a chat window pops up after logging in, and audio starts playing automatically which consists of the computer speaking the text from the chat window:
I tried looking at the javascript console and I found something regarding an HTML audio element, so I assume this is an HTML5 issue. I don't know whether this counts technically as an "autoplay" issue.
Operating System: Mac OS 10.10.4
Chrome Version: 44.0.2403.155 (64-bit)
Extension Version: 0.4.2 (updated with Fix #7 )
Hello,
first of all thanks for developing this extension, it might be the first sane autoplay blocker available. What I'm reporting here is that when I load a YouTube page the play/pause button is in a random state, and this is a bit confusing, especially in the beginning. I hope this can be fixed.
Thanks!
Youtube has a feature that stops playback when the buffer size is not large enough for continuous playback. Usually, this happens at the start of playback, or sometimes in the middle of it. The duration of the stop on a good connection is less than 1 second, however Youtube is not able to resume automatically.
There are 2 solutions to this:
a) once video playback has been enabled for a particular tab session (by clicking play), then further clicks should be allowed. This seems very relevant to most use-cases, as if the tab had asked for permission to play videos and is for the time being "trusted".
b) detect auto-stops and allow a window of 3-10 seconds for auto-resume.
Add an option to enable debug logging. There should be a place in the options menu to access the logs so people can include them in bug reports.
Debug logging should be disabled by default.
The current method of running frame scripts has several problems:
I've come up with three solutions that make use of content scripts declared in the manifest:
The question is, which method is fastest? Is there a faster method not listed above?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.