import { _bestFriends, _favoritedPlaces, preferences } from "@/utils/storage"; import { pullCache } from "@/utils/utilities"; import * as api from "@/utils/api"; import * as apiTypes from "@/utils/api/types"; import errorIcon from "@/assets/error.svg"; export default defineContentScript({ matches: ["https://polytoria.com/", "https://polytoria.com/home"], main() { preferences.getPreferences() .then((values) => { if (values.enabled.includes("favoritedPlaces")) favoritedPlaces(); if (values.enabled.includes("bestFriends")) bestFriends(); if (values.enabled.includes("irlBrickPrice")) irlBrickPrice(); }); }, }); function favoritedPlaces() { _favoritedPlaces.getValue() .then(async (places) => { const container = document.createElement("div"); container.innerHTML = `
Sorry! This feature is currently unavailable. Please check back later!