Warning: fopen(/www/sites/update.greasyfork.icu/index/store/forever/7c2407b3d5aac392b7703d0bb83fab57.js): failed to open stream: No space left on device in /www/sites/update.greasyfork.icu/index/scriptControl.php on line 65
// ==UserScript== // @name Dailymotion disable autoplay // @namespace https://greasyfork.org/users/649 // @version 1.1 // @description Disables autoplay and auto next vid on dailmotion // @author Adrien Pyke // @match *://www.dailymotion.com/video/* // @grant none // @require https://cdn.rawgit.com/fuzetsu/userscripts/477063e939b9658b64d2f91878da20a7f831d98b/wait-for-elements/wait-for-elements.js // @downloadURL none // ==/UserScript== (() => { 'use strict'; const Util = { q(query, context = document) { return context.querySelector(query); }, qq(query, context = document) { return Array.from(context.querySelectorAll(query)); } }; waitForElems({ sel: 'body.has-skyscraper', stop: true, context: document, onmatch() { Util.q('.dmp_PlaybackButton').click(); } }); waitForElems({ sel: '.dmp_ComingUpEndScreen:not(.dmp_is-hidden) .dmp_ComingUpEndScreen-cancel', stop: true, onmatch(cancel) { cancel.click(); } }); })();