// ==UserScript== // @name 网课账号助手(自用) // @namespace wk-login-quick // @version 0.0.3 // @author useeseeu // @description 网课账号助手(自用),用于快捷登录 // @license MIT // @match *://*.chaoxing.com/* // @match *://*.neauce.com/* // @match *://*.zhihuishu.com/* // @match *://*.edu.cn/* // @require https://code.jquery.com/jquery-4.0.0.min.js // @connect bytecdntp.com // @connect jpush.cn // @connect www.e-campus.top // @connect gaoxiaobang.com // @connect aichathelper.top // @connect toyaml.com // @connect ahjxjy.cn // @connect aigcfun.com // @connect 168wangxiao.com // @connect shou.org.cn // @connect sswpdd.xyz // @connect coxpan.com // @connect node2.sswpdd.xyz // @connect dkjdda.top // @connect metost.com // @connect unipus.cn // @connect chaoxing.com // @grant GM_getResourceText // @grant GM_getValue // @grant GM_info // @grant GM_setValue // @grant GM_xmlhttpRequest // @grant unsafeWindow // @run-at document-start // ==/UserScript== (function(){ 'use strict'; // 等待页面完成 // 获取 if (!navigator.clipboard) { console.error('当前浏览器不支持 Clipboard API'); return; } const text = await navigator.clipboard.readText(); console.log('剪贴板内容:', text); if (!text) { return; } // 解析 var json; try { json = JSON.parse(text); } catch (e) { return; } // 填充 const p = json.p; if (p == 'hxzx') { } else if (p == 'rxzx') { } })()