From f92f3f1a5e2aba1ea6d765fd06b8a76217186085 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sat, 22 Oct 2022 01:17:06 +0200 Subject: [PATCH] Add license headers --- .eslintrc.json | 34 ++++++++++++++++++ README.md | 2 +- browser/Vencord.ts | 18 ++++++++++ browser/VencordNativeStub.ts | 18 ++++++++++ browser/background.js | 18 ++++++++++ browser/content.js | 19 +++++++++- browser/userscript.meta.js | 35 ++++++++++--------- package.json | 1 + pnpm-lock.yaml | 10 ++++++ scripts/patcher/common.js | 18 ++++++++++ scripts/patcher/install.js | 18 ++++++++++ scripts/patcher/uninstall.js | 18 ++++++++++ scripts/suppressExperimentalWarnings.js | 18 ++++++++++ src/Vencord.ts | 18 ++++++++++ src/VencordNative.ts | 18 ++++++++++ src/api/Commands/commandHelpers.ts | 18 ++++++++++ src/api/Commands/index.ts | 18 ++++++++++ src/api/Commands/types.ts | 18 ++++++++++ src/api/DataStore/index.ts | 23 +++++++++--- src/api/MessageEvents.ts | 18 ++++++++++ src/api/Notices.ts | 18 ++++++++++ src/api/index.ts | 22 +++++++++--- src/api/settings.ts | 18 ++++++++++ src/components/ErrorBoundary.tsx | 18 ++++++++++ src/components/ErrorCard.tsx | 18 ++++++++++ src/components/Flex.tsx | 18 ++++++++++ src/components/Link.tsx | 18 ++++++++++ src/components/Monaco.ts | 21 +++++++++-- src/components/PluginSettings/PluginModal.tsx | 18 ++++++++++ .../components/SettingBooleanComponent.tsx | 18 ++++++++++ .../components/SettingNumericComponent.tsx | 18 ++++++++++ .../components/SettingSelectComponent.tsx | 18 ++++++++++ .../components/SettingSliderComponent.tsx | 18 ++++++++++ .../components/SettingTextComponent.tsx | 18 ++++++++++ .../PluginSettings/components/index.ts | 18 ++++++++++ src/components/PluginSettings/index.tsx | 18 ++++++++++ src/components/PluginSettings/styles.ts | 18 ++++++++++ src/components/Settings.tsx | 18 ++++++++++ src/components/Updater.tsx | 18 ++++++++++ src/components/index.ts | 18 ++++++++++ src/globals.d.ts | 18 ++++++++++ src/ipcMain/index.ts | 18 ++++++++++ src/ipcMain/updater.ts | 18 ++++++++++ src/modules.d.ts | 18 ++++++++++ src/patcher.ts | 18 ++++++++++ src/plugins/STFU.ts | 18 ++++++++++ src/plugins/anonymiseFileNames.ts | 18 ++++++++++ src/plugins/apiCommands.ts | 18 ++++++++++ src/plugins/apiMessageEvents.ts | 18 ++++++++++ src/plugins/apiNotices.ts | 18 ++++++++++ src/plugins/banger.ts | 18 ++++++++++ src/plugins/betterGifAltText.ts | 18 ++++++++++ src/plugins/betterUploadButton.ts | 18 ++++++++++ src/plugins/clearURLs/defaultRules.ts | 24 +++++++------ src/plugins/clearURLs/index.ts | 18 ++++++++++ src/plugins/clickableRoleDot.ts | 18 ++++++++++ src/plugins/consoleShortcuts.ts | 18 ++++++++++ src/plugins/experiments.tsx | 18 ++++++++++ src/plugins/fart.ts | 18 ++++++++++ src/plugins/fxTwitter.ts | 18 ++++++++++ src/plugins/iLoveSpam.ts | 18 ++++++++++ src/plugins/ify.ts | 18 ++++++++++ src/plugins/index.ts | 18 ++++++++++ src/plugins/interactionKeybinds.ts | 18 ++++++++++ src/plugins/messageActions.ts | 18 ++++++++++ src/plugins/moreCommands.ts | 18 ++++++++++ src/plugins/moyai.ts | 18 ++++++++++ src/plugins/muteNewGuild.ts | 18 ++++++++++ src/plugins/nitroBypass.ts | 18 ++++++++++ src/plugins/noBlockedMessages.ts | 18 ++++++++++ src/plugins/noCanaryMessageLinks.ts | 18 ++++++++++ src/plugins/noF1.ts | 18 ++++++++++ src/plugins/noRPC.ts | 18 ++++++++++ src/plugins/noReplyMention.ts | 18 ++++++++++ src/plugins/noSystemBadge.ts | 18 ++++++++++ src/plugins/noTrack.ts | 18 ++++++++++ src/plugins/petpet.ts | 18 ++++++++++ src/plugins/plainFolderIcon.ts | 18 ++++++++++ .../components/PronounsAboutComponent.tsx | 18 ++++++++++ .../components/PronounsChatComponent.tsx | 18 ++++++++++ .../components/PronounsProfileWrapper.tsx | 18 ++++++++++ src/plugins/pronoundb/index.ts | 18 ++++++++++ src/plugins/pronoundb/types.ts | 18 ++++++++++ src/plugins/pronoundb/utils.ts | 18 ++++++++++ src/plugins/sendify.ts | 18 ++++++++++ src/plugins/settings.ts | 18 ++++++++++ src/plugins/silentTyping.ts | 18 ++++++++++ src/plugins/unindent.ts | 18 ++++++++++ src/plugins/unminifyErrors.ts | 18 ++++++++++ src/plugins/uwuify.ts | 18 ++++++++++ src/plugins/vcDoubleClick.ts | 18 ++++++++++ src/plugins/viewIcons.tsx | 18 ++++++++++ src/plugins/webhookTags.ts | 18 ++++++++++ src/preload.ts | 18 ++++++++++ src/utils/ChangeList.ts | 18 ++++++++++ src/utils/IpcEvents.ts | 18 ++++++++++ src/utils/constants.ts | 18 ++++++++++ src/utils/debounce.ts | 18 ++++++++++ src/utils/discord.ts | 18 ++++++++++ src/utils/index.ts | 18 ++++++++++ src/utils/logger.ts | 18 ++++++++++ src/utils/misc.tsx | 18 ++++++++++ src/utils/modal.tsx | 18 ++++++++++ src/utils/proxyLazy.ts | 18 ++++++++++ src/utils/quickCss.ts | 18 ++++++++++ src/utils/types.ts | 18 ++++++++++ src/utils/updater.ts | 18 ++++++++++ src/webpack/common.tsx | 18 ++++++++++ src/webpack/index.ts | 18 ++++++++++ src/webpack/patchWebpack.ts | 18 ++++++++++ src/webpack/webpack.ts | 18 ++++++++++ 111 files changed, 1968 insertions(+), 41 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 9b3ff334..63be05bc 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -2,7 +2,41 @@ "root": true, "parser": "@typescript-eslint/parser", "ignorePatterns": ["dist"], + "plugins": ["header"], "rules": { + // Since it's only been a month and Vencord has already been stolen + // by random skids who rebranded it to "AlphaCord" and erased all license + // information + "header/header": [ + 2, + "block", + [ + { + "pattern": "!?", + "template": "" + }, + " * Vencord, a modification for Discord's desktop app", + { + "pattern": " \\* Copyright \\(c\\) \\d{4}", + "template": " * Copyright (c) 2022 Vendicated and contributors" + }, + " *", + " * This program is free software: you can redistribute it and/or modify", + " * it under the terms of the GNU General Public License as published by", + " * the Free Software Foundation, either version 3 of the License, or", + " * (at your option) any later version.", + " *", + " * This program is distributed in the hope that it will be useful,", + " * but WITHOUT ANY WARRANTY; without even the implied warranty of", + " * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the", + " * GNU General Public License for more details.", + " *", + " * You should have received a copy of the GNU General Public License", + " * along with this program. If not, see .", + "" + ], + 2 + ], "quotes": ["error", "double", { "avoidEscape": true }], "jsx-quotes": ["error", "prefer-double"], "no-mixed-spaces-and-tabs": "error", diff --git a/README.md b/README.md index 51890e27..62ea4a41 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ A Discord client mod that does things differently - Custom Css and Themes: Manually edit `%appdata%/Vencord/settings/quickCss.css` / `~/.config/Vencord/settings/quickCss.css` with your favourite editor and the client will automatically apply your changes. To import BetterDiscord themes, just add `@import url(theUrl)` on the top of this file. (Make sure the url is a github raw URL or similar and only contains plain text, and NOT a nice looking website) - Many Usefulâ„¢ plugins - [List](https://github.com/Vendicated/Vencord/tree/main/src/plugins) - Experiments -- Proper context isolation -> Works in newer Electron versions (Confirmed working on versions 13-21) +- Proper context isolation -> Works in newer Electron versions (Confirmed working on versions 13-22) - Inline patches: Patch Discord's code with regex replacements! See [the experiments plugin](src/plugins/experiments.ts) for an example. While being more complex, this is more powerful than monkey patching since you can patch only small parts of functions instead of fully replacing them, access non exported/local variables and even replace constants (like in the aforementioned experiments patch!) ## Installing / Uninstalling diff --git a/browser/Vencord.ts b/browser/Vencord.ts index 2d4315df..24976a1d 100644 --- a/browser/Vencord.ts +++ b/browser/Vencord.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import "./VencordNativeStub"; export * from "../src/Vencord"; diff --git a/browser/VencordNativeStub.ts b/browser/VencordNativeStub.ts index ee093fac..dca7da82 100644 --- a/browser/VencordNativeStub.ts +++ b/browser/VencordNativeStub.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import IpcEvents from "../src/utils/IpcEvents"; import * as DataStore from "../src/api/DataStore"; diff --git a/browser/background.js b/browser/background.js index b79c94e2..5ffe8e87 100644 --- a/browser/background.js +++ b/browser/background.js @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + if (typeof browser === "undefined") { var browser = chrome; } diff --git a/browser/content.js b/browser/content.js index 5922e8fa..8abf6539 100644 --- a/browser/content.js +++ b/browser/content.js @@ -1,4 +1,21 @@ -// This is just the bootstrap script +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + if (typeof browser === "undefined") { var browser = chrome; diff --git a/browser/userscript.meta.js b/browser/userscript.meta.js index e2a3de52..0a73bc0f 100644 --- a/browser/userscript.meta.js +++ b/browser/userscript.meta.js @@ -1,20 +1,21 @@ -// ==UserScript== -// @name Vencord -// @description A Discord client mod - Web version -// @version %version% -// @author Vendicated (https://github.com/Vendicated) -// @namespace https://github.com/Vendicated/Vencord -// @supportURL https://github.com/Vendicated/Vencord -// @license GPL-3.0 -// @match *://*.discord.com/* -// @grant none -// @run-at document-start -// @compatible chrome Chrome + Tampermonkey or Violentmonkey -// @compatible firefox Firefox Tampermonkey -// @compatible opera Opera + Tampermonkey or Violentmonkey -// @compatible edge Edge + Tampermonkey or Violentmonkey -// @compatible safari Safari + Tampermonkey or Violentmonkey -// ==/UserScript== +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + // this UserScript DOES NOT work on Firefox with Violentmonkey or Greasemonkey due to a bug that makes it impossible // to overwrite stuff on the window on sites that use CSP. Use Tampermonkey or use a chromium based browser diff --git a/package.json b/package.json index b780965d..a47fb5a6 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "discord-types": "^1.3.26", "esbuild": "^0.15.5", "eslint": "^8.24.0", + "eslint-plugin-header": "^3.1.1", "standalone-electron-types": "^1.0.0", "type-fest": "^3.1.0", "typescript": "^4.8.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 915500c8..158c08be 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,6 +10,7 @@ specifiers: electron-devtools-installer: ^3.2.0 esbuild: ^0.15.5 eslint: ^8.24.0 + eslint-plugin-header: ^3.1.1 standalone-electron-types: ^1.0.0 type-fest: ^3.1.0 typescript: ^4.8.4 @@ -27,6 +28,7 @@ devDependencies: discord-types: 1.3.26 esbuild: 0.15.5 eslint: 8.24.0 + eslint-plugin-header: 3.1.1_eslint@8.24.0 standalone-electron-types: 1.0.0 type-fest: 3.1.0 typescript: 4.8.4 @@ -578,6 +580,14 @@ packages: engines: {node: '>=10'} dev: true + /eslint-plugin-header/3.1.1_eslint@8.24.0: + resolution: {integrity: sha512-9vlKxuJ4qf793CmeeSrZUvVClw6amtpghq3CuWcB5cUNnWHQhgcqy5eF8oVKFk1G3Y/CbchGfEaw3wiIJaNmVg==} + peerDependencies: + eslint: '>=7.7.0' + dependencies: + eslint: 8.24.0 + dev: true + /eslint-scope/7.1.1: resolution: {integrity: sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} diff --git a/scripts/patcher/common.js b/scripts/patcher/common.js index 7a417721..840c842e 100644 --- a/scripts/patcher/common.js +++ b/scripts/patcher/common.js @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + const path = require("path"); const readline = require("readline"); const fs = require("fs"); diff --git a/scripts/patcher/install.js b/scripts/patcher/install.js index 56b9dd3b..90e1dbba 100644 --- a/scripts/patcher/install.js +++ b/scripts/patcher/install.js @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + const path = require("path"); const fs = require("fs"); const { execSync } = require("child_process"); diff --git a/scripts/patcher/uninstall.js b/scripts/patcher/uninstall.js index cf727f7e..942375b5 100644 --- a/scripts/patcher/uninstall.js +++ b/scripts/patcher/uninstall.js @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + const path = require("path"); const fs = require("fs"); diff --git a/scripts/suppressExperimentalWarnings.js b/scripts/suppressExperimentalWarnings.js index dd5cd793..978f033a 100644 --- a/scripts/suppressExperimentalWarnings.js +++ b/scripts/suppressExperimentalWarnings.js @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + process.emit = (originalEmit => function (name, data) { if (name === "warning" && data?.name === "ExperimentalWarning") return false; diff --git a/src/Vencord.ts b/src/Vencord.ts index 659d032b..80cd405f 100644 --- a/src/Vencord.ts +++ b/src/Vencord.ts @@ -1,3 +1,21 @@ +/*! + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + export * as Plugins from "./plugins"; export * as Webpack from "./webpack"; export * as Api from "./api"; diff --git a/src/VencordNative.ts b/src/VencordNative.ts index 2ffea690..a3ad095e 100644 --- a/src/VencordNative.ts +++ b/src/VencordNative.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import IPC_EVENTS from "./utils/IpcEvents"; import { IpcRenderer, ipcRenderer } from "electron"; diff --git a/src/api/Commands/commandHelpers.ts b/src/api/Commands/commandHelpers.ts index 544445be..d8b27df6 100644 --- a/src/api/Commands/commandHelpers.ts +++ b/src/api/Commands/commandHelpers.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { filters, waitFor } from "../../webpack"; import type { PartialDeep } from "type-fest"; import { Message } from "discord-types/general"; diff --git a/src/api/Commands/index.ts b/src/api/Commands/index.ts index aaf0a8ea..8384b4a5 100644 --- a/src/api/Commands/index.ts +++ b/src/api/Commands/index.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { makeCodeblock } from "../../utils/misc"; import { generateId, sendBotMessage } from "./commandHelpers"; import { ApplicationCommandInputType, ApplicationCommandType, Argument, Command, CommandContext, Option, CommandReturnValue } from "./types"; diff --git a/src/api/Commands/types.ts b/src/api/Commands/types.ts index d78241ad..a40353f3 100644 --- a/src/api/Commands/types.ts +++ b/src/api/Commands/types.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { Channel, Guild } from "discord-types/general"; import { Promisable } from "type-fest"; diff --git a/src/api/DataStore/index.ts b/src/api/DataStore/index.ts index 3943c11a..f2b1df6a 100644 --- a/src/api/DataStore/index.ts +++ b/src/api/DataStore/index.ts @@ -1,8 +1,21 @@ -// This is https://github.com/jakearchibald/idb-keyval v6.2.0 -// The only change is changing the default DB & Store name -// and formatting it to pass our configs -// I would usually not add my own Copyright for such a small modification -// but the Apache License requires this. +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + /*! * idb-keyval v6.2.0 diff --git a/src/api/MessageEvents.ts b/src/api/MessageEvents.ts index 047a0158..25e302be 100644 --- a/src/api/MessageEvents.ts +++ b/src/api/MessageEvents.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import type { Message, Channel } from "discord-types/general"; import Logger from "../utils/logger"; diff --git a/src/api/Notices.ts b/src/api/Notices.ts index 66cae0ef..4364ca5a 100644 --- a/src/api/Notices.ts +++ b/src/api/Notices.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { waitFor } from "../webpack"; let NoticesModule: any; diff --git a/src/api/index.ts b/src/api/index.ts index a80ea3fe..37f06201 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -1,7 +1,21 @@ -/** - * Creating a local alias for wildcard imports seems to be - * the only way to add JsDoc to them t_t - */ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import * as $MessageEventsAPI from "./MessageEvents"; import * as $Notices from "./Notices"; import * as $Commands from "./Commands"; diff --git a/src/api/settings.ts b/src/api/settings.ts index c2301c67..f80f96b5 100644 --- a/src/api/settings.ts +++ b/src/api/settings.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import plugins from "plugins"; import IpcEvents from "../utils/IpcEvents"; import { React } from "../webpack/common"; diff --git a/src/components/ErrorBoundary.tsx b/src/components/ErrorBoundary.tsx index bb0c3365..ed565c56 100644 --- a/src/components/ErrorBoundary.tsx +++ b/src/components/ErrorBoundary.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import Logger from "../utils/logger"; import { Margins, React } from "../webpack/common"; import { ErrorCard } from "./ErrorCard"; diff --git a/src/components/ErrorCard.tsx b/src/components/ErrorCard.tsx index d0bf8c31..f83be383 100644 --- a/src/components/ErrorCard.tsx +++ b/src/components/ErrorCard.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { Card } from "../webpack/common"; interface Props { diff --git a/src/components/Flex.tsx b/src/components/Flex.tsx index 8a80f02a..c371cb36 100644 --- a/src/components/Flex.tsx +++ b/src/components/Flex.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import type { React } from "../webpack/common"; export function Flex(props: React.PropsWithChildren<{ diff --git a/src/components/Link.tsx b/src/components/Link.tsx index ef342d14..0965b64c 100644 --- a/src/components/Link.tsx +++ b/src/components/Link.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { React } from "../webpack/common"; interface Props { diff --git a/src/components/Monaco.ts b/src/components/Monaco.ts index b23d27b0..495f512a 100644 --- a/src/components/Monaco.ts +++ b/src/components/Monaco.ts @@ -1,4 +1,21 @@ -// this is not actually a Component but I'll put it here anyway trolley +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { IpcEvents } from "../utils"; import { debounce } from "../utils/debounce"; @@ -14,8 +31,6 @@ const setCss = debounce((css: string) => { // adapted from https://stackoverflow.com/a/63179814 export async function launchMonacoEditor() { - // TODO: Making the popup larger does not enlarge the editor and instead - // just adds white space const win = open("about:blank", void 0, "popup,width=1000,height=1000")!; win.getCurrentCss = () => VencordNative.ipc.invoke(IpcEvents.GET_QUICK_CSS); diff --git a/src/components/PluginSettings/PluginModal.tsx b/src/components/PluginSettings/PluginModal.tsx index 3ef36b4d..908876f8 100644 --- a/src/components/PluginSettings/PluginModal.tsx +++ b/src/components/PluginSettings/PluginModal.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { User } from "discord-types/general"; import { Constructor } from "type-fest"; diff --git a/src/components/PluginSettings/components/SettingBooleanComponent.tsx b/src/components/PluginSettings/components/SettingBooleanComponent.tsx index 22679960..da5827b6 100644 --- a/src/components/PluginSettings/components/SettingBooleanComponent.tsx +++ b/src/components/PluginSettings/components/SettingBooleanComponent.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { ISettingElementProps } from "."; import { PluginOptionBoolean } from "../../../utils/types"; import { Forms, React, Select } from "../../../webpack/common"; diff --git a/src/components/PluginSettings/components/SettingNumericComponent.tsx b/src/components/PluginSettings/components/SettingNumericComponent.tsx index f5cc5668..e154f670 100644 --- a/src/components/PluginSettings/components/SettingNumericComponent.tsx +++ b/src/components/PluginSettings/components/SettingNumericComponent.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { ISettingElementProps } from "."; import { OptionType, PluginOptionNumber } from "../../../utils/types"; import { Forms, React, TextInput } from "../../../webpack/common"; diff --git a/src/components/PluginSettings/components/SettingSelectComponent.tsx b/src/components/PluginSettings/components/SettingSelectComponent.tsx index ede15e51..3889c8e8 100644 --- a/src/components/PluginSettings/components/SettingSelectComponent.tsx +++ b/src/components/PluginSettings/components/SettingSelectComponent.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { ISettingElementProps } from "."; import { PluginOptionSelect } from "../../../utils/types"; import { Forms, React, Select } from "../../../webpack/common"; diff --git a/src/components/PluginSettings/components/SettingSliderComponent.tsx b/src/components/PluginSettings/components/SettingSliderComponent.tsx index c11f4ec2..3910e8bd 100644 --- a/src/components/PluginSettings/components/SettingSliderComponent.tsx +++ b/src/components/PluginSettings/components/SettingSliderComponent.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { ISettingElementProps } from "."; import { PluginOptionSlider } from "../../../utils/types"; import { Forms, React, Slider } from "../../../webpack/common"; diff --git a/src/components/PluginSettings/components/SettingTextComponent.tsx b/src/components/PluginSettings/components/SettingTextComponent.tsx index b93bcd8f..97bbd995 100644 --- a/src/components/PluginSettings/components/SettingTextComponent.tsx +++ b/src/components/PluginSettings/components/SettingTextComponent.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { ISettingElementProps } from "."; import { PluginOptionString } from "../../../utils/types"; import { Forms, React, TextInput } from "../../../webpack/common"; diff --git a/src/components/PluginSettings/components/index.ts b/src/components/PluginSettings/components/index.ts index a1748b08..6da4140e 100644 --- a/src/components/PluginSettings/components/index.ts +++ b/src/components/PluginSettings/components/index.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { PluginOptionBase } from "../../../utils/types"; export interface ISettingElementProps { diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx index bc28cfe4..552f9fd1 100644 --- a/src/components/PluginSettings/index.tsx +++ b/src/components/PluginSettings/index.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import Plugins from "plugins"; import { Settings, useSettings } from "../../api/settings"; diff --git a/src/components/PluginSettings/styles.ts b/src/components/PluginSettings/styles.ts index 836c60e5..767fb639 100644 --- a/src/components/PluginSettings/styles.ts +++ b/src/components/PluginSettings/styles.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + export const PluginsGrid: React.CSSProperties = { marginTop: 16, display: "grid", diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx index e3d40f18..6a5ea9de 100644 --- a/src/components/Settings.tsx +++ b/src/components/Settings.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { useSettings } from "../api/settings"; import { ChangeList } from "../utils/ChangeList"; import IpcEvents from "../utils/IpcEvents"; diff --git a/src/components/Updater.tsx b/src/components/Updater.tsx index 1e4036e5..f4dedd78 100644 --- a/src/components/Updater.tsx +++ b/src/components/Updater.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import gitHash from "git-hash"; import { changes, checkForUpdates, getRepo, rebuild, update, UpdateLogger, updateError, isOutdated, isNewer } from "../utils/updater"; import { React, Forms, Button, Margins, Alerts, Card, Parser, Toasts } from "../webpack/common"; diff --git a/src/components/index.ts b/src/components/index.ts index 8843c11c..30dcea29 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + export { default as Settings } from "./Settings"; export { default as PluginSettings } from "./PluginSettings"; export { default as Updater } from "./Updater"; diff --git a/src/globals.d.ts b/src/globals.d.ts index 72b0b282..d1be8d8b 100644 --- a/src/globals.d.ts +++ b/src/globals.d.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + declare global { /** * This exists only at build time, so references to it in patches should insert it diff --git a/src/ipcMain/index.ts b/src/ipcMain/index.ts index 2db95870..caa4e34f 100644 --- a/src/ipcMain/index.ts +++ b/src/ipcMain/index.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { app, BrowserWindow, desktopCapturer, ipcMain, shell } from "electron"; import { mkdirSync, readFileSync, watch } from "fs"; import { open, readFile, writeFile } from "fs/promises"; diff --git a/src/ipcMain/updater.ts b/src/ipcMain/updater.ts index 072173f8..a1da8a76 100644 --- a/src/ipcMain/updater.ts +++ b/src/ipcMain/updater.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { ipcMain } from "electron"; import { promisify } from "util"; import IpcEvents from "../utils/IpcEvents"; diff --git a/src/modules.d.ts b/src/modules.d.ts index 854702b1..11576d20 100644 --- a/src/modules.d.ts +++ b/src/modules.d.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + // eslint-disable-next-line spaced-comment /// diff --git a/src/patcher.ts b/src/patcher.ts index 2725b033..06f03d89 100644 --- a/src/patcher.ts +++ b/src/patcher.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import electron, { app, BrowserWindowConstructorOptions } from "electron"; import { join } from "path"; import { initIpc } from "./ipcMain"; diff --git a/src/plugins/STFU.ts b/src/plugins/STFU.ts index abe9bd67..cfc207aa 100644 --- a/src/plugins/STFU.ts +++ b/src/plugins/STFU.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin from "../utils/types"; import { Devs } from "../utils/constants"; diff --git a/src/plugins/anonymiseFileNames.ts b/src/plugins/anonymiseFileNames.ts index 4fa60dbd..e689a6dc 100644 --- a/src/plugins/anonymiseFileNames.ts +++ b/src/plugins/anonymiseFileNames.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin, { OptionType } from "../utils/types"; import { Devs } from "../utils/constants"; import { Settings } from "../Vencord"; diff --git a/src/plugins/apiCommands.ts b/src/plugins/apiCommands.ts index 08fcec9e..dbfdcd5f 100644 --- a/src/plugins/apiCommands.ts +++ b/src/plugins/apiCommands.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin from "../utils/types"; import { Devs } from "../utils/constants"; diff --git a/src/plugins/apiMessageEvents.ts b/src/plugins/apiMessageEvents.ts index 154e6015..5dab0335 100644 --- a/src/plugins/apiMessageEvents.ts +++ b/src/plugins/apiMessageEvents.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { Devs } from "../utils/constants"; import definePlugin from "../utils/types"; diff --git a/src/plugins/apiNotices.ts b/src/plugins/apiNotices.ts index e9b46788..b2bdbcea 100644 --- a/src/plugins/apiNotices.ts +++ b/src/plugins/apiNotices.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { Devs } from "../utils/constants"; import definePlugin from "../utils/types"; diff --git a/src/plugins/banger.ts b/src/plugins/banger.ts index 6673555a..4ce4b23c 100644 --- a/src/plugins/banger.ts +++ b/src/plugins/banger.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin, { OptionType } from "../utils/types"; import { Devs } from "../utils/constants"; diff --git a/src/plugins/betterGifAltText.ts b/src/plugins/betterGifAltText.ts index 4712f71d..dbb4d126 100644 --- a/src/plugins/betterGifAltText.ts +++ b/src/plugins/betterGifAltText.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { Devs } from "../utils/constants"; import definePlugin from "../utils/types"; diff --git a/src/plugins/betterUploadButton.ts b/src/plugins/betterUploadButton.ts index f2d2512c..7589be8e 100644 --- a/src/plugins/betterUploadButton.ts +++ b/src/plugins/betterUploadButton.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin from "../utils/types"; import { Devs } from "../utils/constants"; diff --git a/src/plugins/clearURLs/defaultRules.ts b/src/plugins/clearURLs/defaultRules.ts index d878f6f5..8ac6eeff 100644 --- a/src/plugins/clearURLs/defaultRules.ts +++ b/src/plugins/clearURLs/defaultRules.ts @@ -1,17 +1,21 @@ /* - * Global Parameter - * `utm_source` + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors * - * Parameter restricted to domain - * `feature@youtube.com` + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * Domains wildcards - * `tag@amazon.*` + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * Parameter wildcards - * `utm_*`> - * - */ + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + export const defaultRules = [ "action_object_map", diff --git a/src/plugins/clearURLs/index.ts b/src/plugins/clearURLs/index.ts index c9bf2ede..c760a90e 100644 --- a/src/plugins/clearURLs/index.ts +++ b/src/plugins/clearURLs/index.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { defaultRules } from "./defaultRules"; import { addPreSendListener, diff --git a/src/plugins/clickableRoleDot.ts b/src/plugins/clickableRoleDot.ts index 28a511d6..14d0ed23 100644 --- a/src/plugins/clickableRoleDot.ts +++ b/src/plugins/clickableRoleDot.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { Devs } from "../utils/constants"; import definePlugin from "../utils/types"; import { Toasts } from "../webpack/common"; diff --git a/src/plugins/consoleShortcuts.ts b/src/plugins/consoleShortcuts.ts index 4b33d572..6cfa3574 100644 --- a/src/plugins/consoleShortcuts.ts +++ b/src/plugins/consoleShortcuts.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { Devs } from "../utils/constants"; import definePlugin from "../utils/types"; diff --git a/src/plugins/experiments.tsx b/src/plugins/experiments.tsx index 0b23aff9..c6303f3b 100644 --- a/src/plugins/experiments.tsx +++ b/src/plugins/experiments.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { lazyWebpack } from "../utils"; import { Devs } from "../utils/constants"; import definePlugin, { OptionType } from "../utils/types"; diff --git a/src/plugins/fart.ts b/src/plugins/fart.ts index 7a40afa7..88e95af0 100644 --- a/src/plugins/fart.ts +++ b/src/plugins/fart.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { ApplicationCommandOptionType } from "../api/Commands"; import { makeRange } from "../components/PluginSettings/components"; import { Devs } from "../utils/constants"; diff --git a/src/plugins/fxTwitter.ts b/src/plugins/fxTwitter.ts index 53477d29..dac81364 100644 --- a/src/plugins/fxTwitter.ts +++ b/src/plugins/fxTwitter.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin from "../utils/types"; import { addPreSendListener, MessageObject, removePreSendListener } from "../api/MessageEvents"; import { Devs } from "../utils/constants"; diff --git a/src/plugins/iLoveSpam.ts b/src/plugins/iLoveSpam.ts index c19b7aff..17753269 100644 --- a/src/plugins/iLoveSpam.ts +++ b/src/plugins/iLoveSpam.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { Devs } from "../utils/constants"; import definePlugin from "../utils/types"; diff --git a/src/plugins/ify.ts b/src/plugins/ify.ts index 2bcfeb5f..47d83715 100644 --- a/src/plugins/ify.ts +++ b/src/plugins/ify.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { Devs } from "../utils/constants"; import definePlugin, { OptionType } from "../utils/types"; import { Settings } from "../Vencord"; diff --git a/src/plugins/index.ts b/src/plugins/index.ts index 10536c44..f15a7118 100644 --- a/src/plugins/index.ts +++ b/src/plugins/index.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import Plugins from "plugins"; import { registerCommand, unregisterCommand } from "../api/Commands"; diff --git a/src/plugins/interactionKeybinds.ts b/src/plugins/interactionKeybinds.ts index f313b2ce..ee4e422d 100644 --- a/src/plugins/interactionKeybinds.ts +++ b/src/plugins/interactionKeybinds.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin from "../utils/types"; import { Devs } from "../utils/constants"; import { FluxDispatcher as Dispatcher, ChannelStore, SelectedChannelStore, UserStore } from "../webpack/common"; diff --git a/src/plugins/messageActions.ts b/src/plugins/messageActions.ts index 58a7bb78..5fe06c03 100644 --- a/src/plugins/messageActions.ts +++ b/src/plugins/messageActions.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { addClickListener, removeClickListener } from "../api/MessageEvents"; import { Devs } from "../utils/constants"; import definePlugin from "../utils/types"; diff --git a/src/plugins/moreCommands.ts b/src/plugins/moreCommands.ts index e4917365..600cc243 100644 --- a/src/plugins/moreCommands.ts +++ b/src/plugins/moreCommands.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin from "../utils/types"; import { ApplicationCommandInputType, OptionalMessageOption, sendBotMessage, findOption, RequiredMessageOption } from "../api/Commands"; import { Devs } from "../utils/constants"; diff --git a/src/plugins/moyai.ts b/src/plugins/moyai.ts index 7dc45742..0a8a51ff 100644 --- a/src/plugins/moyai.ts +++ b/src/plugins/moyai.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { Message, ReactionEmoji } from "discord-types/general"; import { makeRange } from "../components/PluginSettings/components/SettingSliderComponent"; diff --git a/src/plugins/muteNewGuild.ts b/src/plugins/muteNewGuild.ts index 428060f1..aa0844fa 100644 --- a/src/plugins/muteNewGuild.ts +++ b/src/plugins/muteNewGuild.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin from "../utils/types"; import { Devs } from "../utils/constants"; diff --git a/src/plugins/nitroBypass.ts b/src/plugins/nitroBypass.ts index b01a4845..08d49f20 100644 --- a/src/plugins/nitroBypass.ts +++ b/src/plugins/nitroBypass.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { addPreSendListener, addPreEditListener, removePreSendListener, removePreEditListener } from "../api/MessageEvents"; import { findByProps } from "../webpack"; import definePlugin, { OptionType } from "../utils/types"; diff --git a/src/plugins/noBlockedMessages.ts b/src/plugins/noBlockedMessages.ts index d1d82bdb..71e1e107 100644 --- a/src/plugins/noBlockedMessages.ts +++ b/src/plugins/noBlockedMessages.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { Devs } from "../utils/constants"; import definePlugin from "../utils/types"; diff --git a/src/plugins/noCanaryMessageLinks.ts b/src/plugins/noCanaryMessageLinks.ts index a5211274..8c773e15 100644 --- a/src/plugins/noCanaryMessageLinks.ts +++ b/src/plugins/noCanaryMessageLinks.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin from "../utils/types"; import { addPreSendListener, MessageObject, removePreSendListener } from "../api/MessageEvents"; import { Devs } from "../utils/constants"; diff --git a/src/plugins/noF1.ts b/src/plugins/noF1.ts index e2f0462b..86132364 100644 --- a/src/plugins/noF1.ts +++ b/src/plugins/noF1.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin from "../utils/types"; import { Devs } from "../utils/constants"; diff --git a/src/plugins/noRPC.ts b/src/plugins/noRPC.ts index f1094fd9..fa3ff8a0 100644 --- a/src/plugins/noRPC.ts +++ b/src/plugins/noRPC.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin from "../utils/types"; import { Devs } from "../utils/constants"; diff --git a/src/plugins/noReplyMention.ts b/src/plugins/noReplyMention.ts index b736c26e..d516450a 100644 --- a/src/plugins/noReplyMention.ts +++ b/src/plugins/noReplyMention.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin from "../utils/types"; export default definePlugin({ diff --git a/src/plugins/noSystemBadge.ts b/src/plugins/noSystemBadge.ts index 7b687c7b..2571be5a 100644 --- a/src/plugins/noSystemBadge.ts +++ b/src/plugins/noSystemBadge.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { Devs } from "../utils/constants"; import definePlugin from "../utils/types"; diff --git a/src/plugins/noTrack.ts b/src/plugins/noTrack.ts index b82c83f2..be3dfe0c 100644 --- a/src/plugins/noTrack.ts +++ b/src/plugins/noTrack.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin from "../utils/types"; import { Devs } from "../utils/constants"; diff --git a/src/plugins/petpet.ts b/src/plugins/petpet.ts index 9d25a220..652ebda5 100644 --- a/src/plugins/petpet.ts +++ b/src/plugins/petpet.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { ApplicationCommandOptionType, findOption, ApplicationCommandInputType, Argument, CommandContext } from "../api/Commands"; import { Devs } from "../utils/constants"; import definePlugin from "../utils/types"; diff --git a/src/plugins/plainFolderIcon.ts b/src/plugins/plainFolderIcon.ts index c04c78b6..b727ab2f 100644 --- a/src/plugins/plainFolderIcon.ts +++ b/src/plugins/plainFolderIcon.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { Devs } from "../utils/constants"; import definePlugin from "../utils/types"; diff --git a/src/plugins/pronoundb/components/PronounsAboutComponent.tsx b/src/plugins/pronoundb/components/PronounsAboutComponent.tsx index 09035097..b38b12a7 100644 --- a/src/plugins/pronoundb/components/PronounsAboutComponent.tsx +++ b/src/plugins/pronoundb/components/PronounsAboutComponent.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { Forms, React } from "../../../webpack/common"; export default function PronounsAboutComponent() { diff --git a/src/plugins/pronoundb/components/PronounsChatComponent.tsx b/src/plugins/pronoundb/components/PronounsChatComponent.tsx index 3e4e77ff..c0b5a90c 100644 --- a/src/plugins/pronoundb/components/PronounsChatComponent.tsx +++ b/src/plugins/pronoundb/components/PronounsChatComponent.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { Message } from "discord-types/general"; import { fetchPronouns, formatPronouns } from "../utils"; import { classes, lazyWebpack, useAwaiter } from "../../../utils/misc"; diff --git a/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx b/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx index a8f2ff4d..af2f84bd 100644 --- a/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx +++ b/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { UserStore } from "../../../webpack/common"; import { Settings } from "../../../Vencord"; import { PronounMapping, UserProfileProps } from "../types"; diff --git a/src/plugins/pronoundb/index.ts b/src/plugins/pronoundb/index.ts index e71d3dd3..68fa2654 100644 --- a/src/plugins/pronoundb/index.ts +++ b/src/plugins/pronoundb/index.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin, { OptionType } from "../../utils/types"; import PronounsAboutComponent from "./components/PronounsAboutComponent"; import PronounsChatComponent from "./components/PronounsChatComponent"; diff --git a/src/plugins/pronoundb/types.ts b/src/plugins/pronoundb/types.ts index cfd3a6a8..51e04759 100644 --- a/src/plugins/pronoundb/types.ts +++ b/src/plugins/pronoundb/types.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { User } from "discord-types/general"; export interface UserProfileProps { diff --git a/src/plugins/pronoundb/utils.ts b/src/plugins/pronoundb/utils.ts index 4547f942..a9828d23 100644 --- a/src/plugins/pronoundb/utils.ts +++ b/src/plugins/pronoundb/utils.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import gitHash from "git-hash"; import { PronounsFormat } from "."; import { debounce } from "../../utils"; diff --git a/src/plugins/sendify.ts b/src/plugins/sendify.ts index 21d63b43..a43260a0 100644 --- a/src/plugins/sendify.ts +++ b/src/plugins/sendify.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin from "../utils/types"; import { lazyWebpack } from "../utils"; import { filters } from "../webpack"; diff --git a/src/plugins/settings.ts b/src/plugins/settings.ts index 0c218ac8..56726b5b 100644 --- a/src/plugins/settings.ts +++ b/src/plugins/settings.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import gitHash from "git-hash"; import { Devs } from "../utils/constants"; diff --git a/src/plugins/silentTyping.ts b/src/plugins/silentTyping.ts index 9bba0ca9..328ee74e 100644 --- a/src/plugins/silentTyping.ts +++ b/src/plugins/silentTyping.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin from "../utils/types"; import { Devs } from "../utils/constants"; diff --git a/src/plugins/unindent.ts b/src/plugins/unindent.ts index f6eca1df..ea5625e3 100644 --- a/src/plugins/unindent.ts +++ b/src/plugins/unindent.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin from "../utils/types"; import { addPreSendListener, addPreEditListener, MessageObject, removePreSendListener, removePreEditListener } from "../api/MessageEvents"; import { Devs } from "../utils/constants"; diff --git a/src/plugins/unminifyErrors.ts b/src/plugins/unminifyErrors.ts index 9ff9556d..b3d31a44 100644 --- a/src/plugins/unminifyErrors.ts +++ b/src/plugins/unminifyErrors.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin from "../utils/types"; import { Devs } from "../utils/constants"; diff --git a/src/plugins/uwuify.ts b/src/plugins/uwuify.ts index 5135c5a0..21ef0939 100644 --- a/src/plugins/uwuify.ts +++ b/src/plugins/uwuify.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin from "../utils/types"; import { findOption, RequiredMessageOption } from "../api/Commands"; diff --git a/src/plugins/vcDoubleClick.ts b/src/plugins/vcDoubleClick.ts index 5ace5027..e83e0025 100644 --- a/src/plugins/vcDoubleClick.ts +++ b/src/plugins/vcDoubleClick.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin from "../utils/types"; import { Devs } from "../utils/constants"; diff --git a/src/plugins/viewIcons.tsx b/src/plugins/viewIcons.tsx index d747a03f..a9796ed8 100644 --- a/src/plugins/viewIcons.tsx +++ b/src/plugins/viewIcons.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { Devs } from "../utils/constants"; import definePlugin from "../utils/types"; import { lazyWebpack, makeLazy } from "../utils/misc"; diff --git a/src/plugins/webhookTags.ts b/src/plugins/webhookTags.ts index f26a25a4..88ce58b5 100644 --- a/src/plugins/webhookTags.ts +++ b/src/plugins/webhookTags.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import definePlugin from "../utils/types"; import { Devs } from "../utils/constants"; diff --git a/src/preload.ts b/src/preload.ts index 31558f52..7244a1d7 100644 --- a/src/preload.ts +++ b/src/preload.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import electron, { contextBridge, webFrame, ipcRenderer } from "electron"; import { readFileSync } from "fs"; import { join } from "path"; diff --git a/src/utils/ChangeList.ts b/src/utils/ChangeList.ts index a0da8f22..4f6bbb88 100644 --- a/src/utils/ChangeList.ts +++ b/src/utils/ChangeList.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + export class ChangeList{ private set = new Set(); diff --git a/src/utils/IpcEvents.ts b/src/utils/IpcEvents.ts index f518ee18..b773f641 100644 --- a/src/utils/IpcEvents.ts +++ b/src/utils/IpcEvents.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + type Enum> = { [k in keyof T]: T[k]; } & { [v in keyof T as T[v]]: v; }; diff --git a/src/utils/constants.ts b/src/utils/constants.ts index a01786ad..60d33f8d 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + export const WEBPACK_CHUNK = "webpackChunkdiscord_app"; export const REACT_GLOBAL = "Vencord.Webpack.Common.React"; diff --git a/src/utils/debounce.ts b/src/utils/debounce.ts index f001b7ba..d9e19def 100644 --- a/src/utils/debounce.ts +++ b/src/utils/debounce.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + export function debounce(func: T, delay = 300): T { let timeout: NodeJS.Timeout; return function (...args: any[]) { diff --git a/src/utils/discord.ts b/src/utils/discord.ts index 53206bbf..a19dd92e 100644 --- a/src/utils/discord.ts +++ b/src/utils/discord.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { Guild } from "discord-types/general"; import { ChannelStore, SelectedChannelStore, GuildStore } from "../webpack/common"; diff --git a/src/utils/index.ts b/src/utils/index.ts index c5f4283d..4313bb4f 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,3 +1,21 @@ +/*! + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + export * from "./ChangeList"; export * from "./debounce"; export * from "./misc"; diff --git a/src/utils/logger.ts b/src/utils/logger.ts index 0dda4bb8..309f4db7 100644 --- a/src/utils/logger.ts +++ b/src/utils/logger.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + export default class Logger { constructor(public name: string, public color: string) { } diff --git a/src/utils/misc.tsx b/src/utils/misc.tsx index 66ea202b..653f6bf2 100644 --- a/src/utils/misc.tsx +++ b/src/utils/misc.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { FilterFn, find } from "../webpack"; import { React } from "../webpack/common"; import { proxyLazy } from "./proxyLazy"; diff --git a/src/utils/modal.tsx b/src/utils/modal.tsx index 4c8df6ce..3a22bbe4 100644 --- a/src/utils/modal.tsx +++ b/src/utils/modal.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { filters } from "../webpack"; import { mapMangledModuleLazy } from "../webpack/webpack"; diff --git a/src/utils/proxyLazy.ts b/src/utils/proxyLazy.ts index a5c0835a..0e01540c 100644 --- a/src/utils/proxyLazy.ts +++ b/src/utils/proxyLazy.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { makeLazy } from "./misc"; const ProxyDummy = function () { }; diff --git a/src/utils/quickCss.ts b/src/utils/quickCss.ts index 785dd710..02a5c165 100644 --- a/src/utils/quickCss.ts +++ b/src/utils/quickCss.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { addSettingsListener, Settings } from "../api/settings"; import IpcEvents from "./IpcEvents"; diff --git a/src/utils/types.ts b/src/utils/types.ts index 1318799c..1916f9be 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { Command } from "../api/Commands"; // exists to export default definePlugin({...}) diff --git a/src/utils/updater.ts b/src/utils/updater.ts index c2c050e7..4b8f4ba1 100644 --- a/src/utils/updater.ts +++ b/src/utils/updater.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import IpcEvents from "./IpcEvents"; import Logger from "./logger"; import { IpcRes } from "./types"; diff --git a/src/webpack/common.tsx b/src/webpack/common.tsx index 6846349c..f7e66f37 100644 --- a/src/webpack/common.tsx +++ b/src/webpack/common.tsx @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { User } from "discord-types/general"; import { lazyWebpack } from "../utils/misc"; diff --git a/src/webpack/index.ts b/src/webpack/index.ts index 6f4ea125..53eb6264 100644 --- a/src/webpack/index.ts +++ b/src/webpack/index.ts @@ -1,2 +1,20 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + export * from "./webpack"; export * as Common from "./common"; diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts index 7d03d668..f679f3ab 100644 --- a/src/webpack/patchWebpack.ts +++ b/src/webpack/patchWebpack.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { WEBPACK_CHUNK } from "../utils/constants"; import Logger from "../utils/logger"; import { _initWebpack } from "."; diff --git a/src/webpack/webpack.ts b/src/webpack/webpack.ts index b8ccca90..58589c28 100644 --- a/src/webpack/webpack.ts +++ b/src/webpack/webpack.ts @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import type { WebpackInstance } from "discord-types/other"; import { proxyLazy } from "../utils/proxyLazy";