import { preferences } from "@/utils/storage"; import * as friends from "./friends"; export default defineContentScript({ matches: ['*://polytoria.com/my/*'], main() { preferences.getPreferences() .then((values) => { if (window.location.pathname.includes('friends')) { // View if (values.improvedFriendLists.enabled) friends.actions(); }; }); } });