Advertisement
ConcealedReal

Songless Reveal Answer Hack

May 9th, 2024 (edited)
785
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/songless
  8. // @icon         https://www.google.com/s2/favicons?sz=64&domain=lessgames.com
  9. // @grant        none
  10. // ==/UserScript==
  11.  
  12. ! function () {
  13.     window.prevAns = 'song';
  14.     function e() {
  15.         if (window.__next) {
  16.             var r = Object.values(__next.firstChild)[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.memoizedState.track;
  17.             if (!(r?.length > 1)) return "na";
  18.             prevAns = r;
  19.             Array.from(document.querySelectorAll("p"))
  20.                 .filter((e => e.textContent.toLowerCase()
  21.                     .includes(prevAns.toLowerCase())))[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