mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
Add support for $currentISODate$
in trusted-set-cookie
scriptlet
Related discussion: https://github.com/uBlockOrigin/uAssets/discussions/20789#discussioncomment-9979107
This commit is contained in:
parent
37d31a82d8
commit
a3576ea651
1 changed files with 3 additions and 0 deletions
|
@ -4248,6 +4248,9 @@ function trustedSetCookie(
|
|||
if ( value.includes('$currentDate$') ) {
|
||||
value = value.replaceAll('$currentDate$', time.toUTCString());
|
||||
}
|
||||
if ( value.includes('$currentISODate$') ) {
|
||||
value = value.replaceAll('$currentISODate$', time.toISOString());
|
||||
}
|
||||
|
||||
let expires = '';
|
||||
if ( offsetExpiresSec !== '' ) {
|
||||
|
|
Loading…
Reference in a new issue