fix greed

This commit is contained in:
Egor Guslyancev 2024-05-02 17:39:01 -03:00
parent 17d76cdc7e
commit e37d388157
GPG Key ID: D7E709AA465A55F9
2 changed files with 6 additions and 7 deletions

View File

@ -17,7 +17,7 @@ import timeout as tmo
# Simple config
GET_ONLY_FOR_VIP = True
POST_ONLY_FOR_VIP = True
VERSION = "20240502.3"
VERSION = "20240502.4"
CHARSET = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"

11
user.js
View File

@ -2,7 +2,7 @@
// @name Sorryops
// @name:ru Сориупс
// @namespace https://git.disroot.org/electromagneticcyclone/sorryops
// @version 20240502.3
// @version 20240502.4
// @description Collect and reuse ORIOKS test answers
// @description:ru Скрипт для сбора и переиспользования ответов на тесты ОРИОКС
// @icon https://orioks.miet.ru/favicon.ico
@ -20,12 +20,12 @@
// @require https://openuserjs.org/src/libs/sizzle/GM_config.js
// @connect sorryops.ru
// @run-at document-start
// @downloadURL https://update.greasyfork.org/scripts/481036/Sorryops.user.js
// @updateURL https://update.greasyfork.org/scripts/481036/Sorryops.meta.js
// @downloadURL https://update.greasyfork.org/scripts/481036/Sorryops.user.js
// @updateURL https://update.greasyfork.org/scripts/481036/Sorryops.meta.js
// ==/UserScript==
/* Version */
const VERSION = "20240502.3";
const VERSION = "20240502.4";
/* End Version */
/* Charset */
@ -322,7 +322,6 @@ function fetch_from_server(path, func) {
}
},
onerror: function (e) {
console.log(e);
func({});
},
onabort: function (e) {
@ -910,7 +909,7 @@ function result_page_handler() {
}
GM_setValue('fetched_data', {});
GM_setValue('new_answer_f', false);
var greed = config.get('auto_answer_not_greedy');
var greed = config.get('auto_answer_greed_level');
if (greed < 0) {
greed = 99999;
}