Examine source code of YouTube AutoPlay/Pause

Inspect and view changes in YouTube AutoPlay/Pause source codes across current and past versions
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 Auto Pause",
  "version": "1.0",
  "description": "Pauses YouTube video when you switch to another tab and plays it again when you come back.",
  "permissions": [
    "tabs",
    "activeTab",
    "http://*/",
    "https://*/"
  ],
  "background": {
    "scripts": [
      "background.js"
    ]
  },
  "content_scripts": [
    {
      "matches": [
        "*://www.youtube.com/*"
      ],
      "js": [
        "content.js"
      ]
    }
  ],
  "browser_specific_settings": {
    "gecko": {
      "id": "youtube-autopause@example.com"
    }
  }
}