Professional Documents
Culture Documents
Wa
Wa
Function getElementByXpath(path) {
Document.onclick = function(){
createSpamButton();
};
Function createSpamButton () {
If(document.getElementById(‘spamButton’) != null)
Return;
If(composeBar == null)
Return;
composeBar.oninput = function(){
editSpamButton();
};
spamButton.setAttribute(“id”, “spamButton”);
spamButton.style.fontSize = ‘100%’;
composeBar.append(spamButton);
editSpamButton();
Function sendMessage () {
Bubbles: true
});
Input.innerHTML = message;
Input.dispatchEvent(evt);
getElementByXpath(“//*[@id=\”main\”]/footer/div[1]/div[3]/button”).click();
Function doSpam(element) {
Return;
Window.alert(‘iseng banget sih spam ke orang. Jangan Lupa pencet tombol berhenti dibawah,
kasian orang nya wkwk’);
repeatingSpamFunction = window.setInterval(function(){
sendMessage();
}, interval);
} else {
Window.clearInterval(repeatingSpamFunction);
editSpamButton();
Function editSpamButton(){
spamButton.style.cursor = ‘not-allowed’;
spamButton.style.color = ‘#D3D3D3’;
spamButton.onclick = null;
} else {
spamButton.style.cursor = ‘pointer’;
spamButton.style.color = ‘#039be5’;
spamButton.onclick = function(){
doSpam(this);
};