Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
...
  • 2 commits
  • 5 files changed
  • 0 commit comments
  • 1 contributor
Showing with 24 additions and 15 deletions.
  1. +2 −2 _locales/en/messages.json
  2. +9 −5 content_script.js
  3. +6 −7 manifest.json
  4. +6 −0 popup.css
  5. +1 −1 popup.html
View
4 _locales/en/messages.json
@@ -1,5 +1,5 @@
{
- "extName": {"message": "Online-Convert.com", "description": "Extension name"},
- "extDesc": {"message": "Online-Convert extension", "description": "Extension description"},
+ "extName": {"message": "Download video from this page", "description": "Extension name"},
+ "extDesc": {"message": "Download video from youtube, google video, metacafe, yahoo video and some others", "description": "Extension description"},
"download_video": {"message": "Download video from this page", "description": "video"}
}
View
14 content_script.js
@@ -31,6 +31,10 @@ function convert_video(info, tab) {
});
}
+chrome.pageAction.onClicked.addListener(function(tab) {
+ convert_video({}, tab);
+});
+
/* inject "Download" link into page/link context menus */
var video_menu = chrome.contextMenus.create({
@@ -40,11 +44,11 @@ var video_menu = chrome.contextMenus.create({
"documentUrlPatterns": [
'*://video.google.com/*',
'*://*.youtube.com/watch*',
- '*://metacafe.com/*',
- '*://photobucket.com/*',
+ '*://*.metacafe.com/watch/*',
+ '*://*.photobucket.com/*',
+ '*://*.yahoo.com/?vid=*',
'*://video.yahoo.com/*',
- '*://dailymotion.com/video/*',
- '*://depositfiles.com/*',
- '*://facebook.com/video/video.php*',
+ '*://*.dailymotion.com/video/*',
+ '*://*.facebook.com/video/video.php*',
]
});
View
13 manifest.json
@@ -12,16 +12,15 @@
"http://bananos.kiev.ua/gh/api.php",
"*://video.google.com/*",
"*://*.youtube.com/watch*",
- "*://metacafe.com/*",
- "*://photobucket.com/*",
- "*://video.yahoo.com/*",
- "*://dailymotion.com/video/*",
- "*://depositfiles.com/*",
- "*://facebook.com/video/video.php*"
+ "*://*.metacafe.com/watch/*",
+ "*://*.photobucket.com/*",
+ "*://*.yahoo.com/*",
+ "*://*.dailymotion.com/video/*",
+ "*://*.facebook.com/video/video.php*"
],
"background_page": "background.html",
"browser_action": { "default_icon": "logo.png",
- "default_title": "Download video",
+ "default_title": "Download video from this page",
"popup": "popup.html" },
"icons": { "48": "logo.png" }
}
View
6 popup.css
@@ -8,4 +8,10 @@ h2 {
}
.help-do {
color: #693;
+}
+.comment {
+ color: #777;
+}
+.comment a {
+ color: #777;
}
View
2 popup.html
@@ -18,6 +18,6 @@
</ul>
</p>
<p class="help-do">Right click on pages and links and select "Download video from this site".</p>
- <p><small>Based on awesome <a href="http://rg3.github.com/youtube-dl/">youtube-dl</a> script.</small> </p>
+ <p class="comment">* with using <a href="https://github.com/rg3/youtube-dl/" target="_blank">rg3/youtube-dl/</a></p>
</body>
</html>

No commit comments for this range

Something went wrong with that request. Please try again.