feat(plugin): iLoveSpam (#19)
This commit is contained in:
parent
18b6bce160
commit
967b101af1
23
src/plugins/iLoveSpam.ts
Normal file
23
src/plugins/iLoveSpam.ts
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
import { Devs } from "../utils/constants";
|
||||||
|
import definePlugin from "../utils/types";
|
||||||
|
|
||||||
|
export default definePlugin({
|
||||||
|
name: "iLoveSpam",
|
||||||
|
description: "Do not hide messages from 'likely spammers'",
|
||||||
|
authors: [
|
||||||
|
Devs.botato,
|
||||||
|
{
|
||||||
|
name: "Iryis",
|
||||||
|
id: 118437263754395652n,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
patches: [
|
||||||
|
{
|
||||||
|
find: "),{hasFlag:",
|
||||||
|
replacement: {
|
||||||
|
match: /(if\((.{1,2})<=1<<30\)return)/,
|
||||||
|
replace: "if($2===(1<<20)){return false};$1",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
|
@ -1,12 +1,10 @@
|
||||||
|
import { Devs } from "../utils/constants";
|
||||||
import definePlugin from "../utils/types";
|
import definePlugin from "../utils/types";
|
||||||
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "Folder SVG Icon",
|
name: "PlainFolderIcon",
|
||||||
description: "Doesn't show the small guild icons in folders",
|
description: "Doesn't show the small guild icons in folders",
|
||||||
authors: [{
|
authors: [Devs.botato],
|
||||||
name: "botato",
|
|
||||||
id: 440990343899643943n
|
|
||||||
}],
|
|
||||||
patches: [{
|
patches: [{
|
||||||
find: "().expandedFolderIconWrapper",
|
find: "().expandedFolderIconWrapper",
|
||||||
replacement: [{
|
replacement: [{
|
|
@ -18,5 +18,9 @@ export const Devs = Object.freeze({
|
||||||
Megu: {
|
Megu: {
|
||||||
name: "Megumin",
|
name: "Megumin",
|
||||||
id: 545581357812678656n
|
id: 545581357812678656n
|
||||||
|
},
|
||||||
|
botato: {
|
||||||
|
name: "botato",
|
||||||
|
id: 440990343899643943n
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue