A rewrite of Poly+, my quality-of-life browser extension for Polytoria. Built entirely fresh using the WXT extension framework, Typescript, and with added better overall code quality.
extension
1import { preferences } from "@/utils/storage"; 2import * as friends from "./friends"; 3 4export default defineContentScript({ 5 matches: ['*://polytoria.com/my/*'], 6 main() { 7 preferences.getPreferences() 8 .then((values) => { 9 if (window.location.pathname.includes('friends')) { 10 // View 11 if (values.improvedFriendLists.enabled) friends.actions(); 12 }; 13 }); 14 } 15});