您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
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;
- }
- }
- }
- }