From d5208ee5dd5fe56eba55f45402b231841236fed5 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 7 Jun 2024 08:52:30 -0400 Subject: [PATCH] Add `isodate` as available placeholder for auto-comment Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/3265 --- src/js/storage.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/storage.js b/src/js/storage.js index dfd9695c3..b26ff00c6 100644 --- a/src/js/storage.js +++ b/src/js/storage.js @@ -607,6 +607,7 @@ onBroadcast(msg => { const url = new URL(options.docURL); comment = '! ' + this.hiddenSettings.autoCommentFilterTemplate + .replace('{{isodate}}', d.toISOString().split('T')[0]) .replace('{{date}}', d.toLocaleDateString(undefined, { dateStyle: 'medium' })) .replace('{{time}}', d.toLocaleTimeString()) .replace('{{hostname}}', url.hostname)