From a3576ea6519dc08e5244dafc296dc8ac31b07655 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 7 Jul 2024 11:18:20 -0400 Subject: [PATCH] Add support for `$currentISODate$` in `trusted-set-cookie` scriptlet Related discussion: https://github.com/uBlockOrigin/uAssets/discussions/20789#discussioncomment-9979107 --- assets/resources/scriptlets.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/resources/scriptlets.js b/assets/resources/scriptlets.js index 7a967d394..cc0f7033b 100644 --- a/assets/resources/scriptlets.js +++ b/assets/resources/scriptlets.js @@ -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 !== '' ) {