您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add install button on script Code, Versions and Feedback page.
当前为
// ==UserScript== // @id greasy-fork-more-install-button@loucypher // @name Greasy Fork镜像 - More Install button // @namespace https://github.com/LouCypher/userscripts // @description Add install button on script Code, Versions and Feedback page. // @version 1.0 // @author LouCypher // @license WTFPL // @contributionURL http://loucypher.github.io/userscripts/donate.html?Greasy+Fork+-+More+Install+button // @resource CHANGELOG https://raw.github.com/LouCypher/userscripts/master/greasyfork/install-button/CHANGELOG.txt // @resource LICENSE https://raw.github.com/LouCypher/userscripts/master/licenses/WTFPL/LICENSE.txt // @include https://gf.qytechs.cn/scripts/*/code // @include https://gf.qytechs.cn/scripts/*/versions // @include https://gf.qytechs.cn/scripts/*/feedback // @grant none // ==/UserScript== /* This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What The Fuck You Want * To Public License, Version 2, as published by Sam Hocevar. See * http://www.wtfpl.net/ for more details. */ var header, title; header = document.querySelector("#script-info header") if (header) title = header.querySelector("h2"); if (title) { /* Get CSRF authenticity token */ var csrfToken = document.head.children["csrf-token"]; var authToken = csrfToken ? "?authenticity_token=" + encodeURIComponent(csrfToken.content) : null; /* Add Install button */ var scriptId = location.href.match(/\d+/); var span = header.insertBefore(document.createElement("span"), title); var link = span.appendChild(document.createElement("a")); link.href = "/scripts/" + scriptId + "/code.user.js"; link.dataset.pingUrl = "/scripts/" + scriptId + "/install-ping" + (authToken ? authToken : ""); link.className = "install-link"; link.textContent = "Install"; link.style = "float:right"; } else throw new Error("Sam Ting Wen Wong!"); // Terminate
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址