XMOJ-Script-dev / XMOJ-Script

XMOJ增强脚本
https://www.xmoj-bbs.me
GNU General Public License v3.0
5 stars 5 forks source link

[Bug] 代码检查功能可用性下降 #147

Closed PythonSmall-Q closed 9 months ago

PythonSmall-Q commented 10 months ago

检查项

描述

由于小明的OJ近期出现重大更新,我们的增强脚本还没有来得及跟上系统更新的步伐。这将会导致除了239帖中问题之外的另外一个问题:文件检测失败。

现在,您提交的代码只能进行预编译但是无法进行文件检测。

原帖:http://www.xmoj.tech/discuss3/thread.php?tid=241

重现步骤

No response

控制台错误信息

No response

PythonSmall-Q commented 10 months ago

啊啊啊26个issue了,准备开第27个

PythonSmall-Q commented 10 months ago

https://github.com/XMOJ-Script-dev/XMOJ-Script/issues/138

boomzero commented 10 months ago

document.queryselector 需要改一下

PythonSmall-Q commented 10 months ago

嗯你看看能不能改,我在卷whk

boomzero commented 10 months ago

这个。。。

boomzero commented 10 months ago

让我怀疑是高老师故意的

boomzero commented 10 months ago

现在很难parse

boomzero commented 10 months ago
image

@langningchen 这个怎么处理?

boomzero commented 10 months ago

现在temp一直是输入文件

PythonSmall-Q commented 10 months ago

image 啥问题orz

boomzero commented 10 months ago

一个hidden element不知道为什么会不hidden

On Nov 11, 2023, at 18:04, Shan Wenxiao @.***> wrote:

https://user-images.githubusercontent.com/106425289/282235180-288c71e6-6eee-434e-93f1-e2244011d522.png 啥问题orz

— Reply to this email directly, view it on GitHub https://github.com/XMOJ-Script-dev/XMOJ-Script/issues/147#issuecomment-1806771353, or unsubscribe https://github.com/notifications/unsubscribe-auth/AULMJZLRUQMD7AUTT3UOYMDYD5ERXAVCNFSM6AAAAAA6A3JT4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBWG43TCMZVGM. You are receiving this because you were assigned.

langningchen commented 10 months ago

让我怀疑是高老师故意的

我也这样觉得

langningchen commented 10 months ago

让我怀疑是高老师故意的

我也这样觉得 @boomzero

langningchen commented 10 months ago
image

@langningchen 这个怎么处理?

@boomzero 这个处理起来有什么问题吗?

langningchen commented 10 months ago

一个hidden element不知道为什么会不hidden

On Nov 11, 2023, at 18:04, Shan Wenxiao @.***> wrote:

https://user-images.githubusercontent.com/106425289/282235180-288c71e6-6eee-434e-93f1-e2244011d522.png 啥问题orz

— Reply to this email directly, view it on GitHub https://github.com/XMOJ-Script-dev/XMOJ-Script/issues/147#issuecomment-1806771353, or unsubscribe https://github.com/notifications/unsubscribe-auth/AULMJZLRUQMD7AUTT3UOYMDYD5ERXAVCNFSM6AAAAAA6A3JT4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBWG43TCMZVGM. You are receiving this because you were assigned.

boomzero commented 10 months ago

那个标题显示

On Nov 11, 2023, at 22:18, Chen LangNing @.***> wrote:

一个hidden element不知道为什么会不hidden

On Nov 11, 2023, at 18:04, Shan Wenxiao @.***> wrote:

https://user-images.githubusercontent.com/106425289/282235180-288c71e6-6eee-434e-93f1-e2244011d522.png 啥问题orz

— Reply to this email directly, view it on GitHub #147 (comment) https://github.com/XMOJ-Script-dev/XMOJ-Script/issues/147#issuecomment-1806771353, or unsubscribe https://github.com/notifications/unsubscribe-auth/AULMJZLRUQMD7AUTT3UOYMDYD5ERXAVCNFSM6AAAAAA6A3JT4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBWG43TCMZVGM. You are receiving this because you were assigned.

— Reply to this email directly, view it on GitHub https://github.com/XMOJ-Script-dev/XMOJ-Script/issues/147#issuecomment-1806828876, or unsubscribe https://github.com/notifications/unsubscribe-auth/AULMJZMIBPWQ3Z3WMG5XAZLYD6CJ3AVCNFSM6AAAAAA6A3JT4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBWHAZDQOBXGY. You are receiving this because you were mentioned.

langningchen commented 10 months ago

那只是它不显示,但并不代表你在查询元素的时候不会查询到它 @boomzero

boomzero commented 10 months ago

不是, 他会显示, 需要我手动remove

On Nov 12, 2023, at 11:37, Chen LangNing @.***> wrote:

那只是它不显示,但并不代表你在查询元素的时候不会查询到它 @boomzero https://github.com/boomzero — Reply to this email directly, view it on GitHub https://github.com/XMOJ-Script-dev/XMOJ-Script/issues/147#issuecomment-1806990553, or unsubscribe https://github.com/notifications/unsubscribe-auth/AULMJZOUA35OMFV25EIYJSLYEBAA5AVCNFSM6AAAAAA6A3JT4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBWHE4TANJVGM. You are receiving this because you were mentioned.

boomzero commented 10 months ago

但是原来的xmoj就正常

On Nov 12, 2023, at 11:37, Chen LangNing @.***> wrote:

那只是它不显示,但并不代表你在查询元素的时候不会查询到它 @boomzero https://github.com/boomzero — Reply to this email directly, view it on GitHub https://github.com/XMOJ-Script-dev/XMOJ-Script/issues/147#issuecomment-1806990553, or unsubscribe https://github.com/notifications/unsubscribe-auth/AULMJZOUA35OMFV25EIYJSLYEBAA5AVCNFSM6AAAAAA6A3JT4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBWHE4TANJVGM. You are receiving this because you were mentioned.

