New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus ē Advice and insight from world-class Apple enthusiasts ē Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Internet, Networking, and Wireless Discussion of networking, internet, and wireless including Apple's Airport products.

How to stop HTML5 auto play?


Post Reply New Thread Subscribe

 
Thread Tools
cptkrf

 
cptkrf's Avatar
 
Member Since: Dec 08, 2009
Location: The same as Sheldon Cooper - East Texas
Posts: 453
cptkrf is a jewel in the roughcptkrf is a jewel in the rough
Mac Specs: iMac 2014 i5 5k 32gb 1tb fusion, second TB display, 2014 MBA

cptkrf is offline
This probably applies to Safari/IOS also, but there isnít a generic browser forum.

Anybody bothered by auto playing HTML5 videos that are increasing in number by the day? Nothing like surfing in a quiet coffee shop and and suddenly having to frantically page though a dozen tabs to find the ad or talking heads that are blabbing away.

Turning the sound off fixes the audio problem, but unless you are on a genuine hi-speed broadband link (scarce in rural areas) you can find yourself wondering why the ĎNet is so slow this morning, then you find a hires, five minute video ad playing in the background. And of course, you give up the pings and dings that tell you of mail, or messages.

Another fix is to use an off-brand browser like Sunrise that doesnít (yet) have HTML5 capability, but that is just a stopgap.

Now the question, has anybody found a way to block them in Safari? I have just started my search and I was surprised to find nothing available. More research finds that the HTML5 spec is imbedded in the HTML stream and isnít a plugin like flash that can be blocked. Plus it is impervious to something like No-Script - it isnít javascript.

Supposedly, Firefox has an Autoplay flag that can be set to false, but so far I havenít made that work.

As advertisers realize that they can throw this in any surferís face on common, it is just going to get worse. Hopefully, as people get really ticked, the browsers will eventually have a blocker switch, but that will take time and a lot of complaints before Madison Avenue allows them to be stopped by the user.
QUOTE Thanks
pigoo3

 
pigoo3's Avatar
 
Member Since: May 20, 2008
Location: U.S.
Posts: 31,255
pigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond reputepigoo3 has a reputation beyond repute
Mac Specs: 13" MB 2.4ghz, 2gig ram, OS 10.7.5

pigoo3 is offline
Quote:
Originally Posted by cptkrf View Post
Anybody bothered by auto playing HTML5 videos that are increasing in number by the day? Nothing like surfing in a quiet coffee shop and and suddenly having to frantically page though a dozen tabs to find the ad or talking heads that are blabbing away.
Yes...VERY irritating! Especially if these are the videos that I'm thinking of...that have no controls (stop, pause, etc.)!!!

- Nick

- Too many "beachballs", read this: Beachballs
- Computer seems slower than it used to? Read this for some slow computer tips: Speedup
- Almost full hard drive? Some solutions. Out of Space
- Apple Battery Info. Battery
QUOTE Thanks
chscag

 
chscag's Avatar
 
Member Since: Jan 23, 2008
Location: Fort Worth, Texas
Posts: 44,227
chscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond repute
Mac Specs: 27" iMac i5, 3.2 GHz, iPad 3, iPhone 5c, 3 iPods, Yosemite

chscag is offline
Check out the following MacRumors thread: LINK
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 19,091
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
You'd have to find something that looks for <video> tags and replaces them with something else.

The tricky part here is that developers determine whether or not the video plays. The autoplay attribute here is what's causing your issue. Chrome has an autoplay blocker (here) as does Firefox (here) if you use one of those as well.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
cptkrf

 
cptkrf's Avatar
 
Member Since: Dec 08, 2009
Location: The same as Sheldon Cooper - East Texas
Posts: 453
cptkrf is a jewel in the roughcptkrf is a jewel in the rough
Mac Specs: iMac 2014 i5 5k 32gb 1tb fusion, second TB display, 2014 MBA

cptkrf is offline
Quote:
Originally Posted by chscag View Post
Check out the following MacRumors thread: LINK
Yes. I found that before I posted, and installed it, but so far I have not been able to make it stop anything and certainly not HTML5 videos. And googling shows that I am not the only one.
QUOTE Thanks
cptkrf

 
cptkrf's Avatar
 
Member Since: Dec 08, 2009
Location: The same as Sheldon Cooper - East Texas
Posts: 453
cptkrf is a jewel in the roughcptkrf is a jewel in the rough
Mac Specs: iMac 2014 i5 5k 32gb 1tb fusion, second TB display, 2014 MBA

cptkrf is offline
In my quest to stop all HTML 5 autoplaying videos I have found that browser developers donít consider it a problem. ďDonít watch it or donít listen to itĒ is their answer. And - ďBesides, if we allow it to be disabled, then the developers will get really ticked off and tell people to use another one.Ē

So far I can do little with Safari, but Firefox is much more open. The problem is not so much the talking heads that start blabbing somewhere in some tab, although in a quiet office or coffee shop it can be embarrassing, but on a fixed income (called data caps) it just sucks up money.

Since the autoplay is an HTML element, normal blocking does not work. If you google about the problem, all you get is the advice to install Click-to-Flash or some such which is worthless against <video controls autoplay>. Everybody is concerned about blocking YouTube HTML5 for some reason, but that has nothing to do with CNN and Yahoo autoplaying in your face.


The best solution is to build a front end that strips the tags before the browser sees them, but that isnít a task that I want to crank up yet. Maybe someone else will.

For now, with Firefox I am attempting to spoof the sender into thinking that I donít have the proper plugins.

On the url line, type about:config and say yes to the warning. Then search on Media.xxx and set the following to false.

media.autoplay.enabled;false
media.ogg.enabled;false
media.wave.enabled;false
media.webm.enabled;false
media.apple.mp4.enabled;false

