Advertisement
ConcealedReal

Wordless Show Answer Hack

May 9th, 2024
877
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Wordless Reveal Answer Hack
  3. // @namespace    http://tampermonkey.net/
  4. // @version      Beta
  5. // @description  Reveals answer in Wordless on lessgames.com
  6. // @author       Splxff
  7. // @match        https://lessgames.com/wordless
  8. // @icon         https://www.google.com/s2/favicons?sz=64&domain=lessgames.com
  9. // @grant        none
  10. // ==/UserScript==
  11.  
  12. ! function () {
  13.     function e() {
  14.         if (window.__next) {
  15.             var t = Object.values(window.__next)[0].child.child.child.sibling.child.stateNode._reactInternals.child.child.child.child.child.child.child.child.child.child.child.child.child.child.child.child.return.return.return.return.return.return.return.sibling.child.stateNode.containerInfo.offsetParent.children[6].children[0]
  16.                 , n = Object.values(t)[0].return.return.return.return.return.return.return.return.return.return.alternate.child.child.child.return.sibling.alternate.sibling.child.child.child.child.child.return.sibling.child.child.child.child.child.child.child.sibling.stateNode
  17.                 , r = Object.values(n)[0].return.return.return.return.return.memoizedState.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.memoizedState.current;
  18.             if (!(r.length > 1)) return "na";
  19.             Array.from(document.querySelectorAll("p"))
  20.                 .filter((e => e.textContent.toLowerCase()
  21.                     .includes("word")))[0].textContent = r, Array.from(document.querySelectorAll("p"))
  22.                 .filter((e => e.textContent.toLowerCase()
  23.                     .includes("less")))[0].textContent = ""
  24.         } else e()
  25.     }
  26.     setInterval((() => {
  27.         e()
  28.     }), 2e3);
  29.     e();
  30. }();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement