diff options
| author | Vendicated <vendicated@riseup.net> | 2022-10-22 01:17:06 +0200 |
|---|---|---|
| committer | Vendicated <vendicated@riseup.net> | 2022-10-22 01:17:14 +0200 |
| commit | f92f3f1a5e2aba1ea6d765fd06b8a76217186085 (patch) | |
| tree | 15cc3f745f47a9ed5d2f387669ea810c4c9b898d | |
| parent | 6769de29cdae4dc4e5b6ab4684380706c336845f (diff) | |
| download | Vencord-f92f3f1a5e2aba1ea6d765fd06b8a76217186085.tar.gz Vencord-f92f3f1a5e2aba1ea6d765fd06b8a76217186085.tar.bz2 Vencord-f92f3f1a5e2aba1ea6d765fd06b8a76217186085.zip | |
Add license headers
111 files changed, 1968 insertions, 41 deletions
diff --git a/.eslintrc.json b/.eslintrc.json index 9b3ff33..63be05b 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 <https://www.gnu.org/licenses/>.", + "" + ], + 2 + ], "quotes": ["error", "double", { "avoidEscape": true }], "jsx-quotes": ["error", "prefer-double"], "no-mixed-spaces-and-tabs": "error", @@ -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 2d4315d..24976a1 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 <https://www.gnu.org/licenses/>. +*/ + import "./VencordNativeStub"; export * from "../src/Vencord"; diff --git a/browser/VencordNativeStub.ts b/browser/VencordNativeStub.ts index ee093fa..dca7da8 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 <https://www.gnu.org/licenses/>. +*/ + import IpcEvents from "../src/utils/IpcEvents"; import * as DataStore from "../src/api/DataStore"; |
