Last active
November 27, 2022 08:25
-
-
Save icepy/f593697e2ccc84c5d71867b038ddfc05 to your computer and use it in GitHub Desktop.
beacon done
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Beacon | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author icepy | |
// @match https://app.thebeacon.gg/character-selection | |
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// write here | |
const keys = [ | |
]; | |
const nums = setInterval(() => { | |
const alls = document.querySelector('.all-characters'); | |
if (alls){ | |
for(let ele of alls.children){ | |
if (ele.nodeName === 'DIV'){ | |
const el = ele.children[1].children[1] | |
const val = el.innerText; | |
if (keys.indexOf(val) > -1){ | |
el.style.color = 'red'; | |
} else { | |
el.style.color = ''; | |
} | |
} | |
if (ele.nodeName === 'BUTTON'){ | |
const el = ele.children[1]; | |
const val = el.innerText; | |
if (keys.indexOf(val) > - 1){ | |
el.style.color = 'red'; | |
} else { | |
el.style.color = ''; | |
} | |
} | |
} | |
} | |
}, 1000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment