Youtube to invidious

Change every Youtube link to an Invidious one
Premium users can view and search full source code, and see the source code differences between two versions.
Upgrade to premium
manifest.json
{
  "manifest_version": 2,
  "name": "Youtube to invidious",
  "version": "0.4",
  "description": "Change every youtube link to an invidious one",
  "icons": {
    "48": "icons/48.png"
  },
  "page_action": {
    "show_matches": [
      "https://*.youtube.com/watch*"
    ],
    "browser_style": true,
    "default_icon": {
      "19": "button/19.png",
      "38": "button/38.png"
    }
  },
  "web_accessible_resources": [
    "icons/48.png"
  ],
  "content_scripts": [
    {
      "matches": [
        "<all_urls>"
      ],
      "js": [
        "to-invidious.js"
      ]
    }
  ],
  "background": {
    "scripts": [
      "background.js"
    ]
  },
  "options_ui": {
    "page": "options.html"
  },
  "permissions": [
    "storage",
    "tabs"
  ],
  "browser_specific_settings": {
    "gecko": {
      "id": "11f63659fb336c2593b0f48375566cf66c5d8e12d@amine-louveau.fr"
    }
  }
}