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
1export const defaultPreferences = {
2 favoritedPlaces: true,
3 bestFriends: true
4}
5
6// Sync
7export const preferences = storage.defineItem('sync:preferences', { fallback: defaultPreferences });
8export const _favoritedPlaces = storage.defineItem('sync:favoritedPlaces', { fallback: [9656] });
9export const _bestFriends = storage.defineItem('sync:bestFriends', { fallback: [] });
10
11// Cache
12export const cache = storage.defineItem('local:cache', {fallback: {
13 favoritedPlaces: []
14}});