diff --git a/src/assets/stylesheets/styles.css b/src/assets/stylesheets/styles.css index b620072..5079a3c 100644 --- a/src/assets/stylesheets/styles.css +++ b/src/assets/stylesheets/styles.css @@ -514,3 +514,25 @@ hr { background-color: var(--active); border: none; } + +.new-badge { + position: relative; +} + +.new-badge[data-new-badge]:after { + content: "New!"; + position: absolute; + top: -10px; + right: -42px; + font-size: 0.9em; + background: var(--active); + color: white; + width: 35px; + height: 18px; + text-align: center; + line-height: 18px; + border-radius: 25px; + padding: 2px; + box-shadow: 0 0 1px var(--bg-secondary); + font-weight: bold; +} diff --git a/src/pages/background/background.js b/src/pages/background/background.js index d5a1966..9df083b 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -525,9 +525,16 @@ browser.webRequest.onBeforeRequest.addListener( ); browser.runtime.onInstalled.addListener((details) => { + browser.storage.sync.get(["disableSearchEngine"], (result) => { + if (result.disableSearchEngine === undefined) { + browser.storage.sync.set({ + disableSearchEngine: true, + }); + } + }); if (details.reason === "update") { browser.storage.sync.get( - ["whitelist", "exceptions", "invidiousInstance"], + ["whitelist", "exceptions", "invidiousInstance", "disableSearchEngine"], (result) => { if (result.whitelist) { let whitelist = result.whitelist.map((e) => diff --git a/src/pages/options/options.html b/src/pages/options/options.html index 6473f2f..8dc1eb7 100644 --- a/src/pages/options/options.html +++ b/src/pages/options/options.html @@ -147,7 +147,7 @@ -

+

Search Engine Redirects

diff --git a/src/pages/popup/popup.html b/src/pages/popup/popup.html index 43a4a1a..b34f0c8 100644 --- a/src/pages/popup/popup.html +++ b/src/pages/popup/popup.html @@ -142,7 +142,11 @@ -

+

Search Engine Redirects