So far so good as respects the autoplaying. I havenít decided if it actually prevents downloading yet, since my connection is so fast that I canít really pull it out of the Little Snitch monitor. And, I have discovered that Netstat isnít working on Yosemite. Still have to knock that problem out.

But, progress is slowly being made.

Now, about the latest news that Samsung Smart TVís are bringing you advertisements in the middle of your locally watched video. Of course, the only reason is for "An Enhanced Customer Viewing Experience"...
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 19,091
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Quote:
Originally Posted by cptkrf View Post
The best solution is to build a front end that strips the tags before the browser sees them, but that isnít a task that I want to crank up yet. Maybe someone else will.
This was going to be my suggestion - removing the autoplay attribute so as to prevent any autoplay. I don't actually think this is all that difficult - all one would need to do is remove all attributes from video tags using something like:
Code:
document.getElementsByTagName("videoĒ).removeAttribute(ďautoplayĒ)
You can even inject this relatively easily with a Safari extension. Hmmm...I might take a crack at this later.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 19,091
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
And I'm done. Here's (RemoveAutoPlay.safariextz.zip) an extension I just whipped up that will strip all video tags on a page of their autoplay attribute. In other words, any HTML5 based video player that autoplays the standard way will no longer autoplay.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
cptkrf

 
cptkrf's Avatar
 
Member Since: Dec 08, 2009
Location: The same as Sheldon Cooper - East Texas
Posts: 453
cptkrf is a jewel in the roughcptkrf is a jewel in the rough
Mac Specs: iMac 2014 i5 5k 32gb 1tb fusion, second TB display, 2014 MBA

cptkrf is offline
That was fast. Trying it now.

---Later---

Well, it installed, and shows up in the extensions list but still autoplays.

Try this link and just wait.
http://www.cnn.com/2015/02/11/world/...ial/index.html

Last edited by cptkrf; 02-11-2015 at 06:33 PM.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 19,091
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
That's because it's a Flash based player.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
cptkrf

 
cptkrf's Avatar
 
Member Since: Dec 08, 2009
Location: The same as Sheldon Cooper - East Texas
Posts: 453
cptkrf is a jewel in the roughcptkrf is a jewel in the rough
Mac Specs: iMac 2014 i5 5k 32gb 1tb fusion, second TB display, 2014 MBA

cptkrf is offline
Quote:
Originally Posted by vansmith View Post
That's because it's a Flash based player.
I don't have flash. One thing that I definitely agreed with Steve Jobs on, is that Flash is the root of all evil. Took it off my first Macbook that was running red hot and never ran it again.

No flash on my machines. Possibly something else is running it, but not Adobe flash.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 19,091
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
It would appear that they use Flash unless it's not available.

It looks like that website uses some Javascript to load things and consequently, they don't use a standard HTML5 based player. Unfortunately, my coding skills aren't good enough to account for them all.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
cptkrf

 
cptkrf's Avatar
 
Member Since: Dec 08, 2009
Location: The same as Sheldon Cooper - East Texas
Posts: 453
cptkrf is a jewel in the roughcptkrf is a jewel in the rough
Mac Specs: iMac 2014 i5 5k 32gb 1tb fusion, second TB display, 2014 MBA

cptkrf is offline
Quote:
Originally Posted by vansmith View Post
It would appear that they use Flash unless it's not available.

It looks like that website uses some Javascript to load things and consequently, they don't use a standard HTML5 based player. Unfortunately, my coding skills aren't good enough to account for them all.
I'm not really approaching this like I had a research grant, just off and on when some loud video really ticks me off that day. It would appear that there are several ways that web coders use to plant the video in your face. Many still use Flash (why?) but fall over to HTML if it isn't available. I can stop those with add on blockers, since they use plugins.

It is the embedded video tag in the HTML stream that is immune to any third party add-ons. The browser thinks it is regular code and executes it.

So, either the browser writers are going to have to code in a checkbox nullifier for that tag, which will take a coder who is both rich and ready to get death threats from industry, or a pre-process will have to be scripted to dump the tag before the browser gets it.

Or something else that I haven't thought of. Possibly a law that allows a user to bill for unwanted data usage on a monthly basis?

Years ago, I would have jumped at the chance to work on this, and probably learn a new language at the same time, but so far I just haven't got the engine up to speed enough to tackle the task.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 19,091
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Quote:
Originally Posted by cptkrf View Post
Many still use Flash (why?) but fall over to HTML if it isn't available.
That's a fairly simple answer - Flash works regardless of the underlying browser. If you make a player work with Flash, you don't have to concern yourself with HTML spec support in the browser being used by your users.

Quote:
Originally Posted by cptkrf View Post
So, either the browser writers are going to have to code in a checkbox nullifier for that tag, which will take a coder who is both rich and ready to get death threats from industry, or a pre-process will have to be scripted to dump the tag before the browser gets it.
I imagine that this is possible and would only require injecting a script at the end of a page load. I really want to figure this out (this is what happens when I get intrigued by things...) now.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
tekl

 
Member Since: May 10, 2015
Posts: 1
tekl is on a distinguished road

tekl is offline
The extension does not work an macworld.com or pcworld.com. Als removing the whole container with AdBlock doesn't help. They seem to load the video with JavaScript.

When auto-play videos play anyway | Macworld

Maybe you could make your extension more robust to disable autoplay for videos added by JavaScript.
QUOTE Thanks

Post Reply New Thread Subscribe


« Has the WiFi issue been sorted with Yosemite? | - »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Play Zoombinis on a Macbook Pro TALLEYman OS X - Apps and Games 0 05-10-2014 12:15 AM

All times are GMT -4. The time now is 12:10 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?