Skip to content

Commit

Permalink
Add DO
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorLai committed Sep 22, 2018
1 parent 496a488 commit f90f017
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 10 deletions.
Binary file added video-url-parser/images/digitalocean.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions video-url-parser/js/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const translation = (lang) => {
translate_text($('a#report_bugs'), lang, 'report_bugs');
translate_text($('button#setting_save_btn'), lang, 'save');
translate_text($('span#proudly_brought_to_you_by'), lang, 'proudly_brought_to_you_by');
translate_text($('span#vpspromotion'), lang, 'freevps');
translate_text($('a#text_video_downloader'), lang, 'video_downloader');
translate_text($('button#pic'), lang, 'images');
}
Expand Down
14 changes: 10 additions & 4 deletions video-url-parser/js/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,18 @@ const saveSettings = (showMsg = true) => {
}

// log in the textarea
const logit = (dom, msg) => {
const logit = (dom, msg, showtime = true) => {
if ((msg == undefined) || (msg == null)) {
return;
}
let d = new Date();
let n = d.toLocaleTimeString();
let s = dom.val();
dom.val((s + "\n" + n + ": " + msg).trim());
if (showtime) {
let d = new Date();
let n = d.toLocaleTimeString();
dom.val((s + "\n" + n + ": " + msg).trim());
} else {
dom.val((s + "\n" + msg).trim());
}
}

// use server API
Expand Down Expand Up @@ -91,6 +95,7 @@ document.addEventListener('DOMContentLoaded', function() {
$( "#tabs" ).tabs();
});


// load settings
chrome.storage.sync.get('video_downloader_settings', function(data) {
if (data && data.video_downloader_settings) {
Expand All @@ -109,6 +114,7 @@ document.addEventListener('DOMContentLoaded', function() {
let app_name = manifest.name + " v" + manifest.version;
// version number
$('textarea#about').val(get_text('application') + ': ' + app_name + '\n' + get_text('chrome_version') + ': ' + getChromeVersion());

// translate
ui_translate();
});
Expand Down
3 changes: 2 additions & 1 deletion video-url-parser/lang/en-us.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ let translation_english = {
'chrome_version': 'Chrome Version',
'api_finished': 'API Finished',
'calling': 'Calling',
'proudly_brought_to_you_by': 'Developed By'
'proudly_brought_to_you_by': 'Developed By',
'freevps': 'Cloud VPS Promotions'
}
3 changes: 2 additions & 1 deletion video-url-parser/lang/zh-cn.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ let translation_simplified_chinese = {
'chrome_version': '浏览器版本',
'api_finished': 'API完成',
'calling': '正在调用',
'proudly_brought_to_you_by': '开发:'
'proudly_brought_to_you_by': '开发:',
'freevps': '云VPS促销活动'
}
3 changes: 2 additions & 1 deletion video-url-parser/lang/zh-tw.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ let translation_traditional_chinese = {
'chrome_version': '瀏覽器版本',
'api_finished': 'API完成',
'calling': '正在調用',
'proudly_brought_to_you_by': '開發:'
'proudly_brought_to_you_by': '開發:',
'freevps': '雲VPS促銷活動'
}
12 changes: 10 additions & 2 deletions video-url-parser/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h4 id="text_vip_server_api_key">VIP Server API Key</h4>
</div>
<div id="tabs-log">
<h4><span id='proudly_brought_to_you_by'>Proudly brought to you by</span> <a target=_blank href="https://steemit.com/@justyy">@justyy</a> (<a target=_blank id='report_bugs' href="https://steakovercooked.com/Contact.Mail?title=Video+Downloader">Report Bugs</a>)
</h4>
</h4>
<h5>
<a target=_blank href="https://github.com/DoctorLai/VideoDownloadHelper"><B><span id='source_code'>Source Code</span></B>: https://github.com/DoctorLai/VideoDownloadHelper</a>
</h5>
Expand All @@ -65,7 +65,15 @@ <h5>
<a target=_blank href='https://justyy.com/out/vultr2'><img title='Free $10 VPS' src='images/vultr.jpg' class='banner'></a>
&nbsp;
<a target=_blank href='https://justyy.com/out/linode'><img title='Free $20 VPS' src='images/linode.jpg' class='banner'></a>
</div>
&nbsp;
<a target=_blank href='https://justyy.com/out/do'><img title='Free $10 VPS' src='images/digitalocean.jpg' class='banner'></a>
</div>
<div id='vpsdiv' style='text-align:center'>
<I><span id='vpspromotion' style='color:gray'>VPS Promotions</span></I>
<B>
<a target=_blank href='https://justyy.com/out/vultr2'>Vultr ($10)</a> | <a target=_blank href='https://justyy.com/out/linode'>Linode ($20)</a> | <a target=_blank href='https://justyy.com/out/do'>Digital Ocean ($10)</a>
</B>
</div>
</div>
</body>

Expand Down
2 changes: 1 addition & 1 deletion video-url-parser/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Simple Video Download Helper",
"short_name": "Video Download Helper",
"default_locale": "en",
"version": "3.0.2",
"version": "3.0.3",
"browser_action": {
"default_icon": "icon.png",
"default_title": "Video Download Helper",
Expand Down

0 comments on commit f90f017

Please sign in to comment.