您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Makes modded gamemodes appear on top of the room list
// ==UserScript== // @name Bonk modded rooms on top // @version 1.2 // @author Salama // @description Makes modded gamemodes appear on top of the room list // @match https://*.bonk.io/gameframe-release.html // @run-at document-end // @grant none // @supportURL https://discord.gg/Dj6usq7ww3 // @namespace https://gf.qytechs.cn/users/824888 // ==/UserScript== let table = document.getElementById("roomlisttable"); let vanillaModes = ["Classic", "Arrows", "Death Arrows", "Grapple", "Football", "VTOL"]; let style = document.createElement('style'); document.head.appendChild(style); style.outerHTML=`<style>.MODDEDPOSHANDLED{opacity:1 !important;}</style>` table.addEventListener('DOMNodeInserted', e => { if(e.target.nodeName !== '#text' || [...e.target.parentNode.parentNode.children].indexOf(e.target.parentNode) !== 2 || e.target.parentNode.parentNode.classList.contains("MODDEDPOSHANDLED")) return; e.target.parentNode.parentNode.classList.add("MODDEDPOSHANDLED"); if(table.children[0].children.length === 0) return; if(!vanillaModes.includes(e.target.data)) table.children[0].insertBefore(e.target.parentNode.parentNode, table.children[0].children[[...table.children[0].children].findIndex(i => {return vanillaModes.includes(i.children[2].textContent)})]); }); console.log("Made modded gamemodes appear on top of the room list")
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址