// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http://*/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @require https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js
// @grant none
// ==/UserScript==
(function() {
'use strict';
/***欢迎使用网页自动获取题目匹配题库答案填充油猴版(不断完善)**
1.不足指出还请海涵与指点,谢谢
---------------------调试块----------------------------
1.43行,题库
2.72行,get题目答案,{"key":"value"}
3.104行,get答题类
***/
var setting = [];
var minimum = [];
minimum.div = $(
'<div style="padding: 5px;border: 1px dashed rgb(0, 85, 68); position: fixed; top: 8px; right: 5px; z-index: 99999; background-color: rgba(184, 247, 255, 0.2); overflow-x: auto;display:none;">最大化' + '</div>'
).appendTo('body').click(function () {
$(setting.div).css('display', 'block');
$(minimum.div).css('display', 'none');
});
var ad = "To learn for happy with our flock";
setting.div = $(
'<div style="border: 1px dashed rgb(0, 85, 68); width: 80px; position: fixed; top: 8px; right: 5px; z-index: 99999; background-color: rgba(184, 247, 255, 0.9);display:block;">' +
'<span style="font-size: medium;"></span>' +
'<div style="display: inline-block;box-sizing: border-box;top:0;right:0;"><minimize style="position:absolute;top:5px;right:6px;width:5%;font-size:16px;line-height: 12px;font-weight: bold; cursor:context-menu; user-select:none;">一</minimize></div>' +
'<div id="cx-notice" style="font-size:18px;color:red;font-family: Times New Roman;text-align: center;height:24px;border-top: 0px solid #000;border-bottom: 1px solid #000;margin: 1px 0px;overflow: hidden;">' + ad + '</div>' +
'<button id="timuda" style="width:25%;margin: 4px 8px;background-color: rgba(184, 247, 255, 0.4);">打开列表' + '</button>' +
'<button id="tkais" style="width:25%;margin: 4px 8px;background-color: rgba(184, 247, 255, 0.4);">开始' + '</button>' +
'<button id="ttkais" style="width:25%;margin: 4px 8px;background-color: rgba(184, 247, 255, 0.4);">2层开始' + '</button>' +
'<button id="loopdati" style="width:25%;margin: 4px 8px;background-color: rgba(184, 247, 255, 0.4);">循环下一题' + '</button>' +
'<button id="titop" style="width:25%;margin: 4px 8px;background-color: rgba(184, 247, 255, 0.4);">提交' + '</button>' +
'<button id="golist" style="width:25%;margin: 4px 8px;background-color: rgba(184, 247, 255, 0.4);">回到列表' + '</button>' +
'<button id="autowork" style="width:25%;margin: 4px 8px;background-color: rgba(184, 247, 255, 0.4);">自动工作' + '</button>' +
'<div id="vi_con" style="width:99%;display: inline-block;OVERFLOW-Y: auto; padding-top: 3px;padding-left: 3px;padding-bottom: 0px;FONT-SIZE: 10pt;OVERFLOW: auto;LINE-HEIGHT: 100%; FONT-FAMILY: 宋体; HEIGHT:93px; TEXT-ALIGN: left;"></div>' +
'</div>'
).appendTo
网页自动等待答题油猴版(不断完善)
于 2023-01-24 23:44:30 首次发布
本文介绍了一款使用JavaScript编写的油猴脚本,该脚本能实现网页上的自动答题功能,适用于前端开发者。通过自动化处理,提高用户在特定网页上的交互效率。
摘要由CSDN通过智能技术生成