{
    "manifest_version": 3,
    "name": "Monochrome Tidal Bypass",
    "version": "1.0.2",
    "description": "Adds Origin: https://listen.tidal.com to Tidal CDN requests so audio plays without a proxy",
    "browser_specific_settings": {
        "gecko": {
            "id": "monochrome-tidal-bypass@binimum.org",
            "strict_min_version": "111.0",
            "data_collection_permissions": {
                "required": ["none"]
            }
        }
    },
    "permissions": ["declarativeNetRequest", "scripting", "declarativeNetRequestWithHostAccess"],
    "host_permissions": [
        "*://*.tidal.com/*",
        "*://monochrome.tf/*",
        "*://monochrome.samidy.com/*",
        "*://lossless.wtf/*",
        "*://localhost/*"
    ],
    "declarative_net_request": {
        "rule_resources": [
            {
                "id": "rules",
                "enabled": true,
                "path": "rules.json"
            }
        ]
    },
    "content_scripts": [
        {
            "matches": [
                "*://monochrome.samidy.com/*",
                "*://monochrome.tf/*",
                "*://lossless.wtf/*",
                "*://localhost:5173/*",
                "*://localhost:5174/*",
                "*://localhost:5175/*",
                "*://localhost:5176/*"
            ],
            "js": ["content.js"],
            "run_at": "document_start",
            "all_frames": true
        }
    ],
    "icons": {
        "16": "icons/16.png",
        "48": "icons/48.png",
        "128": "icons/128.png"
    },
    "web_accessible_resources": [
        {
            "resources": ["inject.js"],
            "matches": [
                "*://monochrome.samidy.com/*",
                "*://monochrome.tf/*",
                "*://lossless.wtf/*",
                "*://localhost:5173/*",
                "*://localhost:5174/*",
                "*://localhost:5175/*",
                "*://localhost:5176/*"
            ]
        }
    ]
}
