SHARE
TWEET

Untitled

a guest May 22nd, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Change font color
  2. // Change chat text
  3.  
  4. window.chatText = "Exposing modern dresses chustaara madam?"
  5. window.mo = {};
  6. function setup() {
  7.   var b = document.querySelector("body");
  8.   window.mo = new MutationObserver(onNewNode);
  9.   window.mo.observe(b, {
  10.       attributes: true,
  11.       childList: true,
  12.       characterData: true
  13.     });
  14. }
  15.  
  16. function stop() {
  17.   window.mo.disconnect();
  18. }
  19.  
  20. function trigger(max) {
  21.   var girls = document.getElementsByClassName("topcmm-123flashchat-common-userlist-block-single-girl-img");
  22.  
  23.   var doubleClickEvent = new Event('dblclick');
  24.   var i = 1;
  25.   for(const girl of girls) {
  26.     const root = girl.parentElement.parentElement;
  27.     const info = root.children[2];
  28.  
  29.     root.dispatchEvent(doubleClickEvent);
  30.     i++;
  31.     if(i > max) {
  32.       break;
  33.     }
  34.     // const nameElement = girls[0].parentElement.parentElement.children[2].children[1];
  35.     // const name = nameElement.textContent;
  36.   }
  37. }
  38.  
  39. function onNewNode(mutations) {
  40.   for(const m of mutations) {
  41.     const addedNodes = m.addedNodes;
  42.     for(const n of addedNodes) {
  43.       // console.log(n);
  44.       const operations = n.children[0].children[0].children[1].children[0].children[1].children[2];
  45.  
  46.       const ta = operations.children[1].children[0];
  47.       ta.value = window.chatText;
  48.  
  49.       const btn = operations.children[2];
  50.       btn.click();
  51.     }
  52.   }
  53. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top