AdguardTeam / AdguardTeam/Scriptlets
Improve cookie scriptlets — support 'CookieStore' API
- Lenguaje dominante
- JavaScript
- Estrellas
- 195
- Forks
- 33
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.