Skip to content

Commit

Permalink
v3.712
Browse files Browse the repository at this point in the history
  • Loading branch information
adokseo committed Oct 27, 2021
1 parent 48fdf05 commit fb1e6cc
Show file tree
Hide file tree
Showing 32 changed files with 25,058 additions and 24,836 deletions.
1,986 changes: 996 additions & 990 deletions _locales/ar/messages.json

Large diffs are not rendered by default.

1,974 changes: 990 additions & 984 deletions _locales/bn/messages.json

Large diffs are not rendered by default.

1,974 changes: 990 additions & 984 deletions _locales/de/messages.json

Large diffs are not rendered by default.

1,974 changes: 990 additions & 984 deletions _locales/el/messages.json

Large diffs are not rendered by default.

1,992 changes: 999 additions & 993 deletions _locales/en/messages.json

Large diffs are not rendered by default.

1,974 changes: 990 additions & 984 deletions _locales/es/messages.json

Large diffs are not rendered by default.

1,980 changes: 993 additions & 987 deletions _locales/fr/messages.json

Large diffs are not rendered by default.

1,974 changes: 990 additions & 984 deletions _locales/hin/messages.json

Large diffs are not rendered by default.

1,986 changes: 996 additions & 990 deletions _locales/hr/messages.json

Large diffs are not rendered by default.

1,968 changes: 987 additions & 981 deletions _locales/id/messages.json

Large diffs are not rendered by default.

1,968 changes: 987 additions & 981 deletions _locales/it/messages.json

Large diffs are not rendered by default.

1,974 changes: 990 additions & 984 deletions _locales/ja/messages.json

Large diffs are not rendered by default.

1,968 changes: 987 additions & 981 deletions _locales/ko/messages.json

Large diffs are not rendered by default.

1,980 changes: 993 additions & 987 deletions _locales/nb_NO/messages.json

Large diffs are not rendered by default.

1,974 changes: 990 additions & 984 deletions _locales/nl/messages.json

Large diffs are not rendered by default.

1,956 changes: 981 additions & 975 deletions _locales/no/messages.json

Large diffs are not rendered by default.

1,992 changes: 999 additions & 993 deletions _locales/pl/messages.json

Large diffs are not rendered by default.

1,974 changes: 990 additions & 984 deletions _locales/pt_BR/messages.json

Large diffs are not rendered by default.

1,974 changes: 990 additions & 984 deletions _locales/pt_PT/messages.json

Large diffs are not rendered by default.

1,986 changes: 996 additions & 990 deletions _locales/ro/messages.json

Large diffs are not rendered by default.

1,986 changes: 996 additions & 990 deletions _locales/ru/messages.json

Large diffs are not rendered by default.

1,974 changes: 990 additions & 984 deletions _locales/sk/messages.json

Large diffs are not rendered by default.

1,974 changes: 990 additions & 984 deletions _locales/tr/messages.json

Large diffs are not rendered by default.

1,998 changes: 1,002 additions & 996 deletions _locales/zh_CN/messages.json

Large diffs are not rendered by default.

1,980 changes: 993 additions & 987 deletions _locales/zh_TW/messages.json

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Localization
# Context menu
# Tab focus/blur
# Migration
# Initialization
# Get items from storage
# Storage change listener
Expand Down Expand Up @@ -184,6 +185,19 @@ chrome.windows.onFocusChanged.addListener(function (windowId) {
});


/*--------------------------------------------------------------
# MIGRATION
--------------------------------------------------------------*/

function migration(items) {
if (items.hd_thumbnails === true) {
items.thumbnails_quality = 'maxresdefault';
}

delete items.hd_thumbnails;
}


