Quizlet Test AutoCompletetion Disabler

Remove lag-causing autocompletion in Quizlet test

  1. // ==UserScript==
  2. // @name Quizlet Test AutoCompletetion Disabler
  3. // @version 1.2
  4. // @author refracta
  5. // @description Remove lag-causing autocompletion in Quizlet test
  6. // @match https://quizlet.com/*
  7. // @icon https://www.google.com/s2/favicons?sz=64&domain=quizlet.com
  8. // @license MIT
  9. // @namespace https://gf.qytechs.cn/users/467840
  10. // ==/UserScript==
  11. (async function () {
  12. 'use strict';
  13. if (location.pathname.includes('/test/')) {
  14. Array.prototype.push = (function (original) {
  15. return function (...args) {
  16. const isAutoCompleteElement = args.some(arg =>
  17. arg && typeof arg === 'object' &&
  18. Object.keys(arg).length === 2 &&
  19. 'character' in arg &&
  20. 'lang' in arg);
  21. if (isAutoCompleteElement) {
  22. return this.length;
  23. } else {
  24. return original.apply(this, args);
  25. }
  26. };
  27. })(Array.prototype.push);
  28. }
  29. })();

QingJ © 2025

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