mirror of
https://github.com/chev2/scripts-styles.git
synced 2025-10-29 15:51:31 +00:00
Add UserScript: Redirect YouTube to FreeTube
This commit is contained in:
parent
8cc115caa8
commit
de83f2e582
1 changed files with 26 additions and 0 deletions
26
scripts/redirect-youtube-freetube.js
Normal file
26
scripts/redirect-youtube-freetube.js
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
// ==UserScript==
|
||||
// @name Redirect: YouTube to FreeTube
|
||||
// @author Chev <riskyrains@proton.me> (https://github.com/chev2)
|
||||
// @version 1.0.0
|
||||
// @description Redirects from YouTube to FreeTube when a YouTube video is navigated to.
|
||||
// @namespace github.com/chev2
|
||||
// @license Apache-2.0
|
||||
|
||||
// @homepageURL https://github.com/chev2/scripts-styles
|
||||
// @supportURL https://github.com/chev2/scripts-styles/issues
|
||||
// @updateURL https://raw.githubusercontent.com/chev2/scripts-styles/main/scripts/redirect-youtube-freetube.js
|
||||
// @downloadURL https://raw.githubusercontent.com/chev2/scripts-styles/main/scripts/redirect-youtube-freetube.js
|
||||
|
||||
// @match *://www.youtube.com/watch?v=*
|
||||
// @icon https://icons.duckduckgo.com/ip3/freetubeapp.io.ico
|
||||
|
||||
// @grant none
|
||||
// @run-at document-start
|
||||
// ==/UserScript==
|
||||
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
// Redirect to Freetube app protocol
|
||||
location.href = "freetube://" + location.href;
|
||||
})();
|
||||
Loading…
Add table
Reference in a new issue