Skip to content

Instantly share code, notes, and snippets.

@pylixonly
Created January 16, 2023 12:24
Show Gist options
  • Save pylixonly/aa49650a65691b32141f5a8a4846d1b9 to your computer and use it in GitHub Desktop.
Save pylixonly/aa49650a65691b32141f5a8a4846d1b9 to your computer and use it in GitHub Desktop.
Load Vendetta instead of AliucordRN
(()=>{const{externalStorageDirectory:t,restartApp:e,download:r}=nativeModuleProxy.AliucordNative,{exists:a,readFile:o}=AliuFS,d=`${t}/AliucordRN/vendetta.js`;if(a(d))return void(0,eval)(o(d,"text"));r("https://raw.githubusercontent.com/vendetta-mod/builds/master/vendetta.js",d).then(()=>e())})();
(() => {
const {
externalStorageDirectory,
restartApp,
download
} = nativeModuleProxy.AliucordNative;
const {
exists,
readFile
} = AliuFS;
const vendettaPath = `${externalStorageDirectory}/AliucordRN/vendetta.js`;
if (exists(vendettaPath)) {
(0, eval)(readFile(vendettaPath, "text"));
return;
}
const downloadUrl = "https://raw.githubusercontent.com/vendetta-mod/builds/master/vendetta.js";
download(downloadUrl, vendettaPath).then(() => restartApp());
})();
@pylixonly
Copy link
Author

pylixonly commented Jan 16, 2023

Currently, AliucordRN (installed from AliucordManager) supports loading external bootstrap, so we can use it to load Vendetta instead of Aliucord.

Steps

Skip to step 3 if you already have AliucordRN installed.

  1. Install AliucordRN through Aliucord Manager

Warning: External bootstrap support is recently added in Aliucord Manager, so make sure you have the correct version.

  1. Launch AliucordRN and grant the "all files" storage permission when prompted.
  2. After you got AliucordRN to load properly, put bootstrap.js in the sdcard/AliucordRN directory which was generated by AliucordRN.
  3. Restart
  4. Profit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment