您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
..
当前为
// ==UserScript== // @name Add Server Button Adder For minecraftpocket-servers.com // @namespace http://tampermonkey.net/ // @version 1.0.1 // @author Armağan#2448 // @match https://minecraftpocket-servers.com/servers/* // @match https://minecraftpocket-servers.com // @description .. // @grant none // ==/UserScript== (function() { 'use strict'; //Created By Armağan#2448; //Add Server Button Adder For minecraftpocket-servers.com var ipadresses = []; Array.from(document.getElementsByClassName("btn btn-secondary btn-sm clipboard")).forEach((item, index, array)=>{ ipadresses.push(array[index].getAttribute("data-clipboard-text")); }) console.log(ipadresses); var htmlblocks = []; Array.from(document.getElementsByTagName("td")).forEach((item, index, array)=>{ if (!item.getAttribute("class")){ htmlblocks.push(Array.from(Array.from(item.children)[1].children)[0]); } }) console.log(htmlblocks) htmlblocks.forEach((item, index, array)=>{ var usefullip = "minecraft://?addExternalServer="+ipadresses[index]+"|"+ipadresses[index]; if (ipadresses[index]) { item.innerHTML += `<div class="d-inline-block mt-2"><button type="button" role="button" class="btn btn-secondary btn-sm"><a href="`+usefullip+`" style="color: white; text-decoration: none;">Add Server</a></button></div>` } }); })();