您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
获取锐格答案
// ==UserScript== // @name 北京科技大学锐格查看答案 // @namespace http://tampermonkey.net/ // @version 1.01 // @description 获取锐格答案 // @author 慌得一批的荒 // @match http://ucb.ustb.edu.cn/* // @grant GM_addStyle // @license MIT // ==/UserScript== (function() { 'use strict'; let scriptEnabled = false; const panel = document.createElement('div'); const button = document.createElement('button'); const output = document.createElement('div'); GM_addStyle(` #scriptPanel { position: fixed; bottom: 10px; right: 10px; background-color: white; padding: 10px; border: 1px solid #ddd; border-radius: 5px; box-shadow: 0 0 5px rgba(0,0,0,0.2); z-index: 10000; } #scriptToggleButton { background-color: #4CAF50; color: white; padding: 5px 10px; border: none; border-radius: 3px; cursor: pointer; } #output { margin-top: 10px; padding: 5px; border: 1px solid #ddd; background-color: #f5f5f5; } `); panel.id = 'scriptPanel'; button.id = 'scriptToggleButton'; button.textContent = '开始'; output.id = 'output'; button.addEventListener('click', function() { scriptEnabled = !scriptEnabled; button.textContent = scriptEnabled ? '关闭' : '开始'; if (scriptEnabled) { runScript(); } }); panel.appendChild(button); panel.appendChild(output); document.body.appendChild(panel); function runScript() { const url = window.location.href; const match = url.match(/#(\d+)/); if (match && match[1]) { const a = parseInt(match[1], 10); captureShowMyPrgKeyOutput(a); } else { console.error("错误"); } } function captureShowMyPrgKeyOutput(a) { // 假设showMyPrgKey函数现在返回结果而不是打印到控制台 const result = showMyPrgKey(a, 1); output.textContent = '答案已获取'; } })();