Fix webpack path
This commit is contained in:
parent
c3ff092162
commit
9b4926ccdc
1 changed files with 11 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
||||||
import { addPreSendListener, addPreEditListener } from "../api/MessageEvents";
|
import { addPreSendListener, addPreEditListener } from "../api/MessageEvents";
|
||||||
import { findByProps } from "../utils/webpack";
|
import { findByProps } from "../webpack";
|
||||||
import definePlugin from "../utils/types"
|
import definePlugin from "../utils/types";
|
||||||
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "Nitro Bypass",
|
name: "Nitro Bypass",
|
||||||
|
@ -17,7 +17,7 @@ export default definePlugin({
|
||||||
return {
|
return {
|
||||||
match: new RegExp(`${func}:function\\(.+?}`),
|
match: new RegExp(`${func}:function\\(.+?}`),
|
||||||
replace: `${func}:function (e) { return true; }`
|
replace: `${func}:function (e) { return true; }`
|
||||||
}
|
};
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -26,11 +26,11 @@ export default definePlugin({
|
||||||
|
|
||||||
// Remove any nitro requirements for any of the streaming settings.
|
// Remove any nitro requirements for any of the streaming settings.
|
||||||
findByProps("ApplicationStreamPresets")
|
findByProps("ApplicationStreamPresets")
|
||||||
.ApplicationStreamSettingRequirements
|
.ApplicationStreamSettingRequirements
|
||||||
.forEach(x => {
|
.forEach(x => {
|
||||||
delete x.userPremiumType;
|
delete x.userPremiumType;
|
||||||
delete x.guildPremiumTier
|
delete x.guildPremiumTier;
|
||||||
});
|
});
|
||||||
|
|
||||||
addPreSendListener((_, messageObj) => {
|
addPreSendListener((_, messageObj) => {
|
||||||
const guildId = window.location.href.split("channels/")[1].split("/")[0];
|
const guildId = window.location.href.split("channels/")[1].split("/")[0];
|
||||||
|
@ -42,7 +42,7 @@ export default definePlugin({
|
||||||
const url = emoji.url.replace(/\?size=[0-9]+/, `?size=48`);
|
const url = emoji.url.replace(/\?size=[0-9]+/, `?size=48`);
|
||||||
messageObj.content = messageObj.content.replace(emojiString, ` ${url} `);
|
messageObj.content = messageObj.content.replace(emojiString, ` ${url} `);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
addPreEditListener((_, __, messageObj) => {
|
addPreEditListener((_, __, messageObj) => {
|
||||||
const guildId = window.location.href.split("channels/")[1].split("/")[0];
|
const guildId = window.location.href.split("channels/")[1].split("/")[0];
|
||||||
|
|
||||||
|
@ -53,6 +53,6 @@ export default definePlugin({
|
||||||
const url = emoji.url.replace(/\?size=[0-9]+/, `?size=48`);
|
const url = emoji.url.replace(/\?size=[0-9]+/, `?size=48`);
|
||||||
messageObj.content = messageObj.content.replace(emojiStr, ` ${url} `);
|
messageObj.content = messageObj.content.replace(emojiStr, ` ${url} `);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
})
|
});
|
||||||
|
|
Loading…
Reference in a new issue