From 70e8a95a50ce0e60a835a7fc8cbf05e60aa84f1e Mon Sep 17 00:00:00 2001 From: smartfridge <37928912+smartfrigde@users.noreply.github.com> Date: Sat, 22 May 2021 17:29:39 +0200 Subject: [PATCH 1/2] Fix Linux file naming or something --- utils/theme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/theme.js b/utils/theme.js index 8814e82..ec69650 100644 --- a/utils/theme.js +++ b/utils/theme.js @@ -1,5 +1,5 @@ const fs = require("fs"); -const armcord = require("./armcord.js"); +const armcord = require("./ArmCord.js"); const themeFolder = __dirname + "/themes/"; window.addEventListener("DOMContentLoaded", () => { From e4b54dda05ecb05f3c710f6acf3933d53a287d84 Mon Sep 17 00:00:00 2001 From: smartfridge <37928912+smartfrigde@users.noreply.github.com> Date: Sat, 22 May 2021 23:21:07 +0200 Subject: [PATCH 2/2] cors my beloved <3 --- utils/plugins/goosemod/CSP.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/utils/plugins/goosemod/CSP.js b/utils/plugins/goosemod/CSP.js index 03dea62..19dc3d5 100644 --- a/utils/plugins/goosemod/CSP.js +++ b/utils/plugins/goosemod/CSP.js @@ -8,3 +8,14 @@ chrome.webRequest.onHeadersReceived.addListener((h) => { }, {urls: ["*://*.discord.com/*"]}, ['blocking', 'responseHeaders'] ) + +const corsAllowUrls = [ + 'https://github.com/GooseMod/GooseMod/releases/download/dev/index.js', + 'https://github-releases.githubusercontent.com/' + ]; + +if (corsAllowUrls.some((x) => url.startsWith(x))) { + responseHeaders['access-control-allow-origin'] = ['*']; + } +//psst stolen from https://raw.githubusercontent.com/Goose-Nest/GooseUpdate/main/branches/goosemod/patch.js +//dont tell anyone :troll: