YouTube Rotate-Zoom-Pan Video

Rotate/Zoom/Pan YouTube video
Premium users can view and search full source code, and see the source code differences between two versions.
Upgrade to premium
manifest.json
{
  "update_url": "https://clients2.google.com/service/update2/crx",
  "manifest_version": 3,
  "name": "YouTube Rotate-Zoom-Pan Video",
  "version": "1.4.3",
  "description": "Rotate/Zoom/Pan YouTube video",
  "permissions": [
    "activeTab"
  ],
  "background": {
    "service_worker": "background.js"
  },
  "action": {
    "default_popup": "popup.html",
    "default_icon": {
      "16": "icon.png",
      "48": "icon.png",
      "128": "icon.png"
    }
  },
  "content_scripts": [
    {
      "matches": [
        "https://www.youtube.com/*"
      ],
      "js": [
        "content.js"
      ]
    }
  ],
  "commands": {
    "reset-rotation": {
      "suggested_key": {
        "default": "Alt+Shift+1"
      },
      "description": "Reset video rotation"
    },
    "rotate-90": {
      "suggested_key": {
        "default": "Alt+Shift+2"
      },
      "description": "Rotate video by 90 degrees"
    },
    "rotate-180": {
      "suggested_key": {
        "default": "Alt+Shift+3"
      },
      "description": "Rotate video by 180 degrees"
    },
    "rotate-270": {
      "suggested_key": {
        "default": "Alt+Shift+4"
      },
      "description": "Rotate video by 270 degrees"
    }
  }
}