mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-17 18:37:04 -04:00
Update To Devs and Badges Sys
This commit is contained in:
parent
e4425ca98f
commit
44109d9979
58 changed files with 295 additions and 240 deletions
|
@ -21,11 +21,6 @@ import { Devs } from "@utils/constants";
|
|||
import definePlugin, { OptionType } from "@utils/types";
|
||||
|
||||
const settings = definePluginSettings({
|
||||
coinsEnabled: {
|
||||
type: OptionType.BOOLEAN,
|
||||
default: false,
|
||||
description: "Enable coins feature (Requires reload)"
|
||||
},
|
||||
speed: {
|
||||
description: "Speed of Da Cat :3",
|
||||
type: OptionType.NUMBER,
|
||||
|
@ -54,34 +49,19 @@ export default definePlugin({
|
|||
name: "oneko",
|
||||
description: "cat follow mouse (real)",
|
||||
// Listing adryd here because this literally just evals her script
|
||||
authors: [Devs.Ven, Devs.adryd, Devs.Gingi, Devs.adryd],
|
||||
authors: [Devs.Ven, Devs.adryd],
|
||||
settings,
|
||||
|
||||
start() {
|
||||
const { coinsEnabled } = settings.store;
|
||||
if (coinsEnabled) {
|
||||
fetch("https://raw.githubusercontent.com/0xGingi/oneko.js/acf1ae58ca8bacd9af47a783c2e134136c35f948/oneko.js")
|
||||
.then(x => x.text())
|
||||
.then(s => s.replace("const nekoSpeed = 10;", `const nekoSpeed = ${settings.store.speed};`))
|
||||
.then(s => s.replace("./oneko.gif", "https://raw.githubusercontent.com/adryd325/oneko.js/14bab15a755d0e35cd4ae19c931d96d306f99f42/oneko.gif")
|
||||
.replace("(isReducedMotion)", "(false)"))
|
||||
.then(x => x.replace("./coin.gif", "https://raw.githubusercontent.com/0xGingi/oneko.js/3de1bf554bb82b58a2c70f828e2420a881e5f283/coin.gif"))
|
||||
.then(eval);
|
||||
}
|
||||
if (!coinsEnabled) {
|
||||
fetch("https://raw.githubusercontent.com/adryd325/oneko.js/8fa8a1864aa71cd7a794d58bc139e755e96a236c/oneko.js")
|
||||
.then(x => x.text())
|
||||
.then(s => s.replace("const nekoSpeed = 10;", `const nekoSpeed = ${settings.store.speed};`))
|
||||
.then(s => s.replace("./oneko.gif", "https://raw.githubusercontent.com/adryd325/oneko.js/14bab15a755d0e35cd4ae19c931d96d306f99f42/oneko.gif")
|
||||
.replace("(isReducedMotion)", "(false)"))
|
||||
.then(eval);
|
||||
}
|
||||
fetch("https://raw.githubusercontent.com/adryd325/oneko.js/8fa8a1864aa71cd7a794d58bc139e755e96a236c/oneko.js")
|
||||
.then(x => x.text())
|
||||
.then(s => s.replace("const nekoSpeed = 10;", `const nekoSpeed = ${settings.store.speed};`))
|
||||
.then(s => s.replace("./oneko.gif", "https://raw.githubusercontent.com/adryd325/oneko.js/14bab15a755d0e35cd4ae19c931d96d306f99f42/oneko.gif")
|
||||
.replace("(isReducedMotion)", "(false)"))
|
||||
.then(eval);
|
||||
},
|
||||
|
||||
stop() {
|
||||
document.getElementById("oneko")?.remove();
|
||||
if (typeof window.removeCoins === "function") {
|
||||
window.removeCoins();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue