- game-bridge.js: Replace broken Phaser.GAMES discovery (tree-shaken by Vite) with SceneManager.prototype.update monkey-patch that captures the game instance on the next frame tick - manifest.json: Run game-bridge at document_start so the patch is installed before Phaser boots - content.js: Fix position buttons only working once — was using inline style.left presence as drag check, now uses a dedicated manuallyDragged flag that only sets on actual mouse drag and resets on popup position change - Bump version to 1.1.0
66 lines
1.6 KiB
JSON
66 lines
1.6 KiB
JSON
{
|
|
"manifest_version": 3,
|
|
"name": "PokeRogue Type Effectiveness",
|
|
"version": "1.1.0",
|
|
"description": "Shows move type effectiveness during PokeRogue battles. Displays multipliers, power, and category for each move against enemy Pokemon.",
|
|
|
|
"icons": {
|
|
"16": "icons/icon-16.png",
|
|
"32": "icons/icon-32.png",
|
|
"48": "icons/icon-48.png",
|
|
"128": "icons/icon-128.png"
|
|
},
|
|
|
|
"action": {
|
|
"default_icon": {
|
|
"16": "icons/icon-16.png",
|
|
"32": "icons/icon-32.png",
|
|
"48": "icons/icon-48.png",
|
|
"128": "icons/icon-128.png"
|
|
},
|
|
"default_popup": "popup/popup.html",
|
|
"default_title": "PokeRogue Type Effectiveness"
|
|
},
|
|
|
|
"permissions": ["storage", "activeTab"],
|
|
|
|
"host_permissions": [
|
|
"https://pokerogue.net/*",
|
|
"https://www.pokerogue.net/*"
|
|
],
|
|
|
|
"background": {
|
|
"service_worker": "service-worker.js"
|
|
},
|
|
|
|
"content_scripts": [
|
|
{
|
|
"matches": ["https://pokerogue.net/*", "https://www.pokerogue.net/*"],
|
|
"js": ["data/type-data.js", "content.js"],
|
|
"css": ["overlay.css"],
|
|
"run_at": "document_idle",
|
|
"world": "ISOLATED"
|
|
},
|
|
{
|
|
"matches": ["https://pokerogue.net/*", "https://www.pokerogue.net/*"],
|
|
"js": ["game-bridge.js"],
|
|
"run_at": "document_start",
|
|
"world": "MAIN"
|
|
}
|
|
],
|
|
|
|
"web_accessible_resources": [
|
|
{
|
|
"resources": ["icons/*"],
|
|
"matches": ["https://pokerogue.net/*", "https://www.pokerogue.net/*"]
|
|
}
|
|
],
|
|
|
|
"browser_specific_settings": {
|
|
"gecko": {
|
|
"id": "pokerogue-type-effectiveness@vectry.tech",
|
|
"strict_min_version": "109.0"
|
|
}
|
|
}
|
|
}
|