您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
一键多开
// ==UserScript== // @name 南昌大学 iptv 多开脚本 // @description 一键多开 // @version 0.1.0 // @author Viki (or vikiboss) (https://github.com/vikiboss) // @create 2020/12/4 // @lastmodified 2020/12/4 // @feedback-url https://github.com/Vikiboss/ncu-iptv-script/issues // @github https://github.com/vikiboss/ncu-iptv-script // @namespace ncu-iptv-script // @license MIT // @run-at document-end // @grant none // @include *://wyjx.ncu.edu.cn/* // @require https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js // ==/UserScript== (function () { "use strict"; var userDiv = $(".user-tools")[0]; userDiv.style.width = "480px"; var box = $("<button>多开</button>")[0]; box.style.width = "60px"; box.style.height = "20px"; box.style.border = "1px solid #3af"; box.style.marginLeft = "12px"; box.style.borderRadius = "3px"; const url = "http://wyjx.ncu.edu.cn/SPM/PC/themes/default/live.aspx"; var ids = [4, 46, 47, 6, 41, 48, 49, 12, 8, 13, 14, 22, 2]; box.onclick = () => { for (const id of ids) window.open(`${url}?id=${id}`); }; userDiv.append(box); })();