Youtubeで音量調整が必要そうな場合に警告を表示
// ==UserScript== // @name youtube_volume_alert // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match https://www.youtube.com/watch?v=* // @grant none // ==/UserScript== var result = document.evaluate('//video', document, null, 7, null); result.snapshotItem(0).addEventListener('play', function () { if (result.snapshotItem(0).volume >= 0.9) { alert("音量が90%以上に設定されています"); } else if (result.snapshotItem(0).volume <= 0.1) { alert("音量が10%以下に設定されています"); } });