Re-enable Spellcheck on Duolingo

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

目前为 2020-02-27 提交的版本。查看 最新版本

// ==UserScript==
// @name         Re-enable Spellcheck on Duolingo
// @namespace    mailto:[email protected]
// @version      0.3
// @description  This re-enables spellcheck on textareas on Duolingo where it's disabled
// @author       GooseSerbus
// @match        http*://www.duolingo.com/*
// @require      http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @require      https://gf.qytechs.cn/scripts/5392-waitforkeyelements/code/WaitForKeyElements.js?version=19641
// @grant        none
// ==/UserScript==

function enableSpellCheck() {
    var snapshot = document.evaluate('//@spellcheck', document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);

    for (var i = 0; i < snapshot.snapshotLength; ++i)
    {
        snapshot.snapshotItem(i).nodeValue = 'true';
    }
}

enableSpellCheck();

waitForKeyElements("textarea", enableSpellCheck);

QingJ © 2025

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