MozillaZine

Need a new media autoplay toggle button

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

Post Posted July 4th, 2017, 5:15 pm

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: 578
Joined: July 25th, 2011, 8:11 am
Location: Poland

Post Posted July 4th, 2017, 11:57 pm

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:
viewtopic.php?p=14724285#p14724285
... then I'll be really upset... [-o<

Anonymosity
 
Posts: 8439
Joined: May 7th, 2007, 12:07 pm

Post Posted July 5th, 2017, 8:56 pm

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: 181
Joined: January 20th, 2015, 12:29 pm

Post Posted July 6th, 2017, 5:59 am

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: 8439
Joined: May 7th, 2007, 12:07 pm

Post Posted July 6th, 2017, 9:27 am

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: 181
Joined: January 20th, 2015, 12:29 pm

Post Posted July 6th, 2017, 1:09 pm

Let me know if this works:
https://github.com/IsaacSchemm/autoplay-toggle/releases/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: 578
Joined: July 25th, 2011, 8:11 am
Location: Poland

Post Posted July 6th, 2017, 11:35 pm

isaacschemm wrote:Let me know if this works:
https://github.com/IsaacSchemm/autoplay-toggle/releases/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: 8439
Joined: May 7th, 2007, 12:07 pm

Post Posted July 7th, 2017, 11:38 am

It works! Thanks a bunch. What does media.autoplay.allowscripted do? I noticed that that one also gets toggled.

isaacschemm
 
Posts: 181
Joined: January 20th, 2015, 12:29 pm

Post Posted July 7th, 2017, 2:11 pm

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.

Frank Lion

User avatar
 
Posts: 19229
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom

Post Posted July 7th, 2017, 3:39 pm

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.
Metal Lion latest SeaMonkey & Thunderbird Themes - Sea Monkey and Silver Sea Monkey
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)

Return to SeaMonkey Support


Who is online

Users browsing this forum: No registered users and 2 guests