Skip to content

[Develop] Add no CSP option#1264

Draft
cyfung1031 wants to merge 2 commits intorelease/v1.3from
develop/add-no-csp-option
Draft

[Develop] Add no CSP option#1264
cyfung1031 wants to merge 2 commits intorelease/v1.3from
develop/add-no-csp-option

Conversation

@cyfung1031
Copy link
Collaborator

Disable both CSP & TTP

好像可行的

你看看吧。加个按钮什么的 启动 / 停用 这条 rule 就行

@cyfung1031 cyfung1031 marked this pull request as draft February 17, 2026 04:02
@CodFrm
Copy link
Member

CodFrm commented Feb 17, 2026

可以,之前有打算的 #866 (comment)

@cyfung1031
Copy link
Collaborator Author

cyfung1031 commented Feb 17, 2026

做一個類似黑名單白名單的UI
不要像tampermonkey單純一個開關

用戶要清楚自己搞什麼
不讓開發者在userscript聲明
(開發者可用inject-into)

用戶需要時才加網域到名單

不使全域另一個考慮是,某些網站可能會self check看看使用者的環境有沒有問題 (例如銀行??)
Self check發現csp不見了可能會做成問題

@cyfung1031
Copy link
Collaborator Author

cyfung1031 commented Feb 17, 2026

名單,例如 github google等
寫了後就不管有沒有腳本適用都會移除csp

除非那個scriptcat開關關了

網域寫法要用乎合DNR的
DNR雖然不是regex但還是有一定彈性

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments