您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
add next
当前为
// ==UserScript== // @name imomoe // @version 0.0.1 // @include http://www.imomoe.io/player/* // @include https://api.xiaomingming.org/cloud/* // @description add next // @namespace https://gf.qytechs.cn/users/164996a // ==/UserScript== const m = document.querySelector('iframe[src]') const c = document.querySelector('div.dplayer-icons-right') const dp = unsafeWindow.dp if (dp) { dp.play() const next = () => { window.top.postMessage('next', '*') } c.insertAdjacentHTML( 'afterbegin', "<button id='next' class='dplayer-quality dplayer-icon dplayer-quality-icon'>下一集</button>" ) const b = document.querySelector('#next') b.addEventListener('click', next) window.addEventListener('message', e => { if (e.data === 'next unavailable') { b.remove() } }) dp.on('ended', next) } else if (m) { m.focus() let a, b for (let i of document.querySelectorAll('.movurls')) { a = [...i.querySelectorAll('a')] b = a.findIndex(i => i.href === window.location.href) if (b === -1) continue a = a[b + 1] if (a) a = a.href break } document .querySelectorAll('.movurls a') .forEach(i => i.setAttribute('target', '_self')) window.addEventListener('message', e => { if (e.data === 'next') { window.location.href = a } }) ;(async () => { await new Promise(r => setTimeout(r, 5000)) if (!a) m.contentWindow.postMessage('next unavailable', '*') })() }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址