您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds download button on UCS site
// ==UserScript== // @name Add UCS download button // @namespace http://ucs.piugame.com/ // @version 1.1 // @description Adds download button on UCS site // @author Conjo // @match https://ucs.piugame.com/ucs_share?*wr_id=* // @match https://ucs.piugame.com/bbs/board.php?*wr_id=* // @grant none // ==/UserScript== (function() { 'use strict'; function addDownloadButton() { const buttons = document.querySelector(".btn_wrap > div:nth-child(1)"); const downloadButton = buttons.lastElementChild.cloneNode(true); const downloadURL = new URL("https://ucs.piugame.com/ucs_player/file.php"); const qstrings = new URLSearchParams(window.location.search) downloadURL.search = "wr_id=" + qstrings.get("wr_id") ; downloadButton.children[0].href=downloadURL.pathname + downloadURL.search; downloadButton.getElementsByClassName("tt")[0].innerHTML = "Download" buttons.append(downloadButton); } addDownloadButton(); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址