// ==UserScript== // @name Fast Linesplit (like fast split) // @namespace Put your cursor on top of on of the dots and press U // @version 0.1 // @description try to take over the world!! // @author Net#1872 // @license GPL-3.0-or-later // @match https://cellcraft.io/ // @match https://agma.io/ // @grant none // @downloadURL none // ==/UserScript== var split = "U" window.addEventListener('keydown', keydown); setTimeout(function() { split = split.charCodeAt(0) }, 50) function tripleSplit(){ $("#canvas").trigger($.Event("keydown", { keyCode: 84})); $("#canvas").trigger($.Event("keyup", { keyCode: 84})); } function freezeKey() { $("#canvas").trigger($.Event("keydown", { keyCode: 70})); $("#canvas").trigger($.Event("keyup", { keyCode: 70})); } function keydown(event) { if(event.keyCode == split){ tripleSplit() setTimeout(freezeKey, 115) setTimeout(freezeKey, 165) } } $("head").append(``); //Credit to wynell for the window.innerHeight and window.innerWidth let [w, h] = [, window.innerHeight] $('body').append(`
`) $('#settingTab3,.rab-radius').click(function (e) { $('#roleSettings').css('display', 'block') $('#cLinesplitOverlay') .removeAttr('disabled') .parent() .parent() .css('display', 'block') }) $('.hotkey-col') .eq(1) .append( `Linesplit overlay