mirror of https://github.com/gorhill/uBlock.git
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);
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue