From 03c4a53190464536b230901ed773696904cc087f Mon Sep 17 00:00:00 2001 From: aciidic Date: Sun, 28 Feb 2021 13:56:14 +0000 Subject: [PATCH] Option to disable firstrun/update popups Repurpose "NO_NAG" option. When activated it will disable the popups during first run and extension updates. --- src/js/options.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/options.js b/src/js/options.js index 935dcb14..5bdf51ac 100644 --- a/src/js/options.js +++ b/src/js/options.js @@ -23,6 +23,7 @@ ignoreCache: gsStorage.IGNORE_CACHE, addContextMenu: gsStorage.ADD_CONTEXT, syncSettings: gsStorage.SYNC_SETTINGS, + noNag: gsStorage.NO_NAG, timeToSuspend: gsStorage.SUSPEND_TIME, theme: gsStorage.THEME, whitelist: gsStorage.WHITELIST, @@ -73,7 +74,7 @@ setSyncNoteVisibility(!gsStorage.getOption(gsStorage.SYNC_SETTINGS)); let searchParams = new URL(location.href).searchParams; - if (searchParams.has('firstTime')) { + if (searchParams.has('firstTime') && !gsStorage.getOption(gsStorage.NO_NAG)) { document .querySelector('.welcome-message') .classList.remove('reallyHidden');