Donmai

How do I disable autoplay?

Posted under General

Samsara_Kama said:

Idk about flash animations, but I have autoplay and sound blocked for Danbooru in my browser settings.

What browser? I’ve been trying to do that for ages because I hate getting earraped half a dozen times when banning shitty hentai videos.

To fix the volume specifically, there is a script that automatically sets the volume of all videos to half (adjustable).

// ==UserScript==
// @name        Danbooru default video volume
// @match       https://*.donmai.us/posts/*
// @grant       none
// @version     0.1
// @author      Anonymous
// ==/UserScript==

const video = document.querySelector("video");
if (video) video.volume = 0.5; // 1.0 for full volume

Veraducks said:

What browser? I’ve been trying to do that for ages because I hate getting earraped half a dozen times when banning shitty hentai videos.

Support varies wildly between browsers.
Not helping is that because everything is running Chromium now, people writing guides assume that the way browser X does something also applies for all other browsers without checking.

Firefox

The default setting is to block autoplay.
If not, then you can change that by going to [Settings], and search for "Autoplay" in the searchbox. Then click on [Settings...]

Chromium browsers

You can quickly access site specific settings by clicking on the small icon to the left of the website name in the address bar.

Brave

Open Danbooru and click on the small symbol in the address bar and click Site Settings.
At the top you will find Autoplay. Select block.

Chrome

No autoplay block support, but you can disable sound per site.
Open Danbooru and click on the small symbol in the address bar and click Site Settings.
Scroll down to Sound and click mute.
This will mute all Danbooru tabs by default. Unmuting can simply be done with rightclicking on a tab and clicking Unmute Site.
Don't forget to mute the site again afterwards.

Edge

¯\_(ツ)_/¯
No support for either, so you will have to use an extension.

See below

Updated

Edge has autoplay block support, with 'allow', 'limit', and 'block. 'Limit' means media will play depending on how often you visit the site. When blocking, there is an allow list.

edge://settings/content/mediaAutoplay

Veraducks said:

What browser? I’ve been trying to do that for ages because I hate getting earraped half a dozen times when banning shitty hentai videos.

Chrome and Brave as Gabriel explained, the Brave settings also work on mobile.

HyphenSam said:

Edge has autoplay block support, with 'allow', 'limit', and 'block. 'Limit' means media will play depending on how often you visit the site. When blocking, there is an allow list.

edge://settings/content/mediaAutoplay

Doesn't work for javascript (therefore, for flash).

I think danbooru should offer a flash autoplay option in settings. (Maybe two options, a ruffle autostart, and a flash autoplay.)

1