您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Flash Collector 辅助脚本,用于解除 4399.com 的源站播放限制
当前为
- // ==UserScript==
- // @name Flash Collector for 4399
- // @namespace Flash Collector Scripts
- // @match *://*.4399.com/*
- // @grant none
- // @license MPL-2.0
- // @version 1.0
- // @author Cnotech
- // @description Flash Collector 辅助脚本,用于解除 4399.com 的源站播放限制
- // ==/UserScript==
- function next() {
- let m=document.location.hash.match(/next=[^&]+/)
- if(m==null) return null
- return m[0].split("=")[1]
- }
- function jump(url) {
- console.log(`Jump to ${url}`)
- document.location.href=url
- }
- function main() {
- //读取hash
- const hash=document.location.hash
- //匹配标记
- let m=hash.match(/#flash-collector-\d/)
- if(m==null) return
- let step=Number(m[0].slice(-1))
- //状态机
- const cur=document.location.href.split("#")[0]
- switch (step) {
- case 0:
- //跳转到 4399 首页
- jump(`http://www.4399.com/#flash-collector-1?next=${cur}`)
- break
- case 1:
- //跳回真实页面
- let n=next()
- if(n) jump(n)
- break
- }
- }
- main()
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址