From f6d6896351614e34aef5550a8fbc9f28e4a30ca9 Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Sat, 16 Apr 2022 02:15:49 -0400 Subject: [PATCH 001/135] Removed short_name from manifest which was a leftover from the TweetDeck Enhancer days and I never bothered cleaning up up lmao --- common/manifest.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/manifest.json b/common/manifest.json index 57e38d13..568590d3 100644 --- a/common/manifest.json +++ b/common/manifest.json @@ -1,11 +1,9 @@ { "name": "__MSG_name__", - "short_name": "ModernDeck", + "description": "__MSG_description__", "author":"dangered wolf", - "description": "__MSG_description__", - "version": "10.0", "default_locale":"en", From 50d6b92bbe9cd78c0a7240cef1128749868746b1 Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Sat, 16 Apr 2022 02:16:02 -0400 Subject: [PATCH 002/135] idk why it was like that before --- src/Boot/Items/FadeOut.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Boot/Items/FadeOut.ts b/src/Boot/Items/FadeOut.ts index b1520bba..4e0496bb 100644 --- a/src/Boot/Items/FadeOut.ts +++ b/src/Boot/Items/FadeOut.ts @@ -48,7 +48,7 @@ export function overrideFadeOut() { // here we add event listeners to add a fading out animation when a modal dialog is closed // @ts-ignore - document.querySelectorAll(".js-modals-container")[0].removeChild = (rmnode: HTMLElement) => { + document.querySelector(".js-modals-container").removeChild = (rmnode: HTMLElement) => { $(rmnode).addClass("mtd-fade-out"); setTimeout(() => { rmnode.remove(); From 219d792adfbc86c4e7bf244529610be8b3d2cc38 Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Sat, 16 Apr 2022 03:40:19 -0400 Subject: [PATCH 003/135] Trying to fix the login screen --- src/Boot/Items/LoginScreen.ts | 5 ++++- src/Boot/Stages/Core.ts | 2 ++ src/DataMustaches.ts | 2 +- src/Types/Window.ts | 1 + src/UILoginController.js | 8 +++++--- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/Boot/Items/LoginScreen.ts b/src/Boot/Items/LoginScreen.ts index 5f73a25f..d9ee6cdf 100644 --- a/src/Boot/Items/LoginScreen.ts +++ b/src/Boot/Items/LoginScreen.ts @@ -26,7 +26,10 @@ if (mtdStarted.getHours() < 12) { // 12:00 / 12:00pm export const initLoginScreen = () => { checkIfSigninFormIsPresent(); - setInterval(checkIfSigninFormIsPresent, 500); + window.loginInterval = setInterval(checkIfSigninFormIsPresent, 500); + + // @ts-ignore + window.loginTextReplacer = loginTextReplacer; handleErrors(loginTextReplacer, "Caught error in loginTextReplacer"); setTimeout(()=>handleErrors(loginTextReplacer, "Caught error in loginTextReplacer"),200); diff --git a/src/Boot/Stages/Core.ts b/src/Boot/Stages/Core.ts index 3db50285..8883ed2a 100644 --- a/src/Boot/Stages/Core.ts +++ b/src/Boot/Stages/Core.ts @@ -12,6 +12,7 @@ import { initAutoUpdater } from "../Items/AutoUpdater"; import { initAppFunctions } from "../Items/AppFunctions"; import { urlExchange } from "../Items/URLExchange"; import { drawAsciiArt } from "../Items/AsciiArt"; +import { initLoginScreen } from "../Items/LoginScreen"; export const coreStage = async () => { console.log("Boot: Beginning Core stage..."); @@ -19,6 +20,7 @@ export const coreStage = async () => { await defineBootComponent(initSentry); await defineBootComponent(urlExchange); await defineBootComponent(extractJQuery); + await defineBootComponent(initLoginScreen); await defineBootComponent(initAutoUpdater, typeof window.require !== "undefined"); await defineBootComponent(initAppFunctions, typeof window.require !== "undefined"); } \ No newline at end of file diff --git a/src/DataMustaches.ts b/src/DataMustaches.ts index 1ea3fc2a..d7271a9c 100644 --- a/src/DataMustaches.ts +++ b/src/DataMustaches.ts @@ -9,7 +9,7 @@ import { I18n } from "./I18n"; export const _newLoginPage: string = `