Greasy Fork is available in English.
A stupidly small script for a stupidly small problem. Good for WDB.
当前为
// ==UserScript==
// @name Center Stage Chats
// @namespace http://tampermonkey.net/
// @version 2025-09-08-1
// @description A stupidly small script for a stupidly small problem. Good for WDB.
// @author https://github.com/xskutsu
// @license AGPL-3.0-or-later
// @match *://bonk.io/gameframe-release.html
// @match *://bonkisback.io/gameframe-release.html
// @match *://multiplayer.gg/physics/gameframe-release.html
// @icon https://www.google.com/s2/favicons?sz=64&domain=bonk.io
// @run-at document-start
// @grant GM_addStyle
// ==/UserScript==
void (function () {
"use strict";
window.addEventListener("DOMContentLoaded", function () {
const chatContainer = document.getElementById("ingamechatbox");
if (!chatContainer) {
return;
}
new MutationObserver(function () {
chatContainer.style.setProperty("height", "148px", "important");
}).observe(chatContainer, { attributes: true, attributeFilter: ["style"] });
chatContainer.style.cssText = `
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 20px;
margin: 0px;
text-align: center;
zoom: 80%;`;
const zIndex = getComputedStyle(document.getElementById("ingamecountdown")).zIndex;
chatContainer.style.zIndex = (zIndex === "auto" ? 0 : parseInt(zIndex, 10)) + 1;
GM_addStyle(`
#ingamechatcontent > div {
background-color: #00000018;
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
}
`);
});
})();