您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a button to view the API reference on the Roblox Wiki instead of RobloxDev
// ==UserScript== // @name RobloxDev to Roblox Wiki API Reference // @description Adds a button to view the API reference on the Roblox Wiki instead of RobloxDev // @version 1.3 // @grant none // @match *://www.robloxdev.com/api-reference/* // @namespace Blupo // ==/UserScript== (function () { "use strict"; var buttonAlreadyExists = document.getElementById("robloxwiki-btn"); if (buttonAlreadyExists) { return true }; var text = "View on the Roblox Wiki"; var button = document.createElement("a"); button.setAttribute("class", "btn secondary-btn"); button.setAttribute("id", "robloxwiki-btn"); button.setAttribute("style", "border-radius: 2px; color: #00a2ff;"); button.setAttribute("href", "https://wiki.roblox.com/index.php?title=API:Class/" + window.location.href.match('api\-reference\/(property|class|event|function|callback)\/(.+)')[2] + "&studiomode=true"); var buttonText = document.createTextNode(text); button.appendChild(buttonText); var apiContent = document.getElementsByClassName("api-content")[0]; if (!apiContent) { return true }; apiContent.insertAdjacentElement("beforebegin", button); }());