A simple Chrome extension to convert YouTube short URLs to the full video URLs and optionally auto-redirect. The extensions is deployed here.
- Instant Redirect: With just a click, convert the YouTube short URL to its full video URL and stay on the same tab.
- Open in New Tab: Want to keep the short URL page and also view the full video? Just use this feature to open the full video URL in a new tab.
- Auto-Redirect: Don't want to click every time? Just toggle on the Auto-Redirect feature, and every time you visit a YouTube short URL, the extension will automatically redirect you to the full video URL.
- Clone or download this repository.
- Open Google Chrome and go to
chrome://extensions/
. - Enable "Developer mode" (usually a toggle switch in the top right corner).
- Click "Load unpacked" and select the directory where you cloned or extracted the extension.
- The extension icon should now appear in your Chrome toolbar.
- Click on the extension icon in the Chrome toolbar.
- For a one-time redirect, use the "Redirect Now" button.
- To open the full video URL in a new tab, use the "Open in New Tab" button.
- To enable or disable auto-redirect, use the "Auto redirect" toggle.
- Red:
#d72323
- Off-white:
#f5eded
- Gray:
#3e3636
- Black:
#000000
Apache License. See LICENSE
for more information.
For clarity and transparency, here's a brief justification for each of the permissions and host permissions required by this extension:
-
tabs:
- Purpose: To interact with browser tabs. This enables operations like querying for currently open tabs, opening new ones, or updating existing tabs.
- Usage in Extension: Enables the functionality to redirect from a YouTube short video URL to its standard format and to open the transformed URL in a new tab.
-
activeTab:
- Purpose: Provides temporary access to the current active tab when the user invokes the extension.
- Usage in Extension: Determines if the current URL is a YouTube short URL and performs the redirection operation.
-
storage:
- Purpose: Allows the extension to use the Chrome
storage
API to save and retrieve data. - Usage in Extension: Saves and retrieves the user's "Auto redirect" choice, ensuring the extension remembers user preferences.
- Purpose: Allows the extension to use the Chrome
- https://www.youtube.com/*:
- Purpose: Grants the extension access to pages under the
youtube.com
domain. - Usage in Extension: Ensures the extension can detect and act on YouTube short URLs, transforming them to their corresponding standard format.
- Purpose: Grants the extension access to pages under the