0% found this document useful (0 votes)
112 views2 pages

Bubble.am Auto-Split Macro Script

Uploaded by

pr575504
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
112 views2 pages

Bubble.am Auto-Split Macro Script

Uploaded by

pr575504
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

// ==UserScript==

// @name [Link] macro Creado por Almeja SF (AlmeZz)


// @namespace [Link]
// @version 1.2
// @description shift - autosplit | 1,2,3,4,5 - splits
// @author enderror + mod
// @match *://[Link]/*
// @run-at document-start
// @grant none
// ==/UserScript==

let splitInterval = null;


let splitSwitch = false;

function split(times) {
for (let i = 0; i < times; i++) {
setTimeout(function () {
$("body").trigger($.Event("keydown", { keyCode: 32 }));
$("body").trigger($.Event("keyup", { keyCode: 32 }));
}, 50 * i);
}
}

function keydown(e) {
const chat = [Link]("#chat_textbox");
if (chat === [Link]) return;

const key = [Link]().toLowerCase();

switch (key) {
case "shift":
if (splitSwitch) break;
splitSwitch = true;
splitInterval = setInterval(() => {
$("body").trigger($.Event("keydown", { keyCode: 32 }));
$("body").trigger($.Event("keyup", { keyCode: 32 }));
}, 4);
break;

case "1":
split(1);
break;

case "2":
split(2);
break;

case "3":
split(3);
break;

case "4":
split(4);
break;

case "5":
split(5);
break;
}
}

function keyup(e) {
const chat = [Link]("#chat_textbox");
if (chat === [Link]) return;

const key = [Link]().toLowerCase();

switch (key) {
case "shift":
clearInterval(splitInterval);
splitSwitch = false;
break;
}
}

[Link]("keydown", keydown);
[Link]("keyup", keyup);

[Link]("Macro cargado sin QASD");

You might also like