diff --git a/chrome/background.js b/chrome/background.js index 87c5cda..ec9e67a 100644 --- a/chrome/background.js +++ b/chrome/background.js @@ -38,6 +38,7 @@ chrome.browserAction.onClicked.addListener(tab => chrome.storage.local.get({ let filename = (prefs.filename || '[title]') .replace('[title]', tab.title) .replace('[hostname]', n.hostname) + .replace('[simplified-hostname]', n.hostname.replace('www.', '')) .replace('[date]', current.toDateString()) .replace('[current-date]', current.toLocaleDateString()) .replace('[time]', current.toTimeString()) diff --git a/chrome/data/options/index.html b/chrome/data/options/index.html index 90695ae..c568c91 100644 --- a/chrome/data/options/index.html +++ b/chrome/data/options/index.html @@ -28,7 +28,7 @@ -

Available options: [title], [hostname], [date], [current-date], [time], [current-time], [YYYY], [MM], [DD]

+

Available options: [title], [hostname], [simplified-hostname], [date], [current-date], [time], [current-time], [YYYY], [MM], [DD]