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: 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", () => {