您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
题目快速导航
当前为
// ==UserScript== // @name autoAnswer_Nav // @namespace http://tampermonkey.net/ // @version 0.3.5 // @description 题目快速导航 // @author lsmhq // @match https://www.wizard101.com/quiz/trivia/game/* // @match https://www.wizard101.com/game/* // @icon https://www.google.com/s2/favicons?sz=64&domain=https://www.wizard101.com // @require https://gf.qytechs.cn/scripts/446229-nav-list/code/nav_list.js?version=1059140 // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; let questAddress = window.questAddress let basePath = 'https://www.wizard101.com/quiz/trivia/game/' let index = 0 let index_done = 0 let style = ` display:flex; flex-direction: column; width:270px; padding:20px 0; position:fixed; text-align:center; bottom:0; right:0; background:rgb(57 57 57 / 85%); z-index:1000; border-radius:10px; color:white; ` let done_style = ` display:flex; flex-direction: column; width:100%; text-align:center; z-index:1000; color:white; ` let btn_style = ` width:100%; position:relative; height:24px; line-height:24px; text-align:left; cursor:pointer; padding-left:15px; ` // 节点元素 let container, h22, h2, noDo, h2_noDo, done, h2_done // 记录值 if(sessionStorage.getItem('tested_quiz_val') == null){ sessionStorage.setItem('tested_quiz_val',JSON.stringify([])) } function createBtnGroup(){ // 创建容器 createContainer() // 创建List createList() container.append(noDo) container.append(done) document.body.append(container) } setTimeout(function(){ let quiz = document.getElementsByClassName('quizQuestion') let quizs = JSON.parse(sessionStorage.getItem('tested_quiz_val')) if(quiz.length === 0){ checkFinished() createBtnGroup() } },1000) function checkFinished(){ let item = window.location.href.split('/') quizs.push(item[item.length - 1]) sessionStorage.setItem('tested_quiz_val',JSON.stringify(quizs)) } function createContainer(){ // 总容器 container = document.createElement('div') container.style = style container.classList.add('fadeIn') // 大标题 h22 = document.createElement('h1') h22.innerText = 'Quiz List' h22.style = ` height: 30px; line-height: 20px; font-size:22px; color:white; font-weight: normal; ` container.append(h22) // 小标题 h2 = document.createElement('h2') h2.innerText = 'Click to the test Page!' h2.style.height='40px' h2.style.color = 'white' container.append(h2) // 未完成 noDo = document.createElement('div') noDo.style = done_style h2_noDo = document.createElement('h2') h2_noDo.innerText = '😨Not Finished' h2_noDo.style.color = 'white' noDo.append(h2_noDo) //已完成 done = document.createElement('div') noDo.style = done_style h2_done = document.createElement('h2') h2_done.innerText = '😛Finished' h2_done.style.color = 'white' done.append(h2_done) } // 创建List function createList(){ let quizs = JSON.parse(sessionStorage.getItem('tested_quiz_val')) //未完成list questAddress.forEach((element,idx) => { if(!quizs.includes(element)){ let btn = document.createElement('div') btn.style = btn_style btn.innerText = `${++index}、${element}` btn.onclick = ()=>{ // 记录值 window.location.href = basePath + element } noDo.append(btn) } }); // 已完成list quizs.forEach((element,idx) => { let btn = document.createElement('div') btn.style = btn_style btn.innerText = `${++index_done}、${element}` done.append(btn) }) } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址