Experience on Writing a Userscript Using JavaScript for drrr.com
If you're using Firefox, first add }
else if(room.host === chat.from.id && kero[0]=="!push"){
cohost.push(sayn);
}
else if(room.host === chat.from.id && kero[0]=="!addbad"){
sambal.push(sayn);
}
else if(chat.message == "!rule"){
$.post("#",{message: "Etika room radio", url:"https://pastebin.com/raw/Qm4FpY0c"});
}
else if(chat.message == "!sensus"){
$.post("#",{message: "sensus!", url:"https://goo.gl/forms/7ILfufqN09wqNIqt2"});
}
else if(chat.message == "!shrug"){
$.post("#",{message: "/me ┐( ̄- ̄;)┌"});
}
else if(kero[0]=="!flip"){
$.post("#",{message: "/me (╯°□°)╯︵ " + sayn});
}
});
$(window).on('room.chat.me', function(event, chat) {
sgm = chat.content.replace(/\s+/g, "");
sgm = sgm.replace(/(.)\1{1,}/ig, '$1');
regex = new RegExp(sambal.join("|"), 'i');
if(regex.test(sgm) === true){
$.post("#",{kick:chat.from.id});
}
});
//credit: nasitelur, myself, n0bu, godie, and many "radio" room users who were willing to be used as guinea pigs.
//end of copy
else if(room.host === chat.from.id && kero[0]=="!push"){
cohost.push(sayn);
}
else if(room.host === chat.from.id && kero[0]=="!addbad"){
sambal.push(sayn);
}
else if(chat.message == "!rule"){
$.post("#",{message: "Etika room radio", url:"https://pastebin.com/raw/Qm4FpY0c"});
}
else if(chat.message == "!sensus"){
$.post("#",{message: "sensus!", url:"https://goo.gl/forms/7ILfufqN09wqNIqt2"});
}
else if(chat.message == "!shrug"){
$.post("#",{message: "/me ┐( ̄- ̄;)┌"});
}
else if(kero[0]=="!flip"){
$.post("#",{message: "/me (╯°□°)╯︵ " + sayn});
}
});
$(window).on('room.chat.me', function(event, chat) {
sgm = chat.content.replace(/\s+/g, "");
sgm = sgm.replace(/(.)\1{1,}/ig, '$1');
regex = new RegExp(sambal.join("|"), 'i');
if(regex.test(sgm) === true){
$.post("#",{kick:chat.from.id});
}
});
//credit: nasitelur, myself, n0bu, godie, and many "radio" room users who were willing to be used as guinea pigs.
//end of copy