您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
不加载视频播放页面,直接显示青年大学习结束图片
// ==UserScript== // @name 直接显示青年大学习结束图片 // @namespace net.myitian.js.QuickEndDaxuexi // @version 0.1919810 // @description 不加载视频播放页面,直接显示青年大学习结束图片 // @author Myitian // @license Unlicensed // @match *://h5.cyol.com/special/daxuexi/*/index.html* // @match *://h5.cyol.com/special/daxuexi/*/m.html* // @run-at document-body // @grant none // ==/UserScript== var href = window.location.href; if (href.includes("index.html")) { document.querySelector("iframe").src = `data:text/html,<body style="margin:0"><img style="width:100%;height:100%" src="${href.substring(0, href.lastIndexOf("/"))}/images/end.jpg"></body>`; } else { document.documentElement.innerHTML += `<body style="margin:0;z-index:114514"><img style="width:100%;height:100%" src="${href.substring(0, href.lastIndexOf("/"))}/images/end.jpg"></body>`; }