Need a new media autoplay toggle button

User Help for Seamonkey and Mozilla Suite
Post Reply
Anonymosity
Posts: 8779
Joined: May 7th, 2007, 12:07 pm

Need a new media autoplay toggle button

Post by Anonymosity »

I need a new toolbar button to toggle media autoplay with SeaMonkey 2.49. Custom Buttons does not work with this version. There must be some way to toggle a pref setting with a button.
TPR75
Posts: 1353
Joined: July 25th, 2011, 8:11 am
Location: Poland

Re: Need a new media autoplay toggle button

Post by TPR75 »

Anonymosity wrote:I need a new toolbar button to toggle media autoplay with SeaMonkey 2.49. Custom Buttons does not work with this version. There must be some way to toggle a pref setting with a button.
If this method will not work with newer SeaMonkey version:
http://forums.mozillazine.org/viewtopic ... #p14724285
... then I'll be really upset... [-o<
--
Anonymosity
Posts: 8779
Joined: May 7th, 2007, 12:07 pm

Re: Need a new media autoplay toggle button

Post by Anonymosity »

That is what I used to create the toggle button, but It does not work with SM 2.49. The only add-on that I could find that described what I wanted was too old. For now, I am back to Flashblock, which is definitely not perfect, but it can block HTML5. When I want to use HTML5, I have to toggle Flashblock off.
isaacschemm
Posts: 270
Joined: January 20th, 2015, 12:29 pm

Re: Need a new media autoplay toggle button

Post by isaacschemm »

What's the pref that needs to be toggled?

I have a standalone extension that toggles media.navigator.permission.disabled, and that works in 2.49.
Anonymosity
Posts: 8779
Joined: May 7th, 2007, 12:07 pm

Re: Need a new media autoplay toggle button

Post by Anonymosity »

I need to be able to toggle media.autoplay.enable. There are a few pages where autoplay has to be enabled, but most of the time you can click a play button and have the video work, and I do not like automatic playing.
isaacschemm
Posts: 270
Joined: January 20th, 2015, 12:29 pm

Re: Need a new media autoplay toggle button

Post by isaacschemm »

Let me know if this works:
https://github.com/IsaacSchemm/autoplay ... /tag/1.0.0

It's a legacy (restartful?) extension instead of using the old add-on SDK.
This could also be a nice base for making other similar standalone extensions, if someone wants to do that.
TPR75
Posts: 1353
Joined: July 25th, 2011, 8:11 am
Location: Poland

Re: Need a new media autoplay toggle button

Post by TPR75 »

isaacschemm wrote:Let me know if this works:
https://github.com/IsaacSchemm/autoplay ... /tag/1.0.0

It's a legacy (restartful?) extension instead of using the old add-on SDK.
This could also be a nice base for making other similar standalone extensions, if someone wants to do that.
Works correct. Tested on Vimeo.

Very nice! Thank you. =D>
--
Anonymosity
Posts: 8779
Joined: May 7th, 2007, 12:07 pm

Re: Need a new media autoplay toggle button

Post by Anonymosity »

It works! Thanks a bunch. What does media.autoplay.allowscripted do? I noticed that that one also gets toggled.
isaacschemm
Posts: 270
Joined: January 20th, 2015, 12:29 pm

Re: Need a new media autoplay toggle button

Post by isaacschemm »

Anonymosity wrote:It works! Thanks a bunch. What does media.autoplay.allowscripted do? I noticed that that one also gets toggled.
That one is specific to Pale Moon:
http://www.palemoon.org/releasenotes-archived.shtml
Autoplay of media now has a separate control preference for scripted content as media.autoplay.allowscripted, to block script-initiated autoplay of media.
User avatar
Frank Lion
Posts: 21173
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom
Contact:

Re: Need a new media autoplay toggle button

Post by Frank Lion »

Anonymosity wrote:I need a new toolbar button to toggle media autoplay with SeaMonkey 2.49. Custom Buttons does not work with this version.
Their forum has versions that work with Firefox 53. That'll do the SM 2.49ESR and after that it won't matter, as SM will follow down the FF webextensions route for sure. Assuming SM still exists after the ESR, of course.
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)
.
Anonymosity
Posts: 8779
Joined: May 7th, 2007, 12:07 pm

Re: Need a new media autoplay toggle button

Post by Anonymosity »

By the way, Isaac, you should contact the people at the Pale Moon site. Your extension to toggle media autoplay works fine with Pale Moon, and I am sure they would be interested in having it.
https://www.palemoon.org/
isaacschemm
Posts: 270
Joined: January 20th, 2015, 12:29 pm

Re: Need a new media autoplay toggle button

Post by isaacschemm »

Anonymosity wrote:By the way, Isaac, you should contact the people at the Pale Moon site. Your extension to toggle media autoplay works fine with Pale Moon, and I am sure they would be interested in having it.
https://www.palemoon.org/
That might be a good idea. I did submit another extension there: https://addons.palemoon.org/addon/integ ... ntication/
Not sure why I never did that with this one.
Rob_S
Posts: 809
Joined: December 13th, 2007, 8:54 am
Location: Vancouver Island BC
Contact:

Re: Need a new media autoplay toggle button

Post by Rob_S »

This thing is fantastic and simple to install and use and works in latest Seamonkey

Thank you so very much!!!
Post Reply