您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the world!
- // ==UserScript==
- // @name quizlet match game cheat
- // @namespace http://tampermonkey.net/
- // @version 0.2
- // @description try to take over the world!
- // @author You
- // @match *://quizlet.com/*
- // @grant none
- // ==/UserScript==
- document.onclick = ()=>{main();}
- function main(){
- let suc = false;
- try{
- let container = document.getElementsByClassName('MatchModeQuestionScatterBoard is-ready')[0],
- all_options = container.children,
- words = [],
- description = [],
- color_code = ['pink','blue','yellow','red','black','green'];
- for(let i = 0;i<all_options.length;i++){
- if(all_options[i].innerText.split(' ').length <= 3){
- words.push(all_options[i]);
- }else{
- description.push(all_options[i]);
- }
- }
- for(let j = 0;j<words.length;j++){
- let a = words[j],
- b = description[j],
- c = a.style.transform.split('e')[1];
- b.style.backgroundColor = color_code[j];
- a.style.backgroundColor = color_code[j];
- }
- console.log(words,description);
- suc = true;
- }catch(e){
- window.setTimeout(()=>{main()},10);
- console.log(e)
- }
- }