/*--------------------------------------------------------------
# INITIALIZATION
--------------------------------------------------------------*/
Expand All @@ -195,6 +209,7 @@ chrome.windows.onFocusChanged.addListener(function (windowId) {
chrome.storage.local.get(function (items) {
//googleAnalytics(items.ga);
//uninstallURL();
migration(items);

getLocalization(items.language, function (locale) {
updateContextMenu(locale);
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "'Improve YouTube!' (Video & YouTube Tools)🎧",
"short_name": "ImprovedTube",
"description": "__MSG_description_ext__",
"version": "3.651",
"version": "3.712",
"default_locale": "en",
"icons": {
"128": "icons/128.png",
Expand Down
100 changes: 62 additions & 38 deletions popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,6 @@ body {

body[theme=dark] {
--satus-primary: #ff4158;
--satus-header-background: #1c2027;
--satus-header-text: #b5b5b5;
--satus-layers-background: #121316;
--satus-layers-text: #bfbfbf;
--satus-section-card-background: #191b1f;
--satus-modal-background: #191b1f;
--satus-modal-text: #b5b5b5;
--satus-hover: rgba(255, 255, 255, .07);
--it-category-background: linear-gradient(135deg, #ff4158, #ff001f);
--it-category-shadow: rgba(222, 0, 27, .7);
--it-appearance-shadow-color: #393e46;
--satus-switch-track: #ccc;
}

body[theme=night] {
Expand Down Expand Up @@ -124,16 +112,6 @@ body[theme=plain] {

body[theme=black] {
--satus-primary: #ff4158;
--satus-header-background: #222;
--satus-header-text: #fafafa;
--satus-layers-background: #111;
--satus-layers-text: #eee;
--satus-section-card-background: #222;
--satus-modal-background: #222;
--satus-modal-text: #fafafa;
--satus-hover: rgba(255, 255, 255, .04);
--it-appearance-shadow-color: #222;
--satus-switch-track: #ccc;
}

body {
Expand Down Expand Up @@ -195,6 +173,14 @@ body {
flex: 1;
}

body[title_version='true'] .satus-span--title::after
{
font: 700 10px sans-serif;
margin: 0 0 0 4px;
content: attr(data-version);
opacity: .6
}

.satus-input--search[type=text] {
position: absolute;
z-index: 1;
Expand Down Expand Up @@ -326,13 +312,28 @@ body {
# MAIN
--------------------------------------------------------------*/

.satus-section--home {
position: relative;
body:not([improvedtube_home='list']) .satus-section--home {
position: absolute;
overflow: hidden;
width: 100%;
left: 0;
}

body[improvedtube_home='list'] .satus-section--home {
flex-direction: column;
box-sizing: border-box;
width: 100%;
max-width: 900px;
margin: 8px auto;
padding: 8px 0;
color: var(--satus-section-card-text);
border: 1px solid rgba(0, 0, 0, .1);
border-radius: 8px;
background: var(--satus-section-card-background);
justify-content: stretch;
}

.satus-section--home .satus-button {
body:not([improvedtube_home='list']) .satus-section--home .satus-button {
display: flex;
flex-direction: column;
width: calc(100% / 3);
Expand All @@ -343,15 +344,26 @@ body {
align-items: center;
}

body[page] .satus-section--home .satus-button {
body[improvedtube_home='list'] .satus-section--home>.satus-button {
width: 100%;
padding: 0 16px;
}

body[improvedtube_home='list'] .satus-section--home>.satus-button>span>svg {
width: 20px;
margin: 2px 16px 0 0;
color: var(--satus-primary);
}

body:not([improvedtube_home='list'])[page] .satus-section--home .satus-button {
width: 96px;
}

.satus-section--home .satus-button:hover {
body:not([improvedtube_home='list']) .satus-section--home .satus-button:hover {
background: transparent;
}

.satus-section--home .satus-button> :nth-child(1) {
body:not([improvedtube_home='list']) .satus-section--home .satus-button> :nth-child(1) {
display: block;
overflow: visible;
width: 28px;
Expand All @@ -365,13 +377,13 @@ body[page] .satus-section--home .satus-button {
box-shadow: 0 2px 1px 1px rgb(222, 0, 27, .7), 0 3px 5px rgb(0, 0, 0, .35);
}

.satus-section--home .satus-button:hover> :nth-child(1) {
body:not([improvedtube_home='list']) .satus-section--home .satus-button:hover> :nth-child(1) {
transition: background 250ms 125ms, transform 250ms, box-shadow 275ms;
transform: translateY(4px) scale(.975);
box-shadow: 0 1px 1px 0 rgb(222, 0, 27, .7), 0 1px 2px rgba(0, 0, 0, .35);
}

.satus-section--home .satus-button> :nth-child(2) {
body:not([improvedtube_home='list']) .satus-section--home .satus-button> :nth-child(2) {
overflow: hidden;
width: calc(100% - 16px);
margin: 8px 0 0;
Expand All @@ -380,46 +392,58 @@ body[page] .satus-section--home .satus-button {
text-overflow: ellipsis;
}

.satus-button--general svg {
body:not([improvedtube_home='list']) .satus-button--general svg {
position: relative;
}

.satus-button--appearance svg {
body:not([improvedtube_home='list']) .satus-button--appearance svg {
position: relative;
top: 1px;
left: 1px;
}

.satus-button--themes svg {
body:not([improvedtube_home='list']) .satus-button--themes svg {
position: relative;
}

.satus-button--player svg {
body:not([improvedtube_home='list']) .satus-button--player svg {
position: relative;
top: 1px;
left: 2px;
}

.satus-button--playlist svg {
body:not([improvedtube_home='list']) .satus-button--playlist svg {
position: relative;
top: 1px;
}

.satus-button--shortcuts svg {
body:not([improvedtube_home='list']) .satus-button--shortcuts svg {
position: relative;
top: 1px;
}

.satus-button--blacklist svg {
body:not([improvedtube_home='list']) .satus-button--blacklist svg {
position: relative;
top: 1px;
}

.satus-button--analyzer svg {
body:not([improvedtube_home='list']) .satus-button--analyzer svg {
position: relative;
top: 1px;
}

body[it_general='false'] .satus-button--general,
body[it_appearance='false'] .satus-button--appearance,
body[it_themes='false'] .satus-button--themes,
body[it_player='false'] .satus-button--player,
body[it_playlist='false'] .satus-button--playlist,
body[it_channel='false'] .satus-button--channel,
body[it_shortcuts='false'] .satus-button--shortcuts,
body[it_blacklist='false'] .satus-button--blacklist,
body[it_analyzer='false'] .satus-button--analyzer {
display: none;
}


/*--------------------------------------------------------------
# APPEARANCE
Expand Down
Loading

0 comments on commit fb1e6cc

Please sign in to comment.