Files
browser_script/Open_In_Youtube.js
2022-07-21 19:30:21 +08:00

12 lines
541 B
JavaScript

// ==UserScript==
// @name Open YouTube App
// @version 1.0.0
// @author asportnoy
// @match *://*.youtube.com/*
// @downloadURL https://gist.github.com/asportnoy/628b820184297f5fe296c1a5b79c8000/raw/
// @updateURL https://gist.github.com/asportnoy/628b820184297f5fe296c1a5b79c8000/raw/
// @homepage https://gist.github.com/asportnoy/628b820184297f5fe296c1a5b79c8000/
// ==/UserScript==
window.location.href = `youtube://${window.location.pathname.slice(1)}${
window.location.search
}${window.location.hash}`;