// ==UserScript== // @name Cellcraft.io - Top Mass // @namespace http://tampermonkey.net/ // @version 1.0.1 // @description ez // @author Attack // @match https://cellcraft.io/ // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant unsafeWindow // @run-at document-start // @license MIT // @downloadURL none // ==/UserScript== (() => { let topScore = 0; const fillText = CanvasRenderingContext2D.prototype.fillText, fpsBox = document.getElementById("fpsBox"), table = document.createElement("table"), tbody = document.createElement("tbody"), tr = document.createElement("tr"); fpsBox.style.display = 'flex'; fpsBox.appendChild(table); table.appendChild(tbody); tbody.appendChild(tr); const toValue = text => { return`${text}`.replace(/\B(?=(\d{3})+(?!\d))/g, ","); }, refr = () => { tr.innerHTML = `