aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/clientInfo.ts
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-08-29 22:05:22 +0200
committerVendicated <vendicated@riseup.net>2022-08-29 22:05:22 +0200
commit483bc13a31ab2ba878ff8d9002b0a8671a640ec8 (patch)
tree9967493cf8d65dc90202bb76d604749c5c4ba5ca /src/plugins/clientInfo.ts
parentc39ff8f6481463a1700014ebd204f2b6189759a1 (diff)
downloadVencord-483bc13a31ab2ba878ff8d9002b0a8671a640ec8.tar.gz
Vencord-483bc13a31ab2ba878ff8d9002b0a8671a640ec8.tar.bz2
Vencord-483bc13a31ab2ba878ff8d9002b0a8671a640ec8.zip
Finish rewrite
Diffstat (limited to 'src/plugins/clientInfo.ts')
-rw-r--r--src/plugins/clientInfo.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/plugins/clientInfo.ts b/src/plugins/clientInfo.ts
new file mode 100644
index 0000000..77cc70c
--- /dev/null
+++ b/src/plugins/clientInfo.ts
@@ -0,0 +1,17 @@
+import definePlugin from "../utils/types";
+
+export default definePlugin({
+ name: "ClientInfo",
+ description: "Adds extra info to Client Info in settings",
+ author: "Vendicated",
+ patches: [{
+ find: "default.versionHash",
+ replacement: {
+ match: /\w\.createElement.+?["']Host ["'].+?\):null/,
+ replace: m => {
+ const idx = m.indexOf("Host") - 1;
+ return `${m},${m.slice(0, idx)}"Vencord ".repeat(50),"1.0.0")," ")`;
+ }
+ }
+ }]
+}); \ No newline at end of file