Long usernames fix!
Alright, since the anikoto team seems not to care about how long usernames ruin mobile UI, or maybe they don't know or waiting to fix it in the next update, eitherway, I took stuff into my own hands
Here is a script that should fix it for y'all
Here is a script that should fix it for y'all
// ==UserScript== // @name Truncate long usernames // @namespaceLink hidden
// @version 1.0 // @description limits width of usernames on Anikoto // @matchLink hidden
// @run-at document-idle // @grant none // ==/UserScript== (() => { 'use strict'; const MAX_WIDTH = '180px'; // Adjust so it works best for your preference function updateUsernames() { document.querySelectorAll('.ak-id').forEach((element) => { element.style.setProperty('display', 'block', 'important'); element.style.setProperty('width', MAX_WIDTH, 'important'); element.style.setProperty('max-width', '100%', 'important'); element.style.setProperty('min-width', '0', 'important'); element.style.setProperty('box-sizing', 'border-box', 'important'); element.style.setProperty('overflow', 'hidden', 'important'); element.style.setProperty('white-space', 'nowrap', 'important'); element.style.setProperty('text-overflow', 'ellipsis', 'important'); }); } setTimeout(updateUsernames, 1000); setInterval(updateUsernames, 1000); })();
Note: Please take a moment to read the comment rules before posting.
15 Comments
Sort by
You must be login to post a comment
