// ==UserScript== // @name Youtube circumvent verify age // @namespace - // @include http://www.youtube.com/* // @include http://youtube.com/* // @include https://www.youtube.com/* // @include https://youtube.com/* // @version 1 // ==/UserScript== // (function() { // Old age verification. var url = location.href; if(url.search(/verify_age/i) != -1) { var matches = location.href.match(/watch%3Fv%3D([^&%]*)/); if(matches.length > 1) location.href = 'http://youtube.com/v/' + matches[1]; } // New age verification. if(typeof(document.getElementById('watch7-player-age-gate-content')) != 'undefined') { var matches = location.href.match(/watch\?v=([^&%]*)/); if(matches.length > 1) location.href = 'http://youtube.com/v/' + matches[1]; } })();