Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Change font color
- // Change chat text
- window.chatText = "Exposing modern dresses chustaara madam?"
- window.mo = {};
- function setup() {
- var b = document.querySelector("body");
- window.mo = new MutationObserver(onNewNode);
- window.mo.observe(b, {
- attributes: true,
- childList: true,
- characterData: true
- });
- }
- function stop() {
- window.mo.disconnect();
- }
- function trigger(max) {
- var girls = document.getElementsByClassName("topcmm-123flashchat-common-userlist-block-single-girl-img");
- var doubleClickEvent = new Event('dblclick');
- var i = 1;
- for(const girl of girls) {
- const root = girl.parentElement.parentElement;
- const info = root.children[2];
- root.dispatchEvent(doubleClickEvent);
- i++;
- if(i > max) {
- break;
- }
- // const nameElement = girls[0].parentElement.parentElement.children[2].children[1];
- // const name = nameElement.textContent;
- }
- }
- function onNewNode(mutations) {
- for(const m of mutations) {
- const addedNodes = m.addedNodes;
- for(const n of addedNodes) {
- // console.log(n);
- const operations = n.children[0].children[0].children[1].children[0].children[1].children[2];
- const ta = operations.children[1].children[0];
- ta.value = window.chatText;
- const btn = operations.children[2];
- btn.click();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement