quizlet-modes:Quizlet作弊的源代码

  • O8_481004
    了解作者
  • 43.5KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-13 03:22
    上传日期
前言 我不会开发太多此脚本,但是我决定发布它以帮助人们了解代码的作用。 随时提交问题和提出请求,我将确保将其检出。 Quizlet会不断更新其系统,这会经常破坏用户脚本。 如果要在浏览器中执行任何操作,例如修改或更新此代码,则几乎可以肯定至少需要学习Javascript和HTML的基础知识。 您不需要太多的经验来阅读代码,但是要修复或更新它,您需要对语法有基本的了解。 如果您打算只修改脚本并修复错误,则应该很容易。 常见问题 通常有两件事破坏了代码的功能: 1. Quizlet更新元素标识 为了在页面中找到各种类型的信息,您必须知道要查找的内容。 如果Quizlet更新内容并围绕某些元素进行更改,则脚本将无法找到该元素,并且很可能会引发错误。 令人讨厌的是,某些事情不会引发错误,这使得调试问题变得更加困难。 为了解决此问题,您需要找到丢失的元素,并找到一种方法来始终如一地对其进行标识。
quizlet-modes-master.zip
  • quizlet-modes-master
  • Hover.js
    1.9KB
  • index.min.js
    49.8KB
  • README.md
    3.1KB
  • Scripts
  • Debug.js
    2.1KB
  • Settings.js
    8KB
  • Flashcards.js
    1.5KB
  • Functions.js
    4.9KB
  • Test.js
    5.9KB
  • Answers.js
    6KB
  • Module.js
    14.9KB
  • Match.js
    2.1KB
  • Learn.js
    3.3KB
  • Spell.js
    2.5KB
  • Live.js
    13.5KB
  • Micromatch.js
    163B
  • Gravity.js
    1.3KB
  • Write.js
    1.2KB
  • Main.js
    3.1KB
  • index.html
    477B
  • compile.js
    1.3KB
内容介绍
# Preface I won't be developing this script very much, but I decided it to release it to help people understand what the code is doing. Feel free to submit issues and pull requests, I will be sure to check them out. Quizlet is constantly updating their system, which will ruin user-scripts on a very frequent basis. If you are going to be doing anything in the browser, like modifying or updating this code, you will almost certainly need to learn the basics of Javascript and HTML at the very least. You don't need much experience to read the code, but to fix or update it you need to have a basic understanding of the syntax. If you plan to just modify the script and fix the errors, it should be fairly easy. # Common Issues There are normally two things that break the functionality of the code: ## 1. Quizlet updates element identification In order to find various types of information in the page, you have to know what you are looking for. If Quizlet updates the content and changes around certain elements, then the script will be unable to find that element, and will most likely throw an error. Annoyingly, some things will not throw error, which makes debugging the problem a lot harder. In order to fix this, you need to locate the missing element, and find a way to identify it consistently. ## 2. Quizlet changes the terms location In order to find the answer to a question, obviously you need to know both the question and the correct answer. Luckily both of those things *should* be accessible. Normally, there is a global variable called `Quizlet` in this global variable a ton of useful information is stored. If Quizlet updates the location or name of this variable, the script will no longer be able to find need information, mainly the question answers. In the past, the question / answer information was easily accessible, but when debugging the extension today it seems as if Quizlet has completely revamped the old system. From a quick memory search, it seems like the answers are stored in `Quizlet.assistantModeData.studiableData`, but you will need to parse the question answer information together yourself. # Code Format All important scripts are in `/Scripts` and are named fairly helpfully. `/Scripts/Main.js` is the main script that loads all of the other modules, handles basic stuff and shouldn't really be an issue. `/Scripts/Answers.js` is the main script for obtaing all the terms and information about the set. `/Scripts/Debug.js` is used for helping other users and for quickly obtaining basic helpful script information. `/Scripts/Functions.js` contains some global functions that are used across all the other scripts. `/Scripts/Module.js` is a library that provides some useful functions, should eventually merge into `Functions.js` `/Scripts/Settings.js` handles persistant information, like the settings. This is where the settings UI is created and handled. All the other scripts are self-explanitory - they are named after the mode they work on. # Compiling the code `index.min.js` contains the minified and compiled source code for the most recent version. Run `index.html`, the compiled code will be generated in the textarea.
评论
    相关推荐