Duolingo - Re-Enable Textareas

makes the textareas in lessons selectable again after checking the result

  1. // ==UserScript==
  2. // @name Duolingo - Re-Enable Textareas
  3. // @description makes the textareas in lessons selectable again after checking the result
  4. // @version 0.1
  5. // @author tiramisues
  6. // @match https://www.duolingo.com/*
  7. // @grant none
  8. // @namespace https://gf.qytechs.cn/users/158976
  9. // ==/UserScript==
  10.  
  11.  
  12. new MutationObserver(function(mutations) {
  13. if(window.location.href.indexOf('practice') != -1 || window.location.href.indexOf('skill') != -1 )
  14. mutations.forEach(function(mutation){
  15. if(mutation.attributeName == "disabled"){
  16. var textarea = document.querySelector('[data-test="challenge-translate-input"]');
  17. textarea.removeAttribute('disabled');
  18. textarea.setAttribute('readonly','readonly');
  19. }
  20. });
  21. }).observe(document.body, {childList: true, subtree: true, attributes: true });

QingJ © 2025

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