// ==UserScript== // @name No Usernames // @version 1.1.0 // @author Blu // @description A userscript to remove all usernames from ingame // @match https://bonk.io/gameframe-release.html // @run-at document-start // @grant none // @namespace https://greasyfork.org/users/826975 // @downloadURL none // ==/UserScript== // for use as a userscript ensure you have Excigma's code injector userscript // https://greasyfork.org/en/scripts/433861-code-injector-bonk-io const injectorName = `NoUsernames`; const errorMsg = `Whoops! ${injectorName} was unable to load. This may be due to an update to Bonk.io. If so, please report this error! This could also be because you have an extension that is incompatible with \ ${injectorName}`; // global variables for mod contained within object under this namespace window[injectorName] = { players: { usernames: { visible: true, alpha: 1 }, visible: true, alpha: 1 }, chat: { visible: true, alpha: 1 } }; function injector(src){ let newSrc = src; let guiCSS = document.createElement('style'); guiCSS.innerHTML = ` .${injectorName}Menu { background-color: #cfd8cd; width: calc(35.2vw - 400px); min-width: 154px; max-width: 260px; position: absolute; right: 1%; top: 60px; border-radius: 7px; display: unset; transition: ease-in-out 100ms; } #${injectorName}MenuCollapse { position: absolute; right: 3px; top: 3px; width: 26px; height: 26px; border-radius: 2px; text-transform: full-width; visibility: visible; } #${injectorName}MenuControls { width:100%; } .${injectorName}SubMenu { margin: 2%; background: rgba(94, 114, 90, .15); border-radius: 2px; } .${injectorName}SubMenu p { text-align: left; padding-left: 5%; margin: 0; } .${injectorName}SubMenu td:nth-child(2) { text-align: right; }`; document.getElementsByTagName('head')[0].appendChild(guiCSS); let gui = document.createElement('div'); document.getElementById('pagecontainer').appendChild(gui); gui.outerHTML = `
Players
| Visible | |||||
| Opacity | |||||
| Usernames 
 | |||||
Chat
| Visible | |
| Opacity |