feat: add tentative "CC slowness fix" feature
This is an urgent addition to help fix a CC issue.
Related to
https://groups.google.com/g/twpowertools-discuss/c/RUr7249IBuQ.
Change-Id: I3d40b70fb71b31f0b47c5f04ee20f440e49f2029
diff --git a/src/contentScripts/communityConsole/start.js b/src/contentScripts/communityConsole/start.js
index a0640ba..c4a3d74 100644
--- a/src/contentScripts/communityConsole/start.js
+++ b/src/contentScripts/communityConsole/start.js
@@ -11,9 +11,15 @@
getOptions(null).then(options => {
/* IMPORTANT NOTE: Remember to change this when changing the "ifs" below!! */
if (options.loaddrafts || options.interopthreadpage ||
- options.nestedreplies) {
+ options.nestedreplies || options.fixpekb269560789) {
var startup =
- JSON.parse(document.querySelector('html').getAttribute('data-startup'));
+ JSON.parse(document.querySelector('html').getAttribute('data-startup'));
+
+ if (options.fixpekb269560789) {
+ if (startup[1]?.[1]?.[8]?.[7]) {
+ delete startup[1]?.[1]?.[8]?.[7];
+ }
+ }
if (options.loaddrafts) {
startup[4][13] = true;