diff --git a/src/plugins/bypassAutomod.ts b/src/plugins/bypassAutomod.ts new file mode 100644 index 000000000..145c28e7a --- /dev/null +++ b/src/plugins/bypassAutomod.ts @@ -0,0 +1,27 @@ +import { Devs } from "../utils/constants"; +import definePlugin from "../utils/types"; +import { addPreEditListener, addPreSendListener, MessageObject, removePreEditListener, removePreSendListener } from "../api/MessageEvents"; + + +export default definePlugin({ + name: "Bypass Automod", + description: "Bypasses the automod", + version: "1.0.0", + authors: [Devs.mantikafasi], + start() { + return + + addPreSendListener((_, msg) => { + var newMsg = ""; + msg.content.split(" ").forEach((word, _) => { + if (word.length < 2) return + let i = Math.round(Math.random() * (word.length - 1)); + console.log(i,word) + newMsg += word.replace(word[i], word[i] + "\u200C\u2062\u2063\u2064\u200d") + " "; + }); + msg.content = newMsg.concat(); + }); + + } +} +); diff --git a/src/plugins/reviewDB/components/ReviewBadge.tsx b/src/plugins/reviewDB/components/ReviewBadge.tsx new file mode 100644 index 000000000..a290f8af7 --- /dev/null +++ b/src/plugins/reviewDB/components/ReviewBadge.tsx @@ -0,0 +1,25 @@ +import { IpcEvents } from "../../../utils"; +import { Tooltip } from "../../../webpack/common"; + +import Badge from "../entities/Badge"; + +export default function ReviewBadge(badge: Badge) { + return ( + + {({ onMouseEnter, onMouseLeave }) => ( + + VencordNative.ipc.invoke(IpcEvents.OPEN_EXTERNAL, badge.redirect_url) + } + /> + )} + + ); +} diff --git a/src/plugins/reviewDB/components/ReviewComponent.tsx b/src/plugins/reviewDB/components/ReviewComponent.tsx index 058ac4cfc..a28b56850 100644 --- a/src/plugins/reviewDB/components/ReviewComponent.tsx +++ b/src/plugins/reviewDB/components/ReviewComponent.tsx @@ -16,21 +16,22 @@ * along with this program. If not, see . */ -import { classes, LazyComponent } from "../../../utils/misc"; +import { classes, LazyComponent, lazyWebpack } from "../../../utils/misc"; import { filters, findBulk } from "../../../webpack"; import { Alerts, UserStore } from "../../../webpack/common"; import { Review } from "../entities/Review"; import { deleteReview, reportReview } from "../Utils/ReviewDBAPI"; import { canDeleteReview, openUserProfileModal, showToast } from "../Utils/Utils"; import MessageButton from "./MessageButton"; +import ReviewBadge from "./ReviewBadge"; export default LazyComponent(() => { // this is terrible, blame mantika const p = filters.byProps; const [ - { cozyMessage, buttons, message, groupStart }, + { cozyMessage, buttons }, { container, isHeader }, - { avatar, clickable, username, messageContent, wrapper, cozy }, + { avatar, clickable, messageContent, wrapper, cozy }, { contents }, buttonClasses, { defaultColor } @@ -77,23 +78,32 @@ export default LazyComponent(() => { } return ( -
-
+
+ +
openModal()} > {review.username} + {review.badges.map(badge => )}

{review.comment}

diff --git a/src/plugins/reviewDB/components/ReviewsView.tsx b/src/plugins/reviewDB/components/ReviewsView.tsx index 9fe7b9ee4..17a5dcbc0 100644 --- a/src/plugins/reviewDB/components/ReviewsView.tsx +++ b/src/plugins/reviewDB/components/ReviewsView.tsx @@ -51,7 +51,6 @@ export default function ReviewsView({ userId }: { userId: string; }) { tag="h2" variant="eyebrow" style={{ - paddingLeft: "12px", marginBottom: "12px", color: "var(--header-primary)" }} @@ -66,16 +65,19 @@ export default function ReviewsView({ userId }: { userId: string; }) { /> )} {reviews?.length === 0 && ( - + Looks like nobody reviewed this user yet. You could be the first! )}