您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
6/26/2025, 11:14:24 PM
// ==UserScript== // @name hydrus.app video controls // @namespace Violentmonkey Scripts // @match https://hydrus.app/* // @match https://dev.hydrus.app/* // @grant none // @version 1.1 // @author - // @license MIT // @description 6/26/2025, 11:14:24 PM // ==/UserScript== (async function() { const pswpItemsObserver = new MutationObserver((mutationList, observer) => { for (const mutation of mutationList) { if (mutation.type === "childList") { for (const node of mutation.addedNodes) { if (node.tagName !== "VIDEO") { continue } node.controls = true } } } }) const pwspObserver = new MutationObserver((mutationList, observer) => { for (const mutation of mutationList) { if (mutation.type === "childList") { for (const node of mutation.addedNodes) { if (!node.classList?.contains("pswp")) { continue } const pswpItems = node.querySelector("#pswp__items") pswpItemsObserver.observe(pswpItems, {childList: true, subtree: true}) pswpItems.querySelectorAll("video.pswp-video").forEach(e => {e.controls = true}) } } } }) pwspObserver.observe(document.body, {childList: true}) })()