Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Youtube embed redirect
// @namespace Mikhail Zavoloka
// @version 1.0
// @description Open youtube videos in embed mode (by replacing 'watch' to 'embed' in url)
// @match *://*.youtube.com/*
// @run-at document-start
// @grant window.onurlchange
// ==/UserScript==