diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 2cffe6d..496e6d9 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -70,27 +70,27 @@ "description": "Text to display in the banner for the BreezeWiki link" }, "bannerRestore": { - "message": "⎌ Restore banner", + "message": "Restore banner", "description": "Text to display in the banner for the restore banner link" }, "bannerRestoreDone": { - "message": "✓ Banner restored", + "message": "Banner restored", "description": "Text to display in the banner after the banner has been restored" }, "bannerDisable": { - "message": "✕ Disable banner for this wiki", + "message": "Disable banner for this wiki", "description": "Text to display in the banner for the disable banner link" }, "bannerDisableDone": { - "message": "✓ Banner disabled", + "message": "Banner disabled", "description": "Text to display in the banner after the banner has been disabled" }, "bannerRedirect": { - "message": "↪ Auto redirect this wiki", + "message": "Auto redirect this wiki", "description": "Text to display in the banner for the redirect link" }, "bannerRedirectDone": { - "message": "✓ Redirect enabled", + "message": "Redirect enabled", "description": "Text to display in the banner after the redirect has been enabled" }, "searchResultLookup": { diff --git a/scripts/content-banners.js b/scripts/content-banners.js index cf70c65..68a81ed 100644 --- a/scripts/content-banners.js +++ b/scripts/content-banners.js @@ -119,18 +119,18 @@ function displayRedirectBanner(newUrl, id, destinationName, destinationLanguage, bannerRestoreLink.classList.add('indie-wiki-banner-link'); bannerRestoreLink.classList.add('indie-wiki-banner-link-small'); bannerRestoreLink.classList.add('indie-wiki-banner-hidden'); - bannerRestoreLink.textContent = extensionAPI.i18n.getMessage('bannerRestore'); + bannerRestoreLink.textContent = '⎌ ' + extensionAPI.i18n.getMessage('bannerRestore'); bannerControls.appendChild(bannerRestoreLink); bannerRestoreLink.onclick = function (e) { extensionAPI.storage.sync.get({ 'wikiSettings': {} }, async (response) => { let wikiSettings = await commonFunctionDecompressJSON(response.wikiSettings); wikiSettings[id] = 'alert'; extensionAPI.storage.sync.set({ 'wikiSettings': await commonFunctionCompressJSON(wikiSettings) }); - e.target.textContent = extensionAPI.i18n.getMessage('bannerRestoreDone'); + e.target.textContent = '✓ ' + extensionAPI.i18n.getMessage('bannerRestoreDone'); e.target.classList.add('indie-wiki-banner-disabled'); - bannerControls.querySelector('.indie-wiki-banner-redirect').textContent = extensionAPI.i18n.getMessage('bannerRedirect'); + bannerControls.querySelector('.indie-wiki-banner-redirect').textContent = '↪ ' + extensionAPI.i18n.getMessage('bannerRedirect'); bannerControls.querySelector('.indie-wiki-banner-redirect').classList.remove('indie-wiki-banner-disabled'); - bannerControls.querySelector('.indie-wiki-banner-disable').textContent = extensionAPI.i18n.getMessage('bannerDisable'); + bannerControls.querySelector('.indie-wiki-banner-disable').textContent = '✕ ' + extensionAPI.i18n.getMessage('bannerDisable'); bannerControls.querySelector('.indie-wiki-banner-disable').classList.remove('indie-wiki-banner-hidden'); bannerControls.querySelector('.indie-wiki-banner-disable').classList.remove('indie-wiki-banner-disabled'); }); @@ -141,16 +141,16 @@ function displayRedirectBanner(newUrl, id, destinationName, destinationLanguage, bannerDisableLink.classList.add('indie-wiki-banner-disable'); bannerDisableLink.classList.add('indie-wiki-banner-link'); bannerDisableLink.classList.add('indie-wiki-banner-link-small'); - bannerDisableLink.textContent = extensionAPI.i18n.getMessage('bannerDisable'); + bannerDisableLink.textContent = '✕ ' + extensionAPI.i18n.getMessage('bannerDisable'); bannerControls.appendChild(bannerDisableLink); bannerDisableLink.onclick = function (e) { extensionAPI.storage.sync.get({ 'wikiSettings': {} }, async (response) => { let wikiSettings = await commonFunctionDecompressJSON(response.wikiSettings); wikiSettings[id] = 'disabled'; extensionAPI.storage.sync.set({ 'wikiSettings': await commonFunctionCompressJSON(wikiSettings) }); - e.target.textContent = extensionAPI.i18n.getMessage('bannerDisableDone'); + e.target.textContent = '✓ ' + extensionAPI.i18n.getMessage('bannerDisableDone'); e.target.classList.add('indie-wiki-banner-disabled'); - bannerControls.querySelector('.indie-wiki-banner-restore').textContent = extensionAPI.i18n.getMessage('bannerRestore'); + bannerControls.querySelector('.indie-wiki-banner-restore').textContent = '⎌ ' + extensionAPI.i18n.getMessage('bannerRestore'); bannerControls.querySelector('.indie-wiki-banner-restore').classList.remove('indie-wiki-banner-hidden'); bannerControls.querySelector('.indie-wiki-banner-restore').classList.remove('indie-wiki-banner-disabled'); }); @@ -161,17 +161,17 @@ function displayRedirectBanner(newUrl, id, destinationName, destinationLanguage, bannerRedirectLink.classList.add('indie-wiki-banner-redirect'); bannerRedirectLink.classList.add('indie-wiki-banner-link'); bannerRedirectLink.classList.add('indie-wiki-banner-link-small'); - bannerRedirectLink.textContent = extensionAPI.i18n.getMessage('bannerRedirect'); + bannerRedirectLink.textContent = '↪ ' + extensionAPI.i18n.getMessage('bannerRedirect'); bannerControls.appendChild(bannerRedirectLink); bannerRedirectLink.onclick = function (e) { extensionAPI.storage.sync.get({ 'wikiSettings': {} }, async (response) => { let wikiSettings = await commonFunctionDecompressJSON(response.wikiSettings); wikiSettings[id] = 'redirect'; extensionAPI.storage.sync.set({ 'wikiSettings': await commonFunctionCompressJSON(wikiSettings) }); - e.target.textContent = extensionAPI.i18n.getMessage('bannerRedirectDone'); + e.target.textContent = '✓ ' + extensionAPI.i18n.getMessage('bannerRedirectDone'); e.target.classList.add('indie-wiki-banner-disabled'); bannerControls.querySelector('.indie-wiki-banner-disable').classList.add('indie-wiki-banner-hidden'); - bannerControls.querySelector('.indie-wiki-banner-restore').textContent = extensionAPI.i18n.getMessage('bannerRestore'); + bannerControls.querySelector('.indie-wiki-banner-restore').textContent = '⎌ ' + extensionAPI.i18n.getMessage('bannerRestore'); bannerControls.querySelector('.indie-wiki-banner-restore').classList.remove('indie-wiki-banner-hidden'); bannerControls.querySelector('.indie-wiki-banner-restore').classList.remove('indie-wiki-banner-disabled'); });