Youtube true 720p player

Title of the video is a link to a webpage containing 1280x720px youtube player.

目前為 2015-06-24 提交的版本,檢視 最新版本

// ==UserScript==
// @name Youtube true 720p player
// @description Title of the video is a link to a webpage containing 1280x720px youtube player.
// @author Jan harvalík [email protected]
// @version 1.1
// @date 2015-06-22
// @include http://www.youtube.com/*
// @include https://www.youtube.com/*
// @exclude http://www.youtube.com/embed/*
// @exclude https://www.youtube.com/embed/*
// @grant GM_xmlhttpRequest
// @grant GM_getValue
// @grant GM_setValue
// @run-at document-end
// @license     MIT License
// @namespace https://gf.qytechs.cn/users/12627
// ==/UserScript==


	var title=document.getElementById('eow-title');

	title.style.color="red";
	title.style.cursor="pointer";

	var text=title.innerHTML;
	title.innerHTML =  "►"+ text;

	

	// Copis the video code from URL, parameter v.
	var v = location.search.split('v=')[1];

	title.onclick=function(){

		var pauseButton = document.querySelector('.ytp-button-pause');
		if (typeof(pauseButton) !== 'undefined' && pauseButton !== null){

			pauseButton.click();
		}

		/*
		The "player" can't be file inside the computer (security), so google drive is used as server ( https://support.google.com/drive/answer/2881970?hl=en )
		URL of the file is http://www.googledrive.com/host/0B-gs6HL8vtTZeXd3bHhqZmIwWjg/ parameter v is used in the same fashion as on youtube
		*/
		window.open("http://www.googledrive.com/host/0B-gs6HL8vtTZeXd3bHhqZmIwWjg/?v="+v,"_blank");
	};

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址