您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
优化问卷星体验
当前为
// ==UserScript== // @name 问卷星优化 // @namespace http://tampermonkey.net/ // @version 1.0.1 // @description 优化问卷星体验 // @author share121 // @match https://ks.wjx.top/*/*.aspx // @match https://www.wjx.cn/*/*.aspx // @icon https://ks.wjx.top/favicon.ico // @grant none // @license MIT // ==/UserScript== (function () { "use strict"; document.body.style.userSelect = "auto"; document.body.style.webkitUserSelect = "auto"; window.addEventListener("load", () => { if (localStorage.getItem( location.pathname.match(/\/([a-zA-Z0-9]+).aspx/)[1] )) { let tmp = JSON.parse( localStorage.getItem( location.pathname.match(/\/([a-zA-Z0-9]+).aspx/)[1] ) ); document .querySelectorAll( "div > div.ui-controlgroup.column1 > div.ui-radio" ) .forEach((e, i) => { tmp.includes(i) && e.click(); }); } if (localStorage.getItem( `${location.pathname.match(/\/([a-zA-Z0-9]+).aspx/)[1] } input` )) { let tmp2 = JSON.parse( localStorage.getItem( `${location.pathname.match(/\/([a-zA-Z0-9]+).aspx/)[1] } input` ) ); document.querySelectorAll('input').forEach((e, i) => { e.value = tmp2[i]; }); } document.querySelectorAll('input').forEach((e) => { e.addEventListener("change", (e) => { localStorage.setItem( `${location.pathname.match(/\/([a-zA-Z0-9]+).aspx/)[1] } input`, JSON.stringify( [...document.querySelectorAll('input')].map( (e) => e.value ) ) ); }); }); document .querySelectorAll("div > div.ui-controlgroup.column1 > div.ui-radio") .forEach((e) => { e.addEventListener("click", (ele) => { let tmp = []; [ ...document.querySelectorAll( "div > div.ui-controlgroup.column1 > div.ui-radio" ), ].forEach( (e, i) => [...e.classList].includes("checked") && tmp.push(i) ); localStorage.setItem( location.pathname.match(/\/([a-zA-Z0-9]+).aspx/)[1], JSON.stringify(tmp) ); }); }); }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址