diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/moreUserTags.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/moreUserTags.ts b/src/plugins/moreUserTags.ts index e45e30a..3fa0aa1 100644 --- a/src/plugins/moreUserTags.ts +++ b/src/plugins/moreUserTags.ts @@ -118,7 +118,7 @@ const settings = definePluginSettings({ export default definePlugin({ name: "MoreUserTags", description: "Adds tags for webhooks and moderative roles (owner, admin, etc.)", - authors: [Devs.Cyn, Devs.TheSun], + authors: [Devs.Cyn, Devs.TheSun, Devs.RyanCaoDev], settings, patches: [ // add tags to the tag list @@ -140,6 +140,11 @@ export default definePlugin({ { match: /(\i)=(\i)===\i\.ORIGINAL_POSTER/, replace: "$1=$self.isOPTag($2)" + }, + // add HTML data attributes (for easier theming) + { + match: /children:\[(?=\i,\(0,\i\.jsx\)\("span",{className:\i\(\)\.botText,children:(\i)}\)\])/, + replace: "'data-tag':$1.toLowerCase(),children:[" } ], }, |