mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02: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
@ -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 New Issue
Block a user