mywordle cheat

get the answer for a mywordle

  1. // ==UserScript==
  2. // @name mywordle cheat
  3. // @description get the answer for a mywordle
  4. // @icon https://i.imgur.com/ORAaPzD.png
  5. // @version 1
  6.  
  7. // @author VillainsRule
  8. // @namespace https://github.com/VillainsRule/Greasyfork
  9.  
  10. // @match *://mywordle.strivemath.com/?word=*
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. document.body.insertAdjacentHTML('beforeend', `
  15. <style>
  16. .mwc {
  17. position: absolute;
  18. top: 10px;
  19. left: 15px;
  20. font-size: 16px;
  21. }
  22.  
  23. .mwc-get {
  24. cursor: pointer;
  25. text-decoration: underline;
  26.  
  27. }
  28. </style>
  29.  
  30. <span class="mwc mwc-get">get answer</span>
  31. `);
  32.  
  33. document.querySelector('.mwc-get').onclick = () => {
  34. let root = document.querySelector('#root > div');
  35. let reactName = Object.keys(root).find(key => key.startsWith('__reactFiber$'));
  36. let reactData = root[reactName];
  37. let word = reactData.return.updateQueue.lastEffect.next.next.deps[0].word;
  38.  
  39. if (!word) alert('it\'s likely the cheat was "patched", open an issue on github\nhttps://github.com/VillainsRule/Greasyfork/issues');
  40.  
  41. let text = document.querySelector('.mwc');
  42.  
  43. text.innerHTML = `answer: <u>${word}</u>`;
  44. text.classList.remove('mwc-get');
  45. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址