// ==UserScript== // @name ZXDL // @namespace http://zoox18.com/ // @version 1.5.3 // @description View and download private videos from ZX18. // @author Narkuh // @match http*://*.zoox18.com/* // @connect pastebin.com // @grant GM_download // @grant GM_xmlhttpRequest // @require http://code.jquery.com/jquery-3.4.1.min.js // @require https://cdn.plyr.io/3.5.6/plyr.js // ==/UserScript== var id = window.location.pathname.split("/")[2]; var key0 = ""; var key1 = ""; var key2 = ""; var paths = []; var downloading = false; var found = false; var isPrivateWindow = false; var vidUrl = ''; var uploader = 'Unknown'; var title = 'Unknown'; var description = 'None'; var linkCheckThisSession = false; $('.navbar').after('
') $('.top-menu > .pull-left').append('Uploaded by '+uploader+'
"'+description+'"
('+vidUrl+')
This can take up to a minute.
'); await getItems(true); paths.forEach(scan); } } else if($('#wrapper .container .row .col-md-8 .vcontainer ').length > 0) { // If public video page active await getItems(true); paths.forEach(scan); } else { await getItems(false); } }; $( "a[href='#zxdl-modal']" ).click(function() { menuLinkCheck(); }); window.onload=init();