// ==UserScript== // @name Karafun Style // @namespace http://tampermonkey.net/ // @version 2025-11-19 // @description try to take over the world! // @author You // @match https://www.karafun.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=karafun.com // @grant none // ==/UserScript==
(function() { 'use strict';
let karafunCode = window.location.pathname.match("\/(\\d+)\/")[1];
if (karafunCode == null)
return;
let style = `
/ HIDE SESSION ID /
opacity: 0; }
position: absolute; inset: 0; width: 100%; padding-top: 20px; }
display: none; }
font-size: 1.8rem; line-height: unset; }
font-size: 2rem; line-height: unset; }
font-size: 2.2rem; line-height: unset; }
padding-bottom: 10px; }
width: 6rem; height: 6rem; }
width: 8rem; height: 8rem; }
position: absolute; bottom: 5px; right: 5px; z-index: 99999; font-size: 1rem; padding: 5px 10px; } `;
let styleElement = document.createElement("style");
styleElement.innerHTML = style;
document.head.appendChild(styleElement);
let queueFullscreenButton = document.createElement("button");
queueFullscreenButton.id = "queue-fullscreen-button";
queueFullscreenButton.className = "button primary button-m rounded-[26px]";
queueFullscreenButton.innerHTML = "bi-Queue";
queueFullscreenButton.onclick = () => {
let mainElement = document.getElementById("mainVue");
if (!mainElement)
return;
mainElement.classList.toggle("show-queue-fullscreen");
};
document.body.appendChild(queueFullscreenButton);
})();