From 7153f4bbe64b05374922ce282bc51785598564c6 Mon Sep 17 00:00:00 2001 From: trickypr <23250792+trickypr@users.noreply.github.com> Date: Tue, 28 Nov 2023 15:29:50 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20pref.js=20formatting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 ++- src/prefs.js | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 9aad0f2..4e84e92 100644 --- a/package.json +++ b/package.json @@ -93,7 +93,8 @@ { "files": "src/prefs.js", "options": { - "semi": true + "semi": true, + "trailingComma": "es5" } } ] diff --git a/src/prefs.js b/src/prefs.js index a5689d6..9303910 100644 --- a/src/prefs.js +++ b/src/prefs.js @@ -16,7 +16,11 @@ pref('browser.search.engine.default', 'google@search.fushra.com'); // Context menu prefs pref( 'browser.contextmenus.page', - 'link__copy,link__new-tab,separator,selection__copy', + 'link__copy,link__new-tab,separator,selection__copy' +); +pref( + 'browser.uiCustomization.state', + '{"type":"block","direction":"vertical","content":[{"type":"block","direction":"horizontal","size":{"type":"content"},"content":[{"type":"tabs"},{"type":"icon","icon":"add-line"}],"color":"base"},{"type":"block","direction":"horizontal","size":{"type":"content"},"content":[{"type":"icon","icon":"arrow-left-line"},{"type":"icon","icon":"refresh-line"},{"type":"icon","icon":"arrow-right-line"},{"type":"spacer","grow":1},{"type":"omnibox"},{"type":"spacer","grow":1},{"type":"icon","icon":"menu-line"}],"color":"surface-0"},{"type":"browser"}],"size":{"type":"grow","value":1},"color":"base"}' ); pref( 'browser.uiCustomization.state', @@ -86,7 +90,7 @@ pref('browser.download.alwaysOpenInSystemViewerContextMenuItem', true); // viewable internally. pref( 'browser.download.viewableInternally.enabledTypes', - 'xml,svg,webp,avif,jxl', + 'xml,svg,webp,avif,jxl' ); // This controls whether the button is automatically shown/hidden depending