From 0967daadb6da6311e41bf987d2143f97c2a1d535 Mon Sep 17 00:00:00 2001 From: Rasz_pl Date: Thu, 4 Apr 2024 14:10:55 +0200 Subject: [PATCH 1/9] Update satus.js cut ~200ms from popup creation time --- menu/satus.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/menu/satus.js b/menu/satus.js index b1a4c6bd2..3bb09dcc8 100644 --- a/menu/satus.js +++ b/menu/satus.js @@ -896,10 +896,6 @@ satus.storage.import = function(keys, callback) { callback = keys; keys = undefined; } - const overlay = document.createElement('div'); - overlay.style.cssText = 'animation: fadeIn 4s linear; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 3px solid rgba(182, 233, 255, 1); border-radius: 80px; padding: 37px; color: rgba(120, 147, 161, 1);'; - overlay.textContent = '...asking your browser what settings you made here before...'; - (document.body || document.documentElement).appendChild(overlay); chrome.storage.local.get(keys || null, function(items) { for (var key in items) { self.data[key] = items[key]; @@ -907,7 +903,6 @@ satus.storage.import = function(keys, callback) { // satus.log('STORAGE: data was successfully imported'); satus.events.trigger('storage-import'); if (callback) { callback(items); } - overlay.style.display = 'none'; }); }; /*-------------------------------------------------------------- From 2b56ab0ef434eff9df14a94838523d1b817277b6 Mon Sep 17 00:00:00 2001 From: Rasz_pl Date: Thu, 4 Apr 2024 14:12:18 +0200 Subject: [PATCH 2/9] Update index.html faster load --- menu/index.html | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/menu/index.html b/menu/index.html index 62c15308a..7ccd89640 100644 --- a/menu/index.html +++ b/menu/index.html @@ -1,9 +1,22 @@ -ImprovedTube - - +ImprovedTube + + + + + + + + + + + + +
...asking your browser what settings you made here before...
+ + - + @@ -18,18 +31,4 @@ - - - - - - - - - - - - - - - + From a9cac63b6e909966bbba53f5e6b6d98a42310988 Mon Sep 17 00:00:00 2001 From: Rasz_pl Date: Sat, 6 Apr 2024 08:38:09 +0200 Subject: [PATCH 3/9] Update index.js moving global to skeleton --- menu/index.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/menu/index.js b/menu/index.js index 58b47bbc3..189b92429 100644 --- a/menu/index.js +++ b/menu/index.js @@ -1,19 +1,5 @@ /*-------------------------------------------------------------- >>> INDEX: ----------------------------------------------------------------- -# Global variable -# Initialization ---------------------------------------------------------------*/ - -/*-------------------------------------------------------------- -# GLOBAL VARIABLE ---------------------------------------------------------------*/ - -var extension = { - skeleton: {} -}; - - /*-------------------------------------------------------------- # INITIALIZATION --------------------------------------------------------------*/ From 63e4971c174c3c297b0a4bd56b8d52514fe11b67 Mon Sep 17 00:00:00 2001 From: Rasz_pl Date: Sat, 6 Apr 2024 08:41:54 +0200 Subject: [PATCH 4/9] Update skeleton.js global "extension" always declared first --- menu/skeleton.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/menu/skeleton.js b/menu/skeleton.js index b6136141e..6a39ba41c 100644 --- a/menu/skeleton.js +++ b/menu/skeleton.js @@ -10,11 +10,12 @@ # BASE --------------------------------------------------------------*/ -extension.skeleton = { - component: 'base' +var extension = { + skeleton: { + component: 'base' + } }; - /*-------------------------------------------------------------- # HEADER --------------------------------------------------------------*/ @@ -245,4 +246,4 @@ extension.skeleton.main = { } }, "frame": { component: 'iframe', class: 'frame', attr: { 'src': 'https://improvedtube.com/wishes', 'style': 'border: none; bottom: 0px; overflow: hidden; width:326px; position:absolute; height:212px; left:-6px !important' } } } -}; \ No newline at end of file +}; From 791404df1ac56787121bbfceae665f34e6ccf279 Mon Sep 17 00:00:00 2001 From: Rasz_pl Date: Sat, 6 Apr 2024 08:46:20 +0200 Subject: [PATCH 5/9] Update index.html correct order of parsing and execution, defer index.js so it executed when document.body exist --- menu/index.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/menu/index.html b/menu/index.html index 7ccd89640..24ff722d6 100644 --- a/menu/index.html +++ b/menu/index.html @@ -11,10 +11,8 @@ - -
...asking your browser what settings you made here before...
+ - @@ -31,4 +29,5 @@ - + + From d0ce1ba01fec10a406fd9539e82856fe84f944d7 Mon Sep 17 00:00:00 2001 From: ImprovedTube Date: Mon, 6 May 2024 15:10:12 +0200 Subject: [PATCH 6/9] Update satus.js --- menu/satus.js | 1 + 1 file changed, 1 insertion(+) diff --git a/menu/satus.js b/menu/satus.js index 3bb09dcc8..d23eecadd 100644 --- a/menu/satus.js +++ b/menu/satus.js @@ -903,6 +903,7 @@ satus.storage.import = function(keys, callback) { // satus.log('STORAGE: data was successfully imported'); satus.events.trigger('storage-import'); if (callback) { callback(items); } + loading.style.display = 'none'; }); }; /*-------------------------------------------------------------- From e0eb172f64e25f85cda5e8647cb876f7ba276074 Mon Sep 17 00:00:00 2001 From: ImprovedTube Date: Mon, 6 May 2024 15:37:16 +0200 Subject: [PATCH 7/9] Update index.html --- menu/index.html | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/menu/index.html b/menu/index.html index 24ff722d6..90b368063 100644 --- a/menu/index.html +++ b/menu/index.html @@ -1,17 +1,5 @@ ImprovedTube - - - - - - - - - - - - @@ -29,5 +17,19 @@ + + + + + + + + + + + + + - +
...asking your browser what settings you made here before...
+ From 395da00b6dc7956134f64d2c0589e75391734fe2 Mon Sep 17 00:00:00 2001 From: ImprovedTube Date: Mon, 6 May 2024 16:44:54 +0200 Subject: [PATCH 8/9] Update index.html --- menu/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu/index.html b/menu/index.html index 90b368063..575ec1dc0 100644 --- a/menu/index.html +++ b/menu/index.html @@ -18,6 +18,7 @@ + @@ -30,6 +31,5 @@ -
...asking your browser what settings you made here before...
From 646c49f7f0b9b0186a8b5e8c29df962aac1ecf13 Mon Sep 17 00:00:00 2001 From: ImprovedTube Date: Mon, 6 May 2024 16:53:18 +0200 Subject: [PATCH 9/9] Update index.js --- menu/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/menu/index.js b/menu/index.js index 189b92429..4873dd1f0 100644 --- a/menu/index.js +++ b/menu/index.js @@ -1,9 +1,10 @@ /*-------------------------------------------------------------- >>> INDEX: /*-------------------------------------------------------------- +---------------------------------------------------------------- +# Global variable //moved to skeleton.js: (var extension = {skeleton:{} }; # INITIALIZATION --------------------------------------------------------------*/ - satus.storage.import(function (items) { var language = items.language; if (!language || language === 'default') { language = false;}