Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Instructions - MUST READ
- *
- * Usage: FireFox with FireBug console (multi-line, jQuery)
- *
- * All VoDs must be visible. For this, scroll down until no more videos are loaded.
- * Then, try to export a video. You have to authorize with YouTube first, maybe twice even.
- * Make sure that exporting works and that the green "notification toaster" pops up showing
- * success.
- *
- * Your YouTube account must be verified, by SMS code for example, to allow videos longer than 15min.
- * Otherwise, uncomment the code below.
- *
- */
- (function ($) {
- var buttons = $(".actions .action-menu-list li:nth-of-type(2) a");
- function export_video (i) {
- var bt = buttons.get(i);
- if (bt === undefined)
- return;
- var title = $.trim($(bt).parents(".meta").find(".title a").text());
- console.log("exporting: " + title);
- bt.click();
- setTimeout(
- function () {
- $("#privacy_settings").val("private");
- // Uncomment this if you, for some reason, can not upload videos longer than 15min:
- // $("#do_split").val("on");
- $("#upload_form_container .buttons .primary").click();
- setTimeout(
- function () {
- export_video(i - 1);
- },
- 500
- );
- },
- 300
- );
- }
- // Iterate buttons backwards so that the oldest video is uploaded first
- export_video(-1);
- })
- (jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement