Greasy Fork

来自缓存

Greasy Fork is available in English.

Youtube Unblocker

Automatically forwards country-blocked YouTube videos to clipzag.com and unblocks the video.

目前为 2023-06-11 提交的版本。查看 最新版本

// ==UserScript==
// @name         Youtube Unblocker
// @namespace    YTUB
// @version      6.2
// @description  Automatically forwards country-blocked YouTube videos to clipzag.com and unblocks the video.
// @author       drhouse
// @include      https://www.youtube.com/watch*
// @include      https://clipzag.com/*
// @require      http://code.jquery.com/jquery-3.4.1.min.js
// @require      https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js
// @require      https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js
// @license      CC-BY-NC-SA-4.0
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @locale       en
// ==/UserScript==

this.$ = this.jQuery = jQuery.noConflict(true);
(function($){

	//classic youtube
	if ($('#player-unavailable:not(.hid)').length) {
		location.replace('https://clipzag.com/watch' + location.search);
	}
	

	//new material design
	if ($('ytd-watch').attr('player-unavailable')==="") {
		location.replace('https://clipzag.com/watch' + location.search);
	}

})(jQuery);