Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
boomzero opened this issue Jan 12, 2024 · 22 comments
Open
2 tasks done

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

boomzero opened this issue Jan 12, 2024 · 22 comments
Labels
bug Something isn't working frozen We are not going to fix this soon investigating This is under investigation
Milestone

Comments

@boomzero
Copy link
Member

boomzero commented Jan 12, 2024

检查项

  • 我已确认了XMOJ增强脚本已为最新版,且最新版未修复这个 Bug 。
  • 我已在 Issues 页面 中搜索,确认了这一 Bug 未被提交过。

描述

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 boomzero added bug Something isn't working needs-triage Needs to be looked at labels Jan 12, 2024
@boomzero
Copy link
Member Author

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

@langningchen
Copy link
Collaborator

确实

@boomzero
Copy link
Member Author

so, we could fork tampermonkey...

@langningchen
Copy link
Collaborator

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

@langningchen
Copy link
Collaborator

so, we could fork tampermonkey...

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

@boomzero
Copy link
Member Author

so, we could fork tampermonkey...

and add a feature that blocks pages

@langningchen
Copy link
Collaborator

@boomzero
Copy link
Member Author

is tampermonkey even open source...

@PythonSmall-Q

This comment was marked as outdated.

@PythonSmall-Q

This comment was marked as outdated.

@hendragon-bot hendragon-bot bot added this to the v1.1.* milestone Jan 14, 2024
@hendragon-bot hendragon-bot bot added investigating This is under investigation and removed needs-triage Needs to be looked at labels Jan 14, 2024
@PythonSmall-Q
Copy link
Member

不对,他妈不是开源的

@hendragon-bot hendragon-bot bot added the stale Hurry up! label Jan 29, 2024
@hendragon-bot hendragon-bot bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 5, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in xmoj-script Feb 5, 2024
@langningchen langningchen reopened this Feb 5, 2024
@github-project-automation github-project-automation bot moved this from Done to In Progress in xmoj-script Feb 5, 2024
@hendragon-bot hendragon-bot bot removed the stale Hurry up! label Feb 6, 2024
@boomzero
Copy link
Member Author

boomzero commented Feb 7, 2024 via email

@boomzero
Copy link
Member Author

boomzero commented Feb 7, 2024 via email

@langningchen
Copy link
Collaborator

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

@boomzero No, manual

@boomzero
Copy link
Member Author

boomzero commented Feb 12, 2024

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

@boomzero No, manual

good job!

@boomzero
Copy link
Member Author

solution: block xmoj's bootstap

@langningchen
Copy link
Collaborator

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

@boomzero boomzero added the frozen We are not going to fix this soon label Feb 17, 2024
@zhouyiqing0304

This comment was marked as spam.

@PythonSmall-Q
Copy link
Member

6

@PythonSmall-Q
Copy link
Member

你线下还是线上

@boomzero
Copy link
Member Author

boomzero commented Aug 11, 2024

My solution is to add https://www.xmoj.tech/template/bs3/bootstrap.min.js to my adblocker

@boomzero
Copy link
Member Author

You also need to block https://www.xmoj.tech/template/bs3/bootstrap.min.css

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frozen We are not going to fix this soon investigating This is under investigation
Projects
Status: In Progress
Development

No branches or pull requests

4 participants