您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Prevents you from having to sign in to view age restricted videos on YouTube
当前为
// ==UserScript== // @name Youtube Age Confirmation Bypass // @namespace kneels // @description Prevents you from having to sign in to view age restricted videos on YouTube // @include https://www.youtube.*/watch* // @include http://*.youtube.*/watch* // @include https://*.youtube.*/watch* // @match http://*.youtube.com/watch* // @match https://*.youtube.com/watch* // @match https://*.youtube.com/verify_age* // @version 1.55 // @grant none // ==/UserScript== var quality = 720; // Change this to the default quality of your preference var currentUrl = decodeURIComponent(window.location.href); if(currentUrl.indexOf("verify_age?next_url=/") != -1) { // Redirect to the regular page window.location = currentUrl.replace("verify_age?next_url=/", ""); } else { var el = document.getElementById('unavailable-submessage'); if (el.childNodes.length > 1) { var embedString = "<iframe width=\"100%\" height=\"100%\" src='" + getEmbedUrl(getVideoID(currentUrl)) + "?autoplay=1&vq=hd" + quality + "' frameborder=\"0\" allowfullscreen></iframe>"; document.getElementById('player-unavailable').innerHTML = embedString; } } function getEmbedUrl(videoID) { return "https://www.youtube.com/embed/" + videoID; } function getVideoID(url) { url = url.substr(url.indexOf("v=") + 2); var junk = url.indexOf("&"); if(junk != -1) { url = url.substr(0, junk); } return url; }