mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-24 19:59:36 +00:00
Add saving and restoring of bird positions so the bird can persist its location between navigations and reloads. Introduces SavedBirdPosition and birdPositions in save data, constants for save intervals and thresholds, and tracking of position deltas to mark dirty state. Implements sanitizeSavedBirdPositions, normalizePath, trimming logic, and a per-tab session key (using window.name) to avoid cross-tab restores. Saves periodically and on pagehide/beforeunload, restores on startup (with heuristics to snap to a nearby perchable element), and avoids overwriting restored Y when appropriate.
47 lines
1.1 KiB
JSON
47 lines
1.1 KiB
JSON
{
|
|
"manifest_version": 3,
|
|
"name": "Pocket Bird",
|
|
"description": "It's a pet bird in your browser, what more could you want?",
|
|
"version": "2026.4.6",
|
|
"homepage_url": "https://idreesinc.com",
|
|
"icons": {
|
|
"48": "images/icons/transparent/48x48x1.png",
|
|
"96": "images/icons/transparent/96x96x1.png",
|
|
"128": "images/icons/transparent/128x128x1.png"
|
|
},
|
|
"content_scripts": [
|
|
{
|
|
"matches": [
|
|
"<all_urls>"
|
|
],
|
|
"js": [
|
|
"birb.js"
|
|
]
|
|
}
|
|
],
|
|
"permissions": [
|
|
"storage",
|
|
"activeTab"
|
|
],
|
|
"web_accessible_resources": [
|
|
{
|
|
"resources": [
|
|
"images/*",
|
|
"fonts/Monocraft.otf"
|
|
],
|
|
"matches": [
|
|
"<all_urls>"
|
|
]
|
|
}
|
|
],
|
|
"browser_specific_settings": {
|
|
"gecko": {
|
|
"id": "pocket-bird@idreesinc.com",
|
|
"data_collection_permissions": {
|
|
"required": [
|
|
"none"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
} |