From 265c5a71734bb7df7a5afd304cfff247f4db9a53 Mon Sep 17 00:00:00 2001 From: Erin Date: Mon, 3 Feb 2025 16:49:40 -0500 Subject: [PATCH 1/3] remove references to beta settings there are none right now, but, yknow --- extension/data/modules/comment.js | 1 - extension/data/modules/queuetools.js | 2 -- 2 files changed, 3 deletions(-) diff --git a/extension/data/modules/comment.js b/extension/data/modules/comment.js index fcb0d96b..d9fa7820 100644 --- a/extension/data/modules/comment.js +++ b/extension/data/modules/comment.js @@ -23,7 +23,6 @@ const self = new Module({ id: 'openContextInPopup', type: 'boolean', default: true, - beta: false, description: 'Add a link to comments where appropiate to open the context in a popup on page.', }, { diff --git a/extension/data/modules/queuetools.js b/extension/data/modules/queuetools.js index 85f47a1c..d3ba4f46 100644 --- a/extension/data/modules/queuetools.js +++ b/extension/data/modules/queuetools.js @@ -62,7 +62,6 @@ const self = new Module({ id: 'showReportReasons', type: 'boolean', default: false, - beta: false, description: 'Add button to show reports on posts with ignored reports.', }, // @@ -144,7 +143,6 @@ const self = new Module({ id: 'highlightAutomodMatches', type: 'boolean', default: true, - beta: false, description: 'Highlight words in Automoderator report and action reasons which are enclosed in []. Can be used to highlight automod regex matches.', oldReddit: true, From ba02c265bb53710df2637af00166ca3962875582 Mon Sep 17 00:00:00 2001 From: Erin Date: Mon, 3 Feb 2025 16:57:13 -0500 Subject: [PATCH 2/3] remove handling for beta-only settings and modules --- extension/data/tbmodule.jsx | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/extension/data/tbmodule.jsx b/extension/data/tbmodule.jsx index ca279199..8cc69101 100644 --- a/extension/data/tbmodule.jsx +++ b/extension/data/tbmodule.jsx @@ -147,13 +147,6 @@ const TBModule = { return; } - // Don't do anything with beta modules unless this is a beta build - if (module.beta && !['beta', 'dev'].includes(TBCore.buildType)) { - // skip this module entirely - log.debug(`Beta mode not enabled. Skipping ${module.name} module`); - return; - } - // Don't do anything with dev modules unless debug mode is enabled if (!await getSettingAsync('Utils', 'debugMode', false) && module.debugMode) { // skip this module entirely @@ -684,11 +677,6 @@ const TBModule = { // Sort the module list alphabetically const sortedModules = TBModule.modules.sort((a, b) => a.name.localeCompare(b.name)); for (const module of sortedModules) { - // Don't do anything with beta modules unless this is a beta build - if (!['beta', 'dev'].includes(TBCore.buildType) && module.beta) { - continue; - } - // Don't do anything with dev modules unless debug mode is enabled if (!debugMode && module.debugMode) { continue; @@ -765,11 +753,6 @@ const TBModule = { // continue; // } - // hide beta stuff unless this is a beta build - if (options.beta && !['beta', 'dev'].includes(TBCore.buildType)) { - continue; - } - // hide debug stuff unless debug mode enabled if (options.debug && !debugMode) { continue; @@ -1204,8 +1187,6 @@ export default TBModule; * @prop {any} default The default value of the setting, or a function (possibly * async) that returns a default value * @prop {string} [storageKey] The storage key associated with the setting - * @prop {boolean} [beta=false] If true, the setting will only show up when beta - * mode is enabled * @prop {boolean} [debug=false] If true, the setting will only show up when * debug mode is enabled * @prop {boolean} [advanced=false] If true, the setting will only show up when @@ -1225,8 +1206,6 @@ export class Module { * will be enabled on fresh installs * @param {boolean} [options.alwaysEnabled=false] If true, the module cannot * be disabled - * @param {boolean} [options.beta=false] If true, the module will only show - * up in beta builds * @param {boolean} [options.debug=false] If true, the module will only show * up when debug mode is enabled * @param {boolean} [options.oldReddit=false] If true, the module will be @@ -1241,7 +1220,6 @@ export class Module { id = name.replace(/\s/g, ''), enabledByDefault = false, alwaysEnabled = false, - beta = false, debug = false, oldReddit = false, settings = [], @@ -1259,11 +1237,6 @@ export class Module { * @prop {boolean} alwaysEnabled If true, the module cannot be disabled */ this.alwaysEnabled = alwaysEnabled; - /** - * @prop {boolean} beta If true, the module will only show up when beta - * mode is enabled - */ - this.beta = beta; /** * @prop {boolean} debugMode If true, the module will only show up when * debug mode is enabled @@ -1289,7 +1262,6 @@ export class Module { this.settings.set(setting.id, { description: `(${setting.id})`, storageKey: `${id}.${setting.id}`, - beta: false, debug: false, advanced: false, hidden: false, From 55351d26a3d7a0ec47991431d6b8ea6a55152262 Mon Sep 17 00:00:00 2001 From: Erin Date: Mon, 3 Feb 2025 16:57:27 -0500 Subject: [PATCH 3/3] remove invalid attributes from the prerelease info button --- extension/data/modules/modbar.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/extension/data/modules/modbar.js b/extension/data/modules/modbar.js index 90da29b9..20b6d4f4 100644 --- a/extension/data/modules/modbar.js +++ b/extension/data/modules/modbar.js @@ -463,8 +463,6 @@ export default new Module({ $(`