Skip to content

Commit bb5ad7c

Browse files
committed
Add upload button
1 parent 7ce2659 commit bb5ad7c

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

html/dialogs.html

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,8 @@ <h4 class="modal-title" style="text-align: center;"><b>What's new in version <sp
6161
<div class="modal-body">
6262
<div style="text-align: center;">
6363
<ul class="list-group" style="display: inline-block;">
64-
<li class="list-group-item" style="text-align: left; border: 0 none;">Modified add clip to not select automatically</li>
65-
<li class="list-group-item" style="text-align: left; border: 0 none;">Added browser action button</li>
66-
<li class="list-group-item" style="text-align: left; border: 0 none;">Updated playback controls</li>
67-
<li class="list-group-item" style="text-align: left; border: 0 none;">Hotkey indicators on tabs</li>
68-
<li class="list-group-item" style="text-align: left; border: 0 none;">Toast notifications to provide feedback to the user</li>
69-
<li class="list-group-item" style="text-align: left; border: 0 none;">Improvements to clip previews</li>
70-
<li class="list-group-item" style="text-align: left; border: 0 none;">Improvements to add clip/image behavior</li>
71-
<li class="list-group-item" style="text-align: left; border: 0 none;">Better integration with existing Youtube provided hotkeys (preview with Spacebar and add with Enter key)</li>
72-
<li class="list-group-item" style="text-align: left; border: 0 none;">Updated help screen</li>
73-
</ul>
64+
<li class="list-group-item" style="text-align: left; border: 0 none;">Added upload video button which links to the Youtube upload page.</li>
65+
</ul>
7466
</div>
7567
</div>
7668
</div>

js/yteditorpro.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,10 @@
335335
return Date.parse("01/01/01 00:" + mins + ":" + secs);
336336
}
337337

338+
function handleUpload() {
339+
window.location = 'https://www.youtube.com/upload';
340+
}
341+
338342
function setupUI() {
339343
//Update the timeline scrollbar on every scroll to lock it in place
340344
$(".editor-timeline").scroll(function(evt) {
@@ -390,6 +394,10 @@
390394

391395
$("#save-changes-message").after(" <span id='play-state-msg' class='play-state-paused'>" + PAUSED_MESSAGE + "</span>");
392396

397+
//Add upload button
398+
$("#publish-button").after("<button class='yt-uix-button yt-uix-button-size-default yt-uix-button-primary' style='float: right;' type='button' id='upload-button'><span class='yt-uix-button-content'>Upload video</span></button>");
399+
$("#upload-button").on("click", handleUpload);
400+
393401
//Tab hotkey indicators
394402
$("#video-tab").append('<span class="yt_tab_hotkey_label">1</span>');
395403
$("#cc-tab").append('<span class="yt_tab_hotkey_label">2</span>');

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name": "Pro Mode for YouTube Video Editor",
55
"minimum_chrome_version" : "22.0.0.0",
66
"description": "Enables various hotkeys to speed up and generally make YouTube's video editor more usable.",
7-
"version": "0.23",
7+
"version": "0.24",
88
"short_name" : "YTEditorProMode",
99
"browser_action": {
1010
"default_icon": {

0 commit comments

Comments
 (0)