diff --git a/_locales/en/messages.json b/_locales/en/messages.json new file mode 100644 index 0000000..8076052 --- /dev/null +++ b/_locales/en/messages.json @@ -0,0 +1,53 @@ +{ + "extension_name": { + "message": "ShportRemover" + }, + + "extension_description": { + "message": "Remove Short videos from YouTube for a distraction-free experience." + }, + + "options_name": { + "message": "Settings" + }, + + "options_parameters": { + "message": "Parameters" + }, + + "options_themes": { + "message": "Themes" + }, + + "options_languages": { + "message": "Languages" + }, + + "param_NavbarButtonUndeployed": { + "message": "Navbar button undeployed" + }, + + "param_NavbarButtonDeployed": { + "message": "Navbar button deployed" + }, + + "param_ChannelTab": { + "message": "Channel short tab" + }, + + "param_HomePageRecommendedShort": { + "message": "Home page recommended Short" + }, + + "param_ShortInSearchResult": { + "message": "Short in search result" + }, + + "param_VideoPlayerRecommendedShort": { + "message": "Video Player recommended Short" + }, + + "param_SubscriptionShort": { + "message": "Subscription Short" + } +} \ No newline at end of file diff --git a/_locales/fr/messages.json b/_locales/fr/messages.json new file mode 100644 index 0000000..a511cd3 --- /dev/null +++ b/_locales/fr/messages.json @@ -0,0 +1,53 @@ +{ + "extension_name": { + "message": "ShortRemover" + }, + + "extension_description": { + "message": "Supprimez les videos Short de YouTube pour une expérience sans distraction." + }, + + "options_name": { + "message": "Paramètres" + }, + + "options_parameters": { + "message": "Paramètres" + }, + + "options_themes": { + "message": "Thèmes" + }, + + "options_languages": { + "message": "Langues" + }, + + "param_NavbarButtonUndeployed": { + "message": "Bouton navbar replié" + }, + + "param_NavbarButtonDeployed": { + "message": "Bouton navbar déployé" + }, + + "param_ChannelTab": { + "message": "Onglet short des chaînes" + }, + + "param_HomePageRecommendedShort": { + "message": "Short recommandé dans l'accueil" + }, + + "param_ShortInSearchResult": { + "message": "Short dans les recherches" + }, + + "param_VideoPlayerRecommendedShort": { + "message": "Short recommandé dans le lecteur" + }, + + "param_SubscriptionShort": { + "message": "Short dans les abonnements" + } +} \ No newline at end of file diff --git a/css/base.css b/css/base.css index 656451f..9593345 100644 --- a/css/base.css +++ b/css/base.css @@ -10,6 +10,9 @@ --color-subtext: #ff8a71; --slider-background: linear-gradient(114deg, #9b96a1e6 -13.86%, #838383e6 99.55%); --slider-thumb: #040c18; + --scrollbar-thumb: #09213a; + --scrollbar-thumb-hover: #0d2c4a; + --scrollbar-background: #040c18; --refresh-background: #868686e6; --refresh-hover: #707070e6; } @@ -22,6 +25,9 @@ --color-text-hover: #141418; --color-subtext: #ff8a71; --slider-thumb: #f5faff; + --scrollbar-thumb: #e1e2e3; + --scrollbar-thumb-hover: #cfcfcf; + --scrollbar-background: #efefef; --refresh-background: #868686e6; --refresh-hover: #707070e6; } @@ -132,4 +138,19 @@ background: var(--gradient-color); background-clip: text; -webkit-background-clip: text; +} + +::-webkit-scrollbar { + width: 10px; + background-color: var(--scrollbar-background); +} + +::-webkit-scrollbar-thumb { + background-color: var(--scrollbar-thumb); + -webkit-transition: 0.35s; + transition: 0.35s; + cursor: pointer; +} +::-webkit-scrollbar-thumb:hover { + opacity: var(--scrollbar-thumb-hover); }/*# sourceMappingURL=base.css.map */ \ No newline at end of file diff --git a/css/options.css b/css/options.css index 61ccee0..76a8e59 100644 --- a/css/options.css +++ b/css/options.css @@ -91,7 +91,7 @@ header .header-right__theme:hover { .themes__container { display: grid; margin: 40px; - grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); + grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); grid-gap: 1.5rem; } .themes__container--item { @@ -111,7 +111,18 @@ header .header-right__theme:hover { grid-area: 1/1/2/2; } .themes__container--item:hover { - filter: brightness(0.6); + filter: brightness(0.8); +} +.themes__container--item svg { + position: absolute; + z-index: 2; + height: 100px; + width: 100px; + fill: var(--color-text); + display: none; +} +.themes__container--item.active svg { + display: block; } .themes__container--item:nth-child(1) { background: linear-gradient(89.97deg, #ae67fa 1.84%, #f49867 102.67%); @@ -183,6 +194,52 @@ header .header-right__theme:hover { background: linear-gradient(to right, #3c3b3f, #605c3c); } +.languages { + margin-top: 130px; +} +.languages__container { + display: grid; + margin: 40px; + grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); + grid-gap: 1.5rem; +} +.languages__container--item { + padding: 3px; + display: grid; + place-items: center; + border-radius: 15px; + border: 3px solid var(--color-text); + cursor: pointer; + transition-duration: 0.4s; + overflow: hidden; +} +.languages__container--item::before { + content: ""; + display: block; + grid-area: 1/1/2/2; +} +.languages__container--item:hover { + filter: brightness(0.8); +} +.languages__container--item img { + width: calc(100% + 10px); + height: calc(100% + 10px); + z-index: -1; + -o-object-fit: cover; + object-fit: cover; +} +.languages__container--item svg { + position: absolute; + z-index: 2; + height: 100px; + width: 100px; + fill: var(--color-text); + display: none; +} +.languages__container--item.active svg { + display: block; +} + .switch { position: relative; display: flex; diff --git a/images/flags/de.png b/images/flags/de.png new file mode 100644 index 0000000..5de386f Binary files /dev/null and b/images/flags/de.png differ diff --git a/images/flags/en.png b/images/flags/en.png new file mode 100644 index 0000000..69693ca Binary files /dev/null and b/images/flags/en.png differ diff --git a/images/flags/es.png b/images/flags/es.png new file mode 100644 index 0000000..5e7641e Binary files /dev/null and b/images/flags/es.png differ diff --git a/images/flags/fr.png b/images/flags/fr.png new file mode 100644 index 0000000..feff210 Binary files /dev/null and b/images/flags/fr.png differ diff --git a/images/flags/it.png b/images/flags/it.png new file mode 100644 index 0000000..673cd94 Binary files /dev/null and b/images/flags/it.png differ diff --git a/images/flags/jp.png b/images/flags/jp.png new file mode 100644 index 0000000..e5a5cfb Binary files /dev/null and b/images/flags/jp.png differ diff --git a/images/flags/kr.png b/images/flags/kr.png new file mode 100644 index 0000000..7c42d96 Binary files /dev/null and b/images/flags/kr.png differ diff --git a/images/flags/pt.png b/images/flags/pt.png new file mode 100644 index 0000000..16d5488 Binary files /dev/null and b/images/flags/pt.png differ diff --git a/images/flags/ru.png b/images/flags/ru.png new file mode 100644 index 0000000..f22461b Binary files /dev/null and b/images/flags/ru.png differ diff --git a/images/flags/sa.png b/images/flags/sa.png new file mode 100644 index 0000000..8ec1bfa Binary files /dev/null and b/images/flags/sa.png differ diff --git a/manifest.json b/manifest.json index c592d45..7d1a5e6 100644 --- a/manifest.json +++ b/manifest.json @@ -1,8 +1,9 @@ { "manifest_version": 3, - "name": "ShortRemover", - "version": "0.5.5", - "description": "Remove short videos from YouTube for a distraction-free experience.", + "name": "__MSG_extension_name__", + "version": "0.6.0", + "description": "__MSG_extension_description__", + "default_locale": "en", "options_page": "pages/options.html", "icons": { "16": "images/icon-16.png", @@ -10,7 +11,13 @@ "128": "images/icon-128.png" }, "action": { - "default_popup": "pages/popup.html" + "default_title": "ShortRemover", + "default_popup": "pages/popup.html", + "default_icon": { + "16": "images/icon-16.png", + "32": "images/icon-32.png", + "128": "images/icon-128.png" + } }, "background": { "service_worker": "scripts/service-worker.js" @@ -28,5 +35,6 @@ "matches": ["*://*.youtube.com/*"], "run_at": "document_start" } - ] + ], + "key": "dbacfcfndghenkcjhfflilgnebcgodlk" } \ No newline at end of file diff --git a/pages/options.html b/pages/options.html index 5ae3482..754aa31 100644 --- a/pages/options.html +++ b/pages/options.html @@ -8,7 +8,7 @@ - Document + ShortRemover - Options