diff --git a/src/content.js b/src/content.js index 06c9ac7c..dc0dcba2 100644 --- a/src/content.js +++ b/src/content.js @@ -47,31 +47,6 @@ async function addRecapInformation(msg) { }); } - const options = await getItemsFromStorage('options'); - if ( - 'login_dismiss_new_brand_info' in options && - options['login_dismiss_new_brand_info'] - ) { - return; - } - - let bannerMessage = - 'Get ready for a new chapter! RECAP is getting a ' + 'fresh new look.'; - let bannerLink = 'https://free.law/2024/07/05/new-branding-rip-flip'; - PACER.addRecapBannerToLoginPage(bannerMessage, bannerLink); - - let dismiss_button = document.getElementById('dismiss_recap_info_banner'); - dismiss_button.addEventListener('click', async () => { - await PACER.removeBannerFromLoginPage(); - return false; - }); - - let learn_more_btn = document.getElementById('learn_more_btn'); - learn_more_btn.addEventListener('click', async () => { - await PACER.removeBannerFromLoginPage(event_from_btn = true); - return true; - }); - return; } diff --git a/src/options.html b/src/options.html index 6fa82851..8da081fa 100644 --- a/src/options.html +++ b/src/options.html @@ -25,8 +25,7 @@
+ RECAP is using Manifest Version 3 now. Enjoy improved features and performance. diff --git a/src/options.js b/src/options.js index 70ec9829..73358269 100644 --- a/src/options.js +++ b/src/options.js @@ -21,7 +21,7 @@ async function load_options() { inputs[i].value = items.options[inputs[i].id] || ''; } } - if ('option_dismiss_new_brand_info' in items.options) removeInfoBanner(); + if ('option_dismiss_new_manifest_info' in items.options) removeInfoBanner(); }); } @@ -38,7 +38,7 @@ function save_options() { let banner = document.getElementById('header-banner'); if (!banner) { - options['option_dismiss_new_brand_info'] = true; + options['option_dismiss_new_manifest_info'] = true; } chrome.storage.local.set({ options: options }, function () { diff --git a/src/utils/toolbar_button.js b/src/utils/toolbar_button.js index 1a556a4a..cf94452b 100644 --- a/src/utils/toolbar_button.js +++ b/src/utils/toolbar_button.js @@ -37,16 +37,9 @@ export function updateToolbarButton(tab) { ) { chrome.action.setBadgeText({ text: '' }); } else { - if ( - /Safari/.test(navigator.userAgent) && - !/Chrome|Chromium/.test(navigator.userAgent) - ) { - // Detect Safari engine - chrome.action.setBadgeText({ text: '1' }); - } else { - chrome.action.setBadgeText({ text: '🔔' }); - chrome.action.setBadgeBackgroundColor({ color: '#404040' }); - } + chrome.action.setBadgeText({ text: '1' }); + chrome.action.setBadgeTextColor({ color: 'white' }); + chrome.action.setBadgeBackgroundColor({ color: 'red' }); } if (tab === null || tab === undefined) {