new: PyonInstaller :trollface:
This commit is contained in:
parent
f1c5709ce9
commit
ef38568839
3 changed files with 33 additions and 1 deletions
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
|
|
@ -3,6 +3,6 @@
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"files.insertFinalNewline": true,
|
"files.insertFinalNewline": true,
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.organizeImports": true,
|
"source.organizeImports": "explicit"
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
4
plugins/PyonInstaller/manifest.json
Normal file
4
plugins/PyonInstaller/manifest.json
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"name": "PyoncordInstaller",
|
||||||
|
"description": "installs pyoncord.exe (virus)"
|
||||||
|
}
|
||||||
28
plugins/PyonInstaller/src/index.ts
Normal file
28
plugins/PyonInstaller/src/index.ts
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
import { plugin, plugins } from "@vendetta";
|
||||||
|
import { config } from "@vendetta/loader";
|
||||||
|
import { showConfirmationAlert } from "@vendetta/ui/alerts";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
onLoad() {
|
||||||
|
plugins.removePlugin(plugin.id);
|
||||||
|
|
||||||
|
setTimeout(() => showConfirmationAlert({
|
||||||
|
title: "Install Pyoncord?",
|
||||||
|
content: "Loader's settings will be overriden to load Pyoncord instead. You may not be able to revert to Vendetta whenever Pyoncord breaks!",
|
||||||
|
confirmText: "Continue and Restart",
|
||||||
|
cancelText: "Nevermind",
|
||||||
|
onConfirm: this.install
|
||||||
|
}), 300);
|
||||||
|
},
|
||||||
|
|
||||||
|
async install() {
|
||||||
|
if (config.customLoadUrl) {
|
||||||
|
config.customLoadUrl.enabled = true;
|
||||||
|
config.customLoadUrl.url = "https://raw.githubusercontent.com/pyoncord/pyoncord/builds/pyoncord.js";
|
||||||
|
|
||||||
|
setTimeout(globalThis.nativeModuleProxy.BundleUpdaterManager.reload, 100);
|
||||||
|
} else {
|
||||||
|
alert("not a proper vendetta loader!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
Loading…
Add table
Reference in a new issue