Youtube 2 Piped

Redirect YouTube to piped.kavin.rocks

질문, 리뷰하거나, 이 스크립트를 신고하세요.
// ==UserScript==
// @name         Youtube 2 Piped
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Redirect YouTube to piped.kavin.rocks
// @author       seaque
// @match        *://*.youtube.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant        none
// @run-at       document-start
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    if (window.location.href.match(/^https?:\/\/www.youtube\.com\/watch\?v=[A-Za-z0-9]*/)) {
	window.location.replace ("https://piped.video" + window.location.href.substr(23,44));
}
})();