mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-13 02:14:17 +01:00
Add isodate
as available placeholder for auto-comment
Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/3265
This commit is contained in:
parent
6075dbb131
commit
d5208ee5dd
1 changed files with 1 additions and 0 deletions
|
@ -607,6 +607,7 @@ onBroadcast(msg => {
|
||||||
const url = new URL(options.docURL);
|
const url = new URL(options.docURL);
|
||||||
comment = '! ' +
|
comment = '! ' +
|
||||||
this.hiddenSettings.autoCommentFilterTemplate
|
this.hiddenSettings.autoCommentFilterTemplate
|
||||||
|
.replace('{{isodate}}', d.toISOString().split('T')[0])
|
||||||
.replace('{{date}}', d.toLocaleDateString(undefined, { dateStyle: 'medium' }))
|
.replace('{{date}}', d.toLocaleDateString(undefined, { dateStyle: 'medium' }))
|
||||||
.replace('{{time}}', d.toLocaleTimeString())
|
.replace('{{time}}', d.toLocaleTimeString())
|
||||||
.replace('{{hostname}}', url.hostname)
|
.replace('{{hostname}}', url.hostname)
|
||||||
|
|
Loading…
Reference in a new issue