XMOJ-Script-dev / XMOJ-Script

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

[Bug] if dark mode is enabled, the page flashes when loading #343

Open boomzero opened 6 months ago

boomzero commented 6 months ago

检查项

描述

This is because xmoj's version of bootstrap still loads. In fact, this can be fixed by blocking (https://www.xmoj.tech/template/bs3/bootstrap.min.js) in devtools

重现步骤

No response

控制台错误信息

No response

boomzero commented 6 months ago

So, I am not sure if this is possible with a userscript, but extensions are allowed to block content

langningchen commented 6 months ago

确实

boomzero commented 6 months ago

so, we could fork tampermonkey...

langningchen commented 6 months ago

但是这需要让脚本在也面前加载才能改正

langningchen commented 6 months ago

so, we could fork tampermonkey...

你在想什么呢,难道要求所有用户重装插件?

boomzero commented 6 months ago

so, we could fork tampermonkey...

and add a feature that blocks pages

langningchen commented 6 months ago

@boomzero https://github.com/orgs/XMOJ-Script-dev/discussions/344

boomzero commented 6 months ago

is tampermonkey even open source...

PythonSmall-Q commented 5 months ago

yep

PythonSmall-Q commented 5 months ago

tampermonkey是开源的

PythonSmall-Q commented 5 months ago

不对,他妈不是开源的

boomzero commented 5 months ago

Did you write a script to reopen stale issues…发自我的 iPhone在 2024年2月5日,13:18,Langning Chen @.***> 写道: Reopened #343.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

boomzero commented 5 months ago

PS: it is because bootstrap css needs time to load发自我的 iPhone在 2024年2月5日,13:18,Langning Chen @.***> 写道: Reopened #343.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

langningchen commented 5 months ago

Did you write a script to reopen stale issues...

@boomzero No, manual

boomzero commented 5 months ago

Did you write a script to reopen stale issues...

@boomzero No, manual

good job!

boomzero commented 4 months ago

solution: block xmoj's bootstap

langningchen commented 4 months ago

如果你要这样做的话,必须要在加载页面之前就执行用户脚本。GM有这个功能,但是如果你这样做,就要涉及到很多代码的重写