diff --git a/src/sampleExtension/index.tsx b/src/globalBadges/index.tsx similarity index 91% rename from src/sampleExtension/index.tsx rename to src/globalBadges/index.tsx index 75cf601..d8ffffd 100644 --- a/src/sampleExtension/index.tsx +++ b/src/globalBadges/index.tsx @@ -27,11 +27,14 @@ import { ExtensionWebpackModule, Patch } from "@moonlight-mod/types"; */ export const patches: Patch[] = [ { - find: '"USER_SETTINGS",', - replace: { - match: '"USER_SETTINGS","User Settings"', - replacement: '"USER_SETTINGS","hacked by sampleExtension lol"' - } + find: '"Messages.PROFILE_USER_BADGES,role:"', + replace: [ + { + match: '/alt:" ","aria-hidden":!0,src:(?=(\i)\.src)/', + replacement: '"USER_SETTINGS","hacked by sampleExtension lol"' + } + ] + } ]; diff --git a/src/sampleExtension/manifest.json b/src/globalBadges/manifest.json similarity index 53% rename from src/sampleExtension/manifest.json rename to src/globalBadges/manifest.json index d8e7a89..e1a3098 100644 --- a/src/sampleExtension/manifest.json +++ b/src/globalBadges/manifest.json @@ -1,11 +1,11 @@ { - "id": "sampleExtension", + "id": "globalBadges", "version": "1.0.0", "meta": { - "name": "Sample extension", + "name": "Global Badges", "tagline": "A short tagline that appears below the name", "description": "A longer description that can **use Markdown**", - "authors": ["You!"], - "source": "https://github.com/moonlight-mod/sample-extension" + "authors": ["Wolfie"], + "source": "https://github.com/WolfPlugs/globalBadges" } } diff --git a/src/sampleExtension/node.ts b/src/globalBadges/node.ts similarity index 100% rename from src/sampleExtension/node.ts rename to src/globalBadges/node.ts diff --git a/src/sampleExtension/webpackModules/entrypoint.ts b/src/globalBadges/webpackModules/entrypoint.ts similarity index 100% rename from src/sampleExtension/webpackModules/entrypoint.ts rename to src/globalBadges/webpackModules/entrypoint.ts