Remove EOL mods

This commit is contained in:
smartfrigde 2022-09-27 11:11:56 +00:00
parent 7e9e43fa6a
commit 4613f77f30
8 changed files with 15 additions and 44 deletions

View file

@ -111,7 +111,6 @@ div {
width: 292px; width: 292px;
} }
[armcord-platform="win32"] .titlebar #window-controls-container #maximize, [armcord-platform="win32"] .titlebar #window-controls-container #maximize,
[armcord-platform="linux"] .titlebar #window-controls-container #maximize { [armcord-platform="linux"] .titlebar #window-controls-container #maximize {
display: none; display: none;

View file

@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/ico" href="./favicon.ico"> <link rel="icon" type="image/ico" href="./favicon.ico" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ArmCord Setup</title> <title>ArmCord Setup</title>
@ -53,9 +53,7 @@
<p class="text-center setup-ask" id="setup_question4">Select a client mod you want to install:</p> <p class="text-center setup-ask" id="setup_question4">Select a client mod you want to install:</p>
<div class="center"> <div class="center">
<select name="mod" id="mod" class="dropdown-button"> <select name="mod" id="mod" class="dropdown-button">
<option value="cumcord">Cumcord</option> <option value="none">None (check Discord)</option>
<option value="goosemod">GooseMod</option>
<option value="flicker">Flicker (Heavily WIP)</option>
</select> </select>
</div> </div>
<p class="text-center" id="setup_question4_clientmodnotice"> <p class="text-center" id="setup_question4_clientmodnotice">
@ -120,7 +118,7 @@
minimizeToTray: true, minimizeToTray: true,
alternativePaste: false, alternativePaste: false,
automaticPatches: false, automaticPatches: false,
mods: "cumcord", mods: "none",
inviteWebsocket: true, inviteWebsocket: true,
mobileMode: false, mobileMode: false,
trayIcon: "default", trayIcon: "default",

View file

@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/ico" href="./favicon.ico"> <link rel="icon" type="image/ico" href="./favicon.ico" />
<title>ArmCord</title> <title>ArmCord</title>
<style> <style>
@import url("css/splash.css"); @import url("css/splash.css");

View file

