您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Disables autoplay and auto next vid on dailymotion
// ==UserScript== // @name Dailymotion disable autoplay // @namespace https://greasyfork.org/users/649 // @version 1.1.4 // @description Disables autoplay and auto next vid on dailymotion // @author Adrien Pyke // @match *://www.dailymotion.com/video/* // @grant none // @require https://cdn.jsdelivr.net/gh/fuzetsu/userscripts@ec863aa92cea78a20431f92e80ac0e93262136df/wait-for-elements/wait-for-elements.js // ==/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(); } }); })();