Deprecate the "disable unified profiles" feature
The Community Console no longer supports the old per-forum profiles, so
this feature has stopped working.
Change-Id: I8ff6507a03adca483dda3985db92dab486e419e3
diff --git a/src/common/optionsPrototype.json5 b/src/common/optionsPrototype.json5
index 5db7285..a5caa3e 100644
--- a/src/common/optionsPrototype.json5
+++ b/src/common/optionsPrototype.json5
@@ -95,11 +95,6 @@
context: 'options',
killSwitchType: 'option',
},
- 'disableunifiedprofiles': {
- defaultValue: false,
- context: 'options',
- killSwitchType: 'option',
- },
// Experiments:
'threadlistavatars': {
@@ -146,4 +141,9 @@
context: 'deprecated',
killSwitchType: 'deprecated',
},
+ 'disableunifiedprofiles': {
+ defaultValue: false,
+ context: 'deprecated',
+ killSwitchType: 'deprecated',
+ },
}
diff --git a/src/contentScripts/communityConsole/start.js b/src/contentScripts/communityConsole/start.js
index ae26cec..4e8af62 100644
--- a/src/contentScripts/communityConsole/start.js
+++ b/src/contentScripts/communityConsole/start.js
@@ -3,11 +3,9 @@
import AutoRefresh from './autoRefresh.js';
-const SMEI_UNIFIED_PROFILES = 9;
-
getOptions(null).then(options => {
/* IMPORTANT NOTE: Remember to change this when changing the "ifs" below!! */
- if (options.loaddrafts || options.disableunifiedprofiles) {
+ if (options.loaddrafts) {
var startup =
JSON.parse(document.querySelector('html').getAttribute('data-startup'));
@@ -15,11 +13,6 @@
startup[4][13] = true;
}
- if (options.disableunifiedprofiles) {
- var index = startup[1][6].indexOf(SMEI_UNIFIED_PROFILES);
- if (index > -1) startup[1][6].splice(index, 1);
- }
-
document.querySelector('html').setAttribute(
'data-startup', JSON.stringify(startup));
}
diff --git a/src/static/_locales/en/messages.json b/src/static/_locales/en/messages.json
index 78342c9..f435664 100644
--- a/src/static/_locales/en/messages.json
+++ b/src/static/_locales/en/messages.json
@@ -99,10 +99,6 @@
"message": "Show a notification in the Community Console when a thread list has new updates.",
"description": "Feature checkbox in the options page"
},
- "options_disableunifiedprofiles": {
- "message": "Force disable the <code class=\"help\" title=\"This experiment, when enabled, introduces a redesign of the profile view which also unifies all forum profiles into a single one.\">SMEI_UNIFIED_PROFILES</code> experiment in the Community Console.",
- "description": "Feature checkbox in the options page"
- },
"options_profileindicator_header": {
"message": "Indicator dot",
"description": "Heading for the profile indicator feature options"
diff --git a/src/static/options/options.html b/src/static/options/options.html
index 89413bc..f22fb30 100644
--- a/src/static/options/options.html
+++ b/src/static/options/options.html
@@ -55,7 +55,6 @@
<div class="option"><input type="checkbox" id="batchlock"> <label for="batchlock" data-i18n="batchlock"></label> <span class="experimental-label" data-i18n="experimental_label"></span></div>
<div class="option"><input type="checkbox" id="enhancedannouncementsdot"> <label for="enhancedannouncementsdot" data-i18n="enhancedannouncementsdot"></label></div>
<div class="option"><input type="checkbox" id="repositionexpandthread"> <label for="repositionexpandthread" data-i18n="repositionexpandthread"></label> <span class="experimental-label" data-i18n="experimental_label"></span></div>
- <div class="option"><input type="checkbox" id="disableunifiedprofiles"> <label for="disableunifiedprofiles" data-i18n="disableunifiedprofiles"></label> <span class="experimental-label" data-i18n="experimental_label"></span></div>
<h4 data-i18n="profileindicator_header"></h4>
<div class="option"><input type="checkbox" id="profileindicator"> <label for="profileindicator" data-i18n="profileindicator"></label> <span class="experimental-label" data-i18n="experimental_label"></span></div>
<div class="option"><input type="checkbox" id="profileindicatoralt"> <label for="profileindicatoralt" data-i18n="profileindicatoralt"></label> <span class="experimental-label" data-i18n="experimental_label"></span></div>