AdguardTeam / AdguardTeam/Scriptlets
Improve cookie scriptlets — support 'CookieStore' API
- 主要言語
- JavaScript
- スター
- 195
- フォーク
- 33
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Current description is just a bare MDN link. Needs full expansion:
The following cookie-related scriptlets currently access cookies only via `document.cookie` (synchronous string manipulation):
`set-cookie`, `set-cookie-reload`, `trusted-set-cookie`, `trusted-set-cookie-reload`.
The [CookieStore API](https://developer.mozilla.org/en-US/docs/Web/API/CookieStore) is a newer async alternative that provides cleaner access to cookies without string parsing, and properly handles `SameSite`/`Secure` attributes.
When `CookieStore` is available (currently Chrome/Edge), scriptlets should use it instead of `document.cookie` to set cookies.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。