langningchen commented 10 months ago

啊?那看来是 style 的问题 @boomzero

boomzero commented 10 months ago

I am talking about:

<h2 class="lang_en hidden">问题 A: </h2>

这个开了script就会显示

langningchen commented 10 months ago

他可能用了一个旧版bootstrap的属性,但是新版这个属性已经没了

boomzero commented 10 months ago

所以直接remove

langningchen commented 10 months ago

hidden 这个属性在新版的Bootstrap里面,可能换名字了

langningchen commented 10 months ago

所以直接remove

对的

boomzero commented 10 months ago

那个提交按钮怎么办

boomzero commented 10 months ago

现在就是一个link

langningchen commented 10 months ago

现在就是一个link

是吗?我都没注意

langningchen commented 10 months ago

我看一下,不过现在用的手机

boomzero commented 10 months ago
image
langningchen commented 10 months ago

Screenshot_20231112_114527_Kiwi Browser.jpg

哦,这样是吧?这样也可以改,把他原本的链接删掉,自己换成按钮

boomzero commented 10 months ago

好的

boomzero commented 10 months ago

还有为什么忽略按钮有不行了

boomzero commented 10 months ago

tdiytable:


Uncaught (in promise) TypeError: Table.querySelector(...) is null
    TidyTable moz-extension://53f9d4b1-eb4b-4cfa-ac91-e30fdddb5dfb/userscripts/XMOJ.user.js?id=a8b84837-401c-4bb8-904c-b082924c18d2:3472
    window["__f__lov75ate.6k"]/< moz-extension://53f9d4b1-eb4b-4cfa-ac91-e30fdddb5dfb/userscripts/XMOJ.user.js?id=a8b84837-401c-4bb8-904c-b082924c18d2:4467
    St http://www.xmoj.tech/problem.php?cid=6598&pid=0:9
    window["__f__lov75ate.6k"]/< moz-extension://53f9d4b1-eb4b-4cfa-ac91-e30fdddb5dfb/userscripts/XMOJ.user.js?id=a8b84837-401c-4bb8-904c-b082924c18d2:1
    "__f__lov75ate.6k" moz-extension://53f9d4b1-eb4b-4cfa-ac91-e30fdddb5dfb/userscripts/XMOJ.user.js?id=a8b84837-401c-4bb8-904c-b082924c18d2:1
    St http://www.xmoj.tech/problem.php?cid=6598&pid=0:9
    s http://www.xmoj.tech/problem.php?cid=6598&pid=0:72
    <anonymous> http://www.xmoj.tech/problem.php?cid=6598&pid=0:75
    g http://www.xmoj.tech/problem.php?cid=6598&pid=0:69
eval:3472:15
langningchen commented 10 months ago

还有为什么忽略按钮有不行了

可能是服务器处理太慢,你按了忽略以后,服务器还没处理过来,然后就收到了一次提醒检测

langningchen commented 10 months ago

tdiytable:


Uncaught (in promise) TypeError: Table.querySelector(...) is null
    TidyTable moz-extension://53f9d4b1-eb4b-4cfa-ac91-e30fdddb5dfb/userscripts/XMOJ.user.js?id=a8b84837-401c-4bb8-904c-b082924c18d2:3472
    window["__f__lov75ate.6k"]/< moz-extension://53f9d4b1-eb4b-4cfa-ac91-e30fdddb5dfb/userscripts/XMOJ.user.js?id=a8b84837-401c-4bb8-904c-b082924c18d2:4467
    St http://www.xmoj.tech/problem.php?cid=6598&pid=0:9
    window["__f__lov75ate.6k"]/< moz-extension://53f9d4b1-eb4b-4cfa-ac91-e30fdddb5dfb/userscripts/XMOJ.user.js?id=a8b84837-401c-4bb8-904c-b082924c18d2:1
    "__f__lov75ate.6k" moz-extension://53f9d4b1-eb4b-4cfa-ac91-e30fdddb5dfb/userscripts/XMOJ.user.js?id=a8b84837-401c-4bb8-904c-b082924c18d2:1
    St http://www.xmoj.tech/problem.php?cid=6598&pid=0:9
    s http://www.xmoj.tech/problem.php?cid=6598&pid=0:72
    <anonymous> http://www.xmoj.tech/problem.php?cid=6598&pid=0:75
    g http://www.xmoj.tech/problem.php?cid=6598&pid=0:69
eval:3472:15

@boomzero 你自己看看吧,我手机上只能简单的看一看,不太方便逐步跟踪调试

PythonSmall-Q commented 9 months ago

这个解决了,我做了100样本测试

boomzero commented 9 months ago

我没修, 怎么fix的

On Nov 18, 2023, at 13:13, Shan Wenxiao @.***> wrote:

Closed #147 https://github.com/XMOJ-Script-dev/XMOJ-Script/issues/147 as completed.

— Reply to this email directly, view it on GitHub https://github.com/XMOJ-Script-dev/XMOJ-Script/issues/147#event-11000903800, or unsubscribe https://github.com/notifications/unsubscribe-auth/AULMJZOJGKTAI6NJKDU5XGDYFA7WZAVCNFSM6AAAAAA6A3JT4WVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGAYDAOJQGM4DAMA. You are receiving this because you were mentioned.

langningchen commented 9 months ago

不是,就是 @boomzero 你的那个删掉题目界面那个什么没有隐藏的 en 就能修好了

langningchen commented 9 months ago

他坏了的原因是因为没法自动获取题目的输出的文件 @boomzero @PythonSmall-Q

PythonSmall-Q commented 9 months ago

你看看就知道了,删了止呕就好了