Re-enable Spellcheck on Duolingo

This re-enables spellcheck on textareas on Duolingo where it's disabled

  1. // ==UserScript==
  2. // @name Re-enable Spellcheck on Duolingo
  3. // @namespace mailto:gooseserbus@gmail.com
  4. // @version 0.4
  5. // @description This re-enables spellcheck on textareas on Duolingo where it's disabled
  6. // @author GooseSerbus
  7. // @match http*://www.duolingo.com/*
  8. // @license MIT
  9. // ==/UserScript==
  10.  
  11. function loop() {
  12. enableSpellCheck();
  13. setTimeout(function() {
  14. loop();
  15. }, 1000);
  16. }
  17.  
  18. function enableSpellCheck() {
  19. var snapshot = document.evaluate('//@spellcheck', document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  20. for (var i = 0; i < snapshot.snapshotLength; ++i) {
  21. snapshot.snapshotItem(i).nodeValue = 'true';
  22. }
  23. }
  24.  
  25. loop();

QingJ © 2025

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