Shorts are a necessity in the age of TikTok. But they have their annoyances.
For one thing, there is a text and stuff overlay that often obscures text in the
actual video, and gives no way to hide it. What you can do is to take the video id
and load that as a regular video. This userscript automates that so that, on
a short page, you can press Ctrl-Alt-P to switch into a regular video viewer.
// ==UserScript==
// @name Youtube shorts to regular key combo
// @namespace http://tampermonkey.net/
// @version 2025-07-02
// @description A-C-p to switch to regular video view
// @author John Allsup
// @match https://www.youtube.com/shorts/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
// This is my regular function to turn key events to a standard form like `A-C-p`
// for Alt-Control-p. The key name is lowercase, and the modifiers are single capital
// letters in ascending lexicographic order. So `A-C-p` and not `C-A-p`, for example.
// The name acms is short for "alt control meta shift". I try to key 'meta' (aka Windows)
// reserved for global desktop things, and anything without meta reserved for applications.
function acms(e) {
let key = e.key
const code = e.code.toLowerCase()
if( code === "backquote" ) { key = "`" }
if( code.startsWith("digit") ) { key = code.substr(5) }
if( code === "space" ) { key = "space" }
let t = key.toLowerCase()
if( e.shiftKey ) t = "S-"+t
if( e.metaKey ) t = "M-"+t
if( e.ctrlKey ) t = "C-"+t
if( e.altKey ) t = "A-"+t
return t
}
window.addEventListener("keydown", e => {
const k = acms(e)
if( k == "A-C-p" ) {
e.preventDefault()
const here = window.location.href
let x = here.split("?")[0].split("/").slice(-1)[0]
let url = `https://www.youtube.com/watch?v=${x}`
window.location.href = url
}
})
})();