Move Badges Off Equibored

This commit is contained in:
thororen1234 2025-03-15 11:59:18 -04:00
commit 242d863a12
No known key found for this signature in database
4 changed files with 7 additions and 7 deletions

View file

@ -195,7 +195,7 @@ function registerStyleChange(style) {
} }
async function setIsUserCustomCapable() { async function setIsUserCustomCapable() {
const allowList: string[] = await fetch("https://raw.githubusercontent.com/Equicord/Equibored/main/misc/quoterusers.json").then(e => e.json()); const allowList: string[] = await fetch("https://equicord.fyi/quoter").then(e => e.json()); // Override for memes - IF THIS IS ABUSED WILL WE TAKEN AWAY
isUserCustomCapable = allowList.includes(UserStore.getCurrentUser().id); isUserCustomCapable = allowList.includes(UserStore.getCurrentUser().id);
} }
@ -225,7 +225,7 @@ function QuoteModal(props: ModalProps) {
<ModalCloseButton onClick={props.onClose} /> <ModalCloseButton onClick={props.onClose} />
</ModalHeader> </ModalHeader>
<ModalContent scrollbarType="none"> <ModalContent scrollbarType="none">
<img src={""} id={"quoterPreview"} style={{ borderRadius: "20px", width: "100%" }}></img> <img alt="" src="" id={"quoterPreview"} style={{ borderRadius: "20px", width: "100%" }}></img>
<br></br><br></br> <br></br><br></br>
{isUserCustomCapable && {isUserCustomCapable &&
( (

View file

@ -64,7 +64,7 @@ async function loadBadges(url: string, noCache = false) {
async function loadAllBadges(noCache = false) { async function loadAllBadges(noCache = false) {
const vencordBadges = await loadBadges("https://badges.vencord.dev/badges.json", noCache); const vencordBadges = await loadBadges("https://badges.vencord.dev/badges.json", noCache);
const equicordBadges = await loadBadges("https://raw.githubusercontent.com/Equicord/Equibored/main/badges.json", noCache); const equicordBadges = await loadBadges("https://equicord.fyi/badges", noCache);
DonorBadges = vencordBadges; DonorBadges = vencordBadges;
EquicordDonorBadges = equicordBadges; EquicordDonorBadges = equicordBadges;
@ -88,7 +88,7 @@ export default definePlugin({
find: "#{intl::PROFILE_USER_BADGES}", find: "#{intl::PROFILE_USER_BADGES}",
replacement: [ replacement: [
{ {
match: /(alt:" ","aria-hidden":!0,src:)(.{0,20}(\i)\.icon\))/, match: /(alt:" ","aria-hidden":!0,src:)(.+?)(?=,)(?<=href:(\i)\.link.+?)/,
replace: (_, rest, originalSrc, badge) => `...${badge}.props,${rest}${badge}.image??(${originalSrc})` replace: (_, rest, originalSrc, badge) => `...${badge}.props,${rest}${badge}.image??(${originalSrc})`
}, },
{ {

View file

@ -73,7 +73,7 @@ export default definePlugin({
group: true, group: true,
replacement: [ replacement: [
{ {
match: /(?<=\.AVATAR_SIZE\).{0,15};)/, match: /(?<=\.AVATAR_SIZE\).{0,100};)(?=return)/,
replace: "$self.useAccountPanelRef();" replace: "$self.useAccountPanelRef();"
}, },
{ {

View file

@ -73,8 +73,8 @@ export default definePlugin({
{ {
find: "#{intl::GUILD_OWNER}),children:", find: "#{intl::GUILD_OWNER}),children:",
replacement: { replacement: {
match: /(?<=\.MEMBER_LIST}\),\[\]\),)(.+?color:)null!=.{0,50}?(?=,)/, match: /(typingIndicatorRef:.+?},)(\i=.+?)color:null!=.{0,50}?(?=,)/,
replace: (_, rest) => `ircColor=$self.calculateNameColorForListContext(arguments[0]),${rest}ircColor` replace: (_, rest1, rest2) => `${rest1}ircColor=$self.calculateNameColorForListContext(arguments[0]),${rest2}color:ircColor`
}, },
predicate: () => settings.store.memberListColors predicate: () => settings.store.memberListColors
} }