Инициализация

This commit is contained in:
Egor Guslyancev 2023-11-29 12:30:05 -03:00
commit 2c283a6e6f
GPG Key ID: D7E709AA465A55F9
2 changed files with 45 additions and 0 deletions

10
LICENSE.txt Normal file
View File

@ -0,0 +1,10 @@
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <http://unlicense.org/>

35
user.js Normal file
View File

@ -0,0 +1,35 @@
// ==UserScript==
// @name Sorryops
// @namespace sorryops
// @version 20231129.0
// @description Skip the half of the fun!
// @icon https://orioks.miet.ru/favicon.ico
// @author electromagneticcyclone & angelbeautifull
// @license Unlicense
// @supportURL
// @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');
var value =
boxes[i].type === 'radio' && boxes[i].value == "1"
? "<b>" + boxes[i].value + "</b>"
: boxes[i].value;
span.innerHTML = value + " ";
boxes[i].parentNode.insertBefore(span, boxes[i].parentNode.children[0]);
success = true;
}
}
}
}