@ -21,15 +21,7 @@ const unstrictCSP = () => {
const cspAllowAll = ["connect-src", "style-src", "img-src", "font-src"]; const cspAllowAll = ["connect-src", "style-src", "img-src", "font-src"];
const corsAllowUrls = [ const corsAllowUrls = ["https://raw.githubusercontent.com/Cordwood/builds/master/index.js"];
"https://github.com/GooseMod/GooseMod/releases/download/dev/index.js",
"https://github-releases.githubusercontent.com/",
"https://api.goosemod.com/inject.js",
"https://raw.githubusercontent.com/Cumcord/Cumcord/stable/dist/build.js",
"https://raw.githubusercontent.com/Cumcord/Cumcord/master/dist/build.js",
"https://raw.githubusercontent.com/FlickerMod/dist/main/build.js",
"https://raw.githubusercontent.com/Cordwood/builds/master/index.js"
];
electron.session.defaultSession.webRequest.onHeadersReceived(({responseHeaders, url}, done) => { electron.session.defaultSession.webRequest.onHeadersReceived(({responseHeaders, url}, done) => {
let csp = responseHeaders!["content-security-policy"]; let csp = responseHeaders!["content-security-policy"];

View file

@ -13,9 +13,10 @@ async function updateLang() {
if (window.location.href.indexOf("setup.html") > -1) { if (window.location.href.indexOf("setup.html") > -1) {
console.log("Setup, skipping lang update"); console.log("Setup, skipping lang update");
} else { } else {
addScript(`function getDiscordLang() { // addScript(`function getDiscordLang() {
{const _w=webpackChunkdiscord_app;let lang;_w.push([[Symbol()],{},e=>{for(const k in e.c){const m=e.c[k].exports;const mDef=m?.default&&m.__esModule?m.default:m;if(mDef?._chosenLocale&&!lang)lang=mDef}}]);_w.pop();window.armcord.setLang(lang._chosenLocale);return lang._chosenLocale;void 0}} // {const _w=webpackChunkdiscord_app;let lang;_w.push([[Symbol()],{},e=>{for(const k in e.c){const m=e.c[k].exports;const mDef=m?.default&&m.__esModule?m.default:m;if(mDef?._chosenLocale&&!lang)lang=mDef}}]);_w.pop();window.armcord.setLang(lang._chosenLocale);return lang._chosenLocale;void 0}}
getDiscordLang();`); // getDiscordLang();`);
// haha get patched kid
} }
} }
declare global { declare global {
@ -25,8 +26,6 @@ declare global {
} }
const clientMods = { const clientMods = {
goosemod: "https://api.goosemod.com/inject.js", goosemod: "https://api.goosemod.com/inject.js",
cumcord: "https://raw.githubusercontent.com/Cumcord/Cumcord/stable/dist/build.js",
flicker: "https://raw.githubusercontent.com/FlickerMod/dist/main/build.js",
cordwood: "https://raw.githubusercontent.com/Cordwood/builds/master/index.js" cordwood: "https://raw.githubusercontent.com/Cordwood/builds/master/index.js"
}; };
@ -57,16 +56,6 @@ if (window.location.href.indexOf("splash.html") > -1) {
console.log("Loading GooseMod..."); console.log("Loading GooseMod...");
await updateLang(); await updateLang();
break; break;
case "cumcord":
injectJS(clientMods.cumcord);
console.log("Loading Cumcord...");
await updateLang();
break;
case "flicker":
injectJS(clientMods.flicker);
console.log("Loading FlickerMod...");
await updateLang();
break;
case "cordwood": case "cordwood":
injectJS(clientMods.cordwood); injectJS(clientMods.cordwood);
console.log("Loading Cordwood..."); console.log("Loading Cordwood...");

View file

@ -143,8 +143,8 @@
<br /> <br />
<div class="switch acAdvSettings"> <div class="switch acAdvSettings">
<h1 class="center advancedText">⚠️ Advanced User Zone ⚠️</h1> <h1 class="center advancedText">⚠️ Advanced User Zone ⚠️</h1>
<br> <br />
<br> <br />
<label class="header" id="settings-skipSplash">Skip Splash Screen (Experimental)</label> <label class="header" id="settings-skipSplash">Skip Splash Screen (Experimental)</label>
<input class="tgl tgl-light left" id="skipSplash" type="checkbox" /> <input class="tgl tgl-light left" id="skipSplash" type="checkbox" />
<label class="tgl-btn left" for="skipSplash"></label> <label class="tgl-btn left" for="skipSplash"></label>
@ -210,7 +210,7 @@
doneSetup: true doneSetup: true
}); });
alert(`Your settings have been saved! alert(`Your settings have been saved!
Some changes may require the app to restart before taking effect.`) Some changes may require the app to restart before taking effect.`);
}); });
document.getElementById("settings-restart").addEventListener("click", function () { document.getElementById("settings-restart").addEventListener("click", function () {
settings.restart(); settings.restart();

View file

@ -123,9 +123,7 @@
<br /> <br />
<div class="switch acClientMod"> <div class="switch acClientMod">
<select name="mod" id="mod" class="left dropdown"> <select name="mod" id="mod" class="left dropdown">
<option value="cumcord">Cumcord</option>
<option value="goosemod">GooseMod</option> <option value="goosemod">GooseMod</option>
<option value="flicker">Flicker</option>
<option value="none">None</option> <option value="none">None</option>
</select> </select>
<p class="header" id="settings-mod">Client mod</p> <p class="header" id="settings-mod">Client mod</p>
@ -133,13 +131,8 @@
Client mods are programs that allow you customize your Discord experience. They can change appearance of Client mods are programs that allow you customize your Discord experience. They can change appearance of
the client, modify behaviours or add new features! the client, modify behaviours or add new features!
<br /> <br />
<b>Cumcord</b> - focuses on making the Discord plugin development experience easier. Minimal and
lightweight.
<br />
<b>GooseMod</b> - light, secure, and easy to use, with out of the box experience. Features a built-in <b>GooseMod</b> - light, secure, and easy to use, with out of the box experience. Features a built-in
store for plugins. store for plugins.
<br />
<b>Flicker</b> - heavily work in progress, doesn't have a working UI.
</p> </p>
</div> </div>
<br /> <br />
@ -178,8 +171,8 @@
<br /> <br />
<div class="switch acAdvSettings"> <div class="switch acAdvSettings">
<h1 class="center advancedText">⚠️ Advanced User Zone ⚠️</h1> <h1 class="center advancedText">⚠️ Advanced User Zone ⚠️</h1>
<br> <br />
<br> <br />
<label class="header" id="settings-skipSplash">Skip Splash Screen (Experimental)</label> <label class="header" id="settings-skipSplash">Skip Splash Screen (Experimental)</label>
<input class="tgl tgl-light left" id="skipSplash" type="checkbox" /> <input class="tgl tgl-light left" id="skipSplash" type="checkbox" />
<label class="tgl-btn left" for="skipSplash"></label> <label class="tgl-btn left" for="skipSplash"></label>

View file

@ -40,7 +40,7 @@ export function setup() {
minimizeToTray: true, minimizeToTray: true,
automaticPatches: false, automaticPatches: false,
alternativePaste: false, alternativePaste: false,
mods: "cumcord", mods: "none",
performanceMode: "none", performanceMode: "none",
skipSplash: false, skipSplash: false,
inviteWebsocket: true, inviteWebsocket: true,