Skip the half of the fun!
当前为
// ==UserScript==
// @name Sorryops
// @namespace sorryops
// @version 20231129.2
// @description Skip the half of the fun!
// @icon https://orioks.miet.ru/favicon.ico
// @author electromagneticcyclone & angelbeautifull
// @license Unlicense
// @supportURL https://git.disroot.org/electromagneticcyclone/sorryops
// @match https://orioks.miet.ru/student/student/test*
// @grant GM_getValue
// @grant GM_setValue
// @run-at document-start
// ==/UserScript==
var success = false;
var intervalId = window.setInterval(actionFunction, 1000);
function actionFunction() {
if (!success) {
var boxes = document.getElementsByTagName('input');
for (var i = 0; i < boxes.length; i++) {
if (boxes[i].type === 'checkbox' | boxes[i].type === 'radio') {
var span = document.createElement('span');
span.innerHTML =
boxes[i].type === 'radio' && boxes[i].value == "1"
? "<b>" + boxes[i].value + "</b>"
: boxes[i].value;
boxes[i].parentNode.insertBefore(span, boxes[i].parentNode.children[0]);
success = true;
}
}
}
}