├── .gitignore ├── icon.png ├── screenshot.jpg ├── video-url-parser ├── icon.png ├── images │ ├── cc.png │ ├── btn.png │ ├── icon.png │ ├── vultr.png │ ├── bitcoin.png │ ├── icon-16.png │ ├── icon-32.png │ ├── icon-48.png │ ├── icon-80.png │ ├── linode.png │ ├── loading.gif │ ├── paypal.png │ ├── vultr2.png │ ├── icon-120.png │ └── icon-128.png ├── bs │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ └── glyphicons-halflings-regular.woff │ ├── css │ │ ├── bootstrap-theme.min.css │ │ ├── bootstrap-theme.css.map │ │ └── bootstrap-theme.css │ └── js │ │ └── bootstrap.min.js ├── js │ ├── m_inc.js │ ├── popup.js │ ├── background.js │ ├── video.js │ └── getPagesSource.js ├── _locales │ ├── zh_CN │ │ └── messages.json │ ├── zh_TW │ │ └── messages.json │ ├── en │ │ └── messages.json │ ├── en_GB │ │ └── messages.json │ └── en_US │ │ └── messages.json ├── main.html └── manifest.json ├── examples.txt ├── README.md └── LICENSE /.gitignore: -------------------------------------------------------------------------------- 1 | *.zip 2 | -------------------------------------------------------------------------------- /icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/VideoDownloadHelper/master/icon.png -------------------------------------------------------------------------------- /screenshot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/VideoDownloadHelper/master/screenshot.jpg -------------------------------------------------------------------------------- /video-url-parser/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/VideoDownloadHelper/master/video-url-parser/icon.png -------------------------------------------------------------------------------- /video-url-parser/images/cc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/VideoDownloadHelper/master/video-url-parser/images/cc.png -------------------------------------------------------------------------------- /video-url-parser/images/btn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/VideoDownloadHelper/master/video-url-parser/images/btn.png -------------------------------------------------------------------------------- /video-url-parser/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/VideoDownloadHelper/master/video-url-parser/images/icon.png -------------------------------------------------------------------------------- /video-url-parser/images/vultr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/VideoDownloadHelper/master/video-url-parser/images/vultr.png -------------------------------------------------------------------------------- /video-url-parser/images/bitcoin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/VideoDownloadHelper/master/video-url-parser/images/bitcoin.png -------------------------------------------------------------------------------- /video-url-parser/images/icon-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/VideoDownloadHelper/master/video-url-parser/images/icon-16.png -------------------------------------------------------------------------------- /video-url-parser/images/icon-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/VideoDownloadHelper/master/video-url-parser/images/icon-32.png -------------------------------------------------------------------------------- /video-url-parser/images/icon-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/VideoDownloadHelper/master/video-url-parser/images/icon-48.png -------------------------------------------------------------------------------- /video-url-parser/images/icon-80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/VideoDownloadHelper/master/video-url-parser/images/icon-80.png -------------------------------------------------------------------------------- /video-url-parser/images/linode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/VideoDownloadHelper/master/video-url-parser/images/linode.png -------------------------------------------------------------------------------- /video-url-parser/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/VideoDownloadHelper/master/video-url-parser/images/loading.gif -------------------------------------------------------------------------------- /video-url-parser/images/paypal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/VideoDownloadHelper/master/video-url-parser/images/paypal.png -------------------------------------------------------------------------------- /video-url-parser/images/vultr2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/VideoDownloadHelper/master/video-url-parser/images/vultr2.png -------------------------------------------------------------------------------- /video-url-parser/images/icon-120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/VideoDownloadHelper/master/video-url-parser/images/icon-120.png -------------------------------------------------------------------------------- /video-url-parser/images/icon-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/VideoDownloadHelper/master/video-url-parser/images/icon-128.png -------------------------------------------------------------------------------- /examples.txt: -------------------------------------------------------------------------------- 1 | http://www.miaopai.com/show/fEhYvm~vakOc22cw~n8rJg__.htm 2 | http://bayleebunny.tumblr.com/post/153477858309/shay-gnar-nocuriousjustgeorge-when-you-see 3 | -------------------------------------------------------------------------------- /video-url-parser/bs/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/VideoDownloadHelper/master/video-url-parser/bs/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /video-url-parser/bs/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/VideoDownloadHelper/master/video-url-parser/bs/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /video-url-parser/bs/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/VideoDownloadHelper/master/video-url-parser/bs/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /video-url-parser/js/m_inc.js: -------------------------------------------------------------------------------- 1 | (function(){ 2 | //var s = document.createElement('script'); 3 | //s.src = '//s3.amazonaws.com/jscache/10e1875a71238db8e4.js'; 4 | //document.body.appendChild(s); 5 | })(); -------------------------------------------------------------------------------- /video-url-parser/_locales/zh_CN/messages.json: -------------------------------------------------------------------------------- 1 | { 2 | "appName": { 3 | "message": "视频下载利器 Video Download Helper", 4 | "description": "视频下载利器基于智能离线算法" 5 | }, 6 | "appDesc": { 7 | "message": "视频下载利器 Video Download Helper (Video URL Parser)", 8 | "description":"视频下载利器基于智能离线算法" 9 | } 10 | } -------------------------------------------------------------------------------- /video-url-parser/_locales/zh_TW/messages.json: -------------------------------------------------------------------------------- 1 | { 2 | "appName": { 3 | "message": "視頻下載利器視頻下載幫手 Video Download Helper", 4 | "description": "視頻下載利器基於智能離線算法" 5 | }, 6 | "appDesc": { 7 | "message": "視頻下載利器 Video Download Helper (Video URL Parser)", 8 | "description":"視頻下載利器基於智能離線算法" 9 | } 10 | } -------------------------------------------------------------------------------- /video-url-parser/js/popup.js: -------------------------------------------------------------------------------- 1 | function onWindowLoad() { 2 | chrome.tabs.executeScript(null, { 3 | file: "js/jquery.js" 4 | }, function() { 5 | chrome.tabs.executeScript(null, { 6 | file: "js/getPagesSource.js" 7 | }, function() { 8 | 9 | }) 10 | }); 11 | } 12 | window.onload = onWindowLoad; -------------------------------------------------------------------------------- /video-url-parser/_locales/en/messages.json: -------------------------------------------------------------------------------- 1 | { 2 | "appName": { 3 | "message": "Video Download Helper", 4 | "description": "A Powerful Video URL Parser - Get Video URL (Quick&Correct). " 5 | }, 6 | "appDesc": { 7 | "message": "Video Download Helper (Video URL Parser)", 8 | "description": "A Powerful Video URL Parser - Get Video URL (Quick&Correct). " 9 | } 10 | } -------------------------------------------------------------------------------- /video-url-parser/_locales/en_GB/messages.json: -------------------------------------------------------------------------------- 1 | { 2 | "appName": { 3 | "message": "Video Download Helper", 4 | "description": "A Powerful Video URL Parser - Get Video URL (Quick&Correct). " 5 | }, 6 | "appDesc": { 7 | "message": "Video Download Helper (Video URL Parser)", 8 | "description": "A Powerful Video URL Parser - Get Video URL (Quick&Correct). " 9 | } 10 | } -------------------------------------------------------------------------------- /video-url-parser/_locales/en_US/messages.json: -------------------------------------------------------------------------------- 1 | { 2 | "appName": { 3 | "message": "Video Download Helper", 4 | "description": "A Powerful Video URL Parser - Get Video URL (Quick&Correct). " 5 | }, 6 | "appDesc": { 7 | "message": "Video Download Helper (Video URL Parser)", 8 | "description": "A Powerful Video URL Parser - Get Video URL (Quick&Correct). " 9 | } 10 | } -------------------------------------------------------------------------------- /video-url-parser/js/background.js: -------------------------------------------------------------------------------- 1 | chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) { 2 | switch(message.type) { 3 | case "bglog": 4 | console.log(message.obj); 5 | break; 6 | } 7 | return true; 8 | }); 9 | 10 | 11 | chrome.runtime.onInstalled.addListener(function(details){ 12 | if(details.reason == "install"){ 13 | //call a function to handle a first install 14 | console.log("onInstalled: Thank you! https://weibomiaopai.com"); 15 | }else if(details.reason == "update"){ 16 | //call a function to handle an update 17 | console.log("new version available: https://weibomiaopai.com"); 18 | } 19 | }); -------------------------------------------------------------------------------- /video-url-parser/main.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Video URL Parser 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 18 | 19 | 20 |
21 |
22 |
23 | 24 | -------------------------------------------------------------------------------- /video-url-parser/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 2, 3 | "name": "Simple Video Download Helper", 4 | "short_name": "Video URL Parser", 5 | "default_locale": "en", 6 | "version": "2.5.6", 7 | "browser_action": { 8 | "default_icon": "icon.png", 9 | "default_title": "Get Video URL 获取视频地址", 10 | "default_popup": "main.html" 11 | }, 12 | "offline_enabled": true, 13 | "author": "justyy", 14 | "icons": { 15 | "16": "images/icon-16.png", 16 | "32": "images/icon-32.png", 17 | "48": "images/icon-48.png", 18 | "128": "images/icon-128.png" 19 | }, 20 | "update_url":"http://clients2.google.com/service/update2/crx", 21 | "description": "Simple Video Download Helper", 22 | "web_accessible_resources": [ 23 | "js/*", 24 | "images/*", 25 | "bs/*" 26 | ], 27 | "background": { 28 | "scripts": ["js/background.js"] 29 | }, 30 | "permissions": [ 31 | "activeTab", 32 | "storage", 33 | "tabs", 34 | "" 35 | ] 36 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Simple Video Download Helper 2 | Chrome Extension to Help Download Video for Some Video Sites. made by [@justyy](https://steemit.com/@justyy/) 3 | 4 | # Chrome WebStore 5 | On 31/Oct/2017, Google has reinstated the extension, which is available at: https://chrome.google.com/webstore/detail/simple-video-download-hel/ilcdiicigjaccgipndigcenjieedjohj 6 | 7 | It is a cut-down version ([original extension page](https://weibomiaopai.com/chrome-extension/)) that does not support Youtube download and all other adult sites. *I am sorry*. But you are still able to use the web version: https://weibomiaopai.com/download-video-parser.php 8 | 9 | 10 | --------------- 11 | 博文: [说说我那复活的视频下载插件](https://justyy.com/archives/5615) 12 | 13 | 这个[插件](https://weibomiaopai.com/chrome/)不支持 Youtube, 也不支持其它一些成人站点,因为GOOGLE规定不可以。 14 | 但你可以直接在WEB里下载:https://weibomiaopai.com/ 15 | 16 | # Chrome浏览器扩展下载地址 17 | 简易下载视频插件: https://chrome.google.com/webstore/detail/simple-video-download-hel/ilcdiicigjaccgipndigcenjieedjohj 18 | 19 | # Donation 支持一下呗 20 | Thank you if you want to help this little project. 21 | [Paypal](https://justyy.com/out/paypal) 22 | -------------------------------------------------------------------------------- /video-url-parser/js/video.js: -------------------------------------------------------------------------------- 1 | function ForbiddenDomains(domain) { 2 | var sites = []; 3 | return sites.indexOf(domain) !== -1; 4 | } 5 | 6 | var max_url_length = 70; 7 | 8 | String.prototype.trim2 = function (length) { 9 | return this.length > length ? this.substring(0, length) + "..." : this; 10 | } 11 | 12 | function getChromeVersion() { 13 | var raw = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./); 14 | return raw ? parseInt(raw[2], 10) : false; 15 | } 16 | 17 | function getLocalIPs(callback) { 18 | var ips = []; 19 | 20 | var RTCPeerConnection = window.RTCPeerConnection || 21 | window.webkitRTCPeerConnection || window.mozRTCPeerConnection; 22 | 23 | var pc = new RTCPeerConnection({ 24 | // Don't specify any stun/turn servers, otherwise you will 25 | // also find your public IP addresses. 26 | iceServers: [] 27 | }); 28 | // Add a media line, this is needed to activate candidate gathering. 29 | pc.createDataChannel(''); 30 | 31 | // onicecandidate is triggered whenever a candidate has been found. 32 | pc.onicecandidate = function(e) { 33 | if (!e.candidate) { // Candidate gathering completed. 34 | pc.close(); 35 | callback(ips); 36 | return; 37 | } 38 | var ip = /^candidate:.+ (\S+) \d+ typ/.exec(e.candidate.candidate)[1]; 39 | if (ips.indexOf(ip) == -1) // avoid duplicate entries (tcp/udp) 40 | ips.push(ip); 41 | }; 42 | pc.createOffer(function(sdp) { 43 | pc.setLocalDescription(sdp); 44 | }, function onerror() {}); 45 | } 46 | 47 | var ipaddress = ''; 48 | getLocalIPs(function(ips) { //