您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Allows you to watch youtube videos in not distorted (scaled) 720p resolution. Click on the title of the video to redirect you.
当前为
// ==UserScript== // @name Youtube true 720p player // @description Allows you to watch youtube videos in not distorted (scaled) 720p resolution. Click on the title of the video to redirect you. // @author Jan harvalík [email protected] // @version 1.4 // @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://greasyfork.org/users/12627 // ==/UserScript== var title=document.getElementById('eow-title'); title.style.color="red"; title.style.cursor="pointer"; var text=title.innerHTML; title.innerHTML = "►"+ text; // Copies 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"); };