{
	"manifest_version": 3,
	"author": "Index",
	"name": "Poly+",
	"version": "1.22",
	"version_name": "Pre-Release Build (v1.2.2)",
	"description": "Power-up your Polytoria experience with Poly+! Created by Index.",
	"homepage_url": "https://polyplus.vercel.app/",
	"permissions": ["storage", "contextMenus", "scripting", "alarms", "notifications"],
	"content_scripts": [
		{
			"matches": ["https://polytoria.com/*"],
			"js": ["/js/sitewide.js", "/js/membership-themes.js"],
			"css": ["/css/specific.css"],
			"run_at": "document_start"
		},

		{
			"matches": ["https://polytoria.com/my/settings/*"],
			"js": ["/js/settings.js", "/js/extra-pages.js"],
			"run_at": "document_start"
		},

		{
			"matches": ["https://polytoria.com/", "https://polytoria.com/home"],
			"js": ["/js/account/home.js"],
			"run_at": "document_idle"
		},

		{
			"matches": ["https://polytoria.com/places/**"],
			"js": ["/js/places/place-view.js"]
		},

		{
			"matches": ["https://polytoria.com/create/place/**"],
			"js": ["/js/places/place-edit.js"]
		},

		{
			"matches": ["https://polytoria.com/create/image", "https://polytoria.com/create/image/"],
			"js": ["/js/create/image.js"]
		},

		{
			"matches": ["https://polytoria.com/forum/post/**"],
			"js": ["/js/forum/forum-view.js"]
		},

		{
			"matches": ["https://polytoria.com/u/**", "https://polytoria.com/users/**"],
			"js": ["/js/account/profile.js", "/js/account/inventory.js"]
		},

		{
			"matches": ["https://polytoria.com/my/friends", "https://polytoria.com/my/friends/"],
			"js": ["/js/account/friends.js"]
		},

		{
			"matches": ["https://polytoria.com/store", "https://polytoria.com/store/"],
			"js": ["/js/store/store.js"]
		},

		{
			"matches": ["https://polytoria.com/store/**"],
			"js": ["/js/store/item-view.js"]
		},

		{
			"matches": ["https://polytoria.com/forum/search", "https://polytoria.com/forum/search?*"],
			"js": ["/js/forum/forum-search.js"]
		},

		{
			"matches": ["https://polytoria.com/trade/sent/*"],
			"js": ["/js/account/trades-outbound.js"]
		},

		{
			"matches": ["https://polytoria.com/u/*/inventory/"],
			"js": ["/js/account/inventory.js"],
			"run_at": "document_idle"
		},

		{
			"matches": ["https://polytoria.com/my/settings/privacy"],
			"js": ["/js/account/settings-privacy.js"]
		},

		{
			"matches": ["https://polytoria.com/my/settings/transactions*"],
			"js": ["/js/account/transactions.js"]
		},

		{
			"matches": ["https://polytoria.com/store/**", "https://polytoria.com/places/**", "https://polytoria.com/guilds/**", "https://polytoria.com/feed/**"],
			"js": ["/js/op-comments.js"]
		},

		{
			"matches": ["https://polytoria.com/my/avatar*"],
			"js": ["/js/account/avatar-sandbox.js"]
		},

		{
			"matches": ["https://polytoria.com/inbox*"],
			"js": ["/js/account/inbox.js"]
		},

		{
			"matches": ["https://polytoria.com/guilds/**"],
			"js": ["/js/guilds.js"]
		},

		{
			"matches": ["https://polytoria.com/store/**", "https://polytoria.com/models/**"],
			"js": ["/js/library-download.js"]
		},

		{
			"matches": ["https://polytoria.com/games/*", "https://polytoria.com/shop/*", "https://polytoria.com/my/referrals", "https://polytoria.com/create/?t=*", "https://polytoria.com/user/*", "https://polytoria.com/library/*"],
			"js": ["/js/site-redirects.js"]
		},

		{
			"matches": ["https://polytoria.com/places/**", "https://polytoria.com/u/**"],
			"js": ["the-great-divide.js"]
		}
	],
	"background": {
		"service_worker": "/js/background.js",
		"type": "module"
	},
	"host_permissions": ["https://*.polytoria.com/*"],
	"web_accessible_resources": [
		{
			"resources": ["resources/*"],
			"matches": ["https://polytoria.com/*"]
		},

		{
			"resources": ["settings.html", "settings.js"],
			"matches": ["https://polytoria.com/*"]
		}
	],
	"short_name": "Poly+",
	"action": {
		"default_title": "Poly+",
		"default_icon": {
			"16": "/images/icon.png",
			"32": "/images/icon.png",
			"48": "/images/icon.png",
			"128": "/images/icon.png"
		},
		"default_popup": "/popup.html"
	},
	"icons": {
		"16": "/images/icon.png",
		"32": "/images/icon.png",
		"48": "/images/icon.png",
		"128": "/images/icon.png"
	}
}
