您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replace download links with direct ones
// ==UserScript== // @name MCPEDL Direct Download // @namespace FrostyMCPEDLDirect // @version 0.1.1 // @license MIT // @description Replace download links with direct ones // @author frostice482 // @match https://mcpedl.com/* // @icon https://mcpedl.com/favicon.ico // @grant none // @noframes // ==/UserScript== let model function update() { const curModel = __NUXT__.state.slug.model if (curModel === model) return model = curModel const list = document.getElementsByClassName('downloads-list')[0] list.replaceChildren() for (let { file, name } of model.downloads) { const li = list.appendChild(document.createElement('li')) const a = li.appendChild(document.createElement('a')) const url = new URL(file, location.origin) if (url.pathname.startsWith('/leaving')) { file = url.searchParams.get('url') li.appendChild(document.createElement('div')) .appendChild(document.createElement('small')) .textContent = 'Redirect to ' + file } a.target = '_blank' a.textContent = name a.href = file } } setInterval(update, 1000)
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址