您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Disables autoplay and auto next vid on dailmotion
当前为
// ==UserScript== // @name Dailymotion disable autoplay // @namespace http://greasyfork.icu/users/649 // @version 1.0.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 // ==/UserScript== (function() { 'use strict'; var Util = { q: function(query, context) { return (context || document).querySelector(query); }, qq: function(query, context) { return [].slice.call((context || document).querySelectorAll(query)); } }; waitForElems({ sel: 'body.has-skyscraper', stop: true, context: document, onmatch: function() { Util.q('.dmp_PlaybackButton').click(); } }); waitForElems({ sel: '.dmp_ComingUpEndScreen:not(.dmp_is-hidden) .dmp_ComingUpEndScreen-cancel', stop: true, onmatch: function(cancel) { cancel.click(); } }); })();