songl.io multiplayer player name style patch

A script to prevent funny people from spamming with their player player names.

Od 15.05.2025.. Pogledajte najnovija verzija.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        songl.io multiplayer player name style patch
// @namespace   Freebee1693
// @match       https://songl.io/*
// @grant       none
// @version     1.0.0-GitHub
// @author      Freebee1693
// @license     Apache License 2.0
// @description A script to prevent funny people from spamming with their player player names.
// ==/UserScript==

setInterval(() => {
  existingStylePatch = document.querySelector("#songlio_style_patch");
  stylePatch = existingStylePatch ?? document.createElement('style');
  stylePatch.innerHTML = `
  .solo-game__rankings__item__name {
      max-width: 15rem;
  }
  `;
  stylePatch.id = "songlio_style_patch";
  if( !existingStylePatch ) document.head.appendChild(stylePatch);
}, 5);