修复 [知乎美化] 暗黑模式失效#615
Closed
cherryfeng1026 wants to merge 1 commit into
Closed
Conversation
Owner
|
确实,知乎把主题模式的 cookie 名称从 theme 改成 themeApp 了,不需要改那么多代码,只需把脚本里的 cookie 名称改一下就行了,但还是感谢你的帮助,节省了我研究失效原因的时间~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
themeApp/themeModeApp主题 Cookiemanual模式,并清理冲突的 host-only Cookie.zhihu.com,兼容www与zhuanlan子域名document-start阶段使用document.documentElement安全挂载样式问题原因
知乎已不再使用旧的
themeCookie。原脚本仍读写旧字段,导致菜单状态虽然变化,页面主题却不会随之切换。验证
node --check Zhihu-Beautification.user.jsgit diff --check方案 3/4 的原有滤镜实现保持不变。