From 6f2962788ddf18fcb318cb5c1962c2af0a9c449b Mon Sep 17 00:00:00 2001 From: PROxZIMA Date: Thu, 17 Nov 2022 10:04:32 +0530 Subject: [PATCH 1/3] Refactor: Remove custom isEnabled bool check in script --- script/floatingToolbox.uc.js | 20 ++++++++++---------- script/hideScrollbar.uc.js | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/script/floatingToolbox.uc.js b/script/floatingToolbox.uc.js index f1f1db4..94d1fc0 100644 --- a/script/floatingToolbox.uc.js +++ b/script/floatingToolbox.uc.js @@ -9,14 +9,14 @@ // ==/UserScript== (function () { - var prefs = Services.prefs, - enabled; - if (prefs.prefHasUserValue('userChromeJS.floatingToolbox.enabled')) { - enabled = prefs.getBoolPref('userChromeJS.floatingToolbox.enabled') - } else { - prefs.setBoolPref('userChromeJS.floatingToolbox.enabled', false); - enabled = false; - } + // var prefs = Services.prefs, + // enabled; + // if (prefs.prefHasUserValue('userChromeJS.floatingToolbox.enabled')) { + // enabled = prefs.getBoolPref('userChromeJS.floatingToolbox.enabled') + // } else { + // prefs.setBoolPref('userChromeJS.floatingToolbox.enabled', false); + // enabled = false; + // } var css = ` #main-window:not([customizing="true"]) #navigator-toolbox { @@ -31,7 +31,7 @@ var sss = Cc['@mozilla.org/content/style-sheet-service;1'].getService(Ci.nsIStyleSheetService); var uri = makeURI('data:text/css;charset=UTF=8,' + encodeURIComponent(css)); - if (enabled) { + // if (enabled) { sss.loadAndRegisterSheet(uri, sss.AGENT_SHEET); - } + // } })(); diff --git a/script/hideScrollbar.uc.js b/script/hideScrollbar.uc.js index c1011e2..bc76073 100644 --- a/script/hideScrollbar.uc.js +++ b/script/hideScrollbar.uc.js @@ -9,14 +9,14 @@ // ==/UserScript== (function () { - var prefs = Services.prefs, - enabled; - if (prefs.prefHasUserValue('userChromeJS.floatingScrollbar.enabled')) { - enabled = prefs.getBoolPref('userChromeJS.floatingScrollbar.enabled') - } else { - prefs.setBoolPref('userChromeJS.floatingScrollbar.enabled', true); - enabled = true; - } + // var prefs = Services.prefs, + // enabled; + // if (prefs.prefHasUserValue('userChromeJS.floatingScrollbar.enabled')) { + // enabled = prefs.getBoolPref('userChromeJS.floatingScrollbar.enabled') + // } else { + // prefs.setBoolPref('userChromeJS.floatingScrollbar.enabled', true); + // enabled = true; + // } var css = ` link[href$="global.css"] ~ scrollbox { @@ -146,7 +146,7 @@ var sss = Cc['@mozilla.org/content/style-sheet-service;1'].getService(Ci.nsIStyleSheetService); var uri = makeURI('data:text/css;charset=UTF=8,' + encodeURIComponent(css)); - if (enabled) { + // if (enabled) { sss.loadAndRegisterSheet(uri, sss.AGENT_SHEET); - } + // } })(); From 493e9c2da94990a2ff543e65ddac4ce088f9aa53 Mon Sep 17 00:00:00 2001 From: PROxZIMA Date: Thu, 17 Nov 2022 10:55:13 +0530 Subject: [PATCH 2/3] Fix: TabsToolbar width --- css/responsiveNavbar.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css/responsiveNavbar.css b/css/responsiveNavbar.css index b475828..4952a42 100644 --- a/css/responsiveNavbar.css +++ b/css/responsiveNavbar.css @@ -46,7 +46,7 @@ min-height: var(--tab-min-height) !important; max-height: var(--tab-min-height) !important; margin-left: var(--navbar-percent) !important; - width: var(--toolbar-percent) !important; + min-width: var(--toolbar-percent) !important; } /* Move navigation 68% to left and negative margin to move to top line */ From c6c42daa702fedc31fd977673f1c6d2f8042658f Mon Sep 17 00:00:00 2001 From: PROxZIMA Date: Thu, 17 Nov 2022 10:55:29 +0530 Subject: [PATCH 3/3] Update: Readme --- README.md | 43 ++++++++++--------------------------------- 1 file changed, 10 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index bae36c9..bd842e5 100644 --- a/README.md +++ b/README.md @@ -23,47 +23,24 @@ ```css  . ├──  assets -│ ├──  context.png -│ ├──  library.png -│ ├──  navbar.gif -│ ├──  preview.png -│ └──  scrollbar.gif +│ └──  preview images ├──  css -│ ├──  findbar.css -│ ├──  floatingToolbox.css -│ ├──  icons.css -│ ├──  library.css │ ├──  myChanges.css -│ ├──  overflowMenu.css -│ ├──  popups.css +│ ├──  icons.css │ ├──  reddit.css +│ ├──  discordCatppuccin.css │ ├──  responsiveNavbar.css -│ ├──  tabbar.css -│ ├──  tweaks.css -│ └──  urlbar.css +│ └──  other .css files ├──  icons │ ├──  animation.svg -│ ├──  back.svg -│ ├──  close.svg -│ ├──  close_hover.svg -│ ├──  closew.svg -│ ├──  fox-transparent.gif -│ ├──  home.svg -│ ├──  infoico.png -│ ├──  max_hover.svg -│ ├──  max_restore.svg -│ ├──  min.svg -│ ├──  min_hover.svg -│ ├──  reload.svg -│ ├──  restore_hover.svg -│ ├──  search.svg -│ ├──  sonic.gif -│ ├──  tab-loading.png -│ ├──  tracking-disabled.svg -│ ├──  tracking-enabled.svg -│ └──  welcome-back.svg +│ └──  many icons in .svg format ├──  LICENSE ├──  programs +│ ├──  install-cfg.sh +│ ├──  install-curl.sh +│ ├──  install.sh +│ ├──  install-curl.bat +│ ├──  install.bat │ ├──  local-settings.js │ ├──  mozilla.cfg │ └──  user.js