create account

Simple Video Downloader 3.0.9 - Extract the Links + Add WhichAV Site by justyy

View this thread on: hive.blogpeakd.comecency.com
· @justyy · (edited)
$1.75
Simple Video Downloader 3.0.9 - Extract the Links + Add WhichAV Site
# Introducing the Simple Video Downloader
![image.png](https://ipfs.busy.org/ipfs/QmS4Zzmp1BTqPtP4i6LYYTApFFGzVQCCeLzJckVTTaoutw)

The [Video Downloader](https://chrome.google.com/webstore/detail/simple-video-download-hel/ilcdiicigjaccgipndigcenjieedjohj) is a Chrome Extension that helps you save your favorite videos. It can be installed via Chrome Webstore:
https://chrome.google.com/webstore/detail/ilcdiicigjaccgipndigcenjieedjohj/

# Total Number of Current Users (growing!)
![image.png](https://ipfs.busy.org/ipfs/QmfZYN8tckPHKr8n9Ed3Q1B5vD9RcfmhgZyoAK3y5hmrcy)

# Install on Firefox or other browsers?
It should work, but not fully tested on Firefox via [Chrome Extension Foxified](https://addons.mozilla.org/en-GB/firefox/addon/chrome-store-foxified/)

# Install Unpacked Versions
Zipped releases: https://github.com/DoctorLai/VideoDownloadHelper/releases
Download the zip and then you can load unpacked version in Chrome (under development mode)

# Changes v3.0.9
Pull Requests Merged: https://github.com/DoctorLai/VideoDownloadHelper/pull/9

1. Support WhichAV
2. New Feature: Links Extractor - all the links (unique) in the current page will be extracted 
![image.png](https://ipfs.busy.org/ipfs/QmdBcu8PkLbkU6ZtPqLoTpGG6VP8ceq8JWEuTwNA3rpDbr)


# Unit Tests
`npm run test`
![image.png](https://ipfs.busy.org/ipfs/QmW2HvjW2ESQRoVJfA2LEAEk7QqRPHviQWn7nF4qvEps3Z)

59 tests passed on Travis CI: https://travis-ci.com/DoctorLai/VideoDownloadHelper/builds/98552005

# Build
`npm run build` which webpacks the ES6 class `ParseVideo` into `\dist\*js`

# Screenshot
![image.png](https://ipfs.busy.org/ipfs/QmPy4oS8yG9aobDDJyUDgtmA1ztS6raHdLLb53sN1R1zqc)

# Roadmap
1. Use async/await to replace Promise/Then
2. Fix broken video parser due to video site changes.
3. Add more unit tests (increase code coverage)
4. Support vimeo and other video sites
5. Merge video segments (ts)

# Task Requests
1. [Task Request: Adding dailymotion Support (100% vote + 10 STEEM)
](https://steemit.com/utopian-io/@justyy/task-request-adding-dailymotion-support-100-vote-10-steem)

# VIP Key Exclusive to Utopian
Please note, you can enter the VIP Key which allows you to call the [server API](https://weibomiaopai.com/download-video-parser.php) in case the client video parser fails locally - this greatly unlocks video parser to many many other video sites. 

![image.png](https://ipfs.busy.org/ipfs/QmcDoZyZpEYoa7JeVEU16bVPeyMA7SSYRir7fNgfHt5Z28)

The KEY is **iamutopian**

----------------
**Enjoy and Steem On!**
##  [Vote for me](https://steemconnect.com/sign/account_witness_vote?approve=1&witness=justyy) or [Set me as a witness Proxy](https://v2.steemconnect.com/sign/account-witness-proxy?proxy=justyy&approve=1) - Every vote counts! - Thank you!

## Your Vote is much appreciated, and every vote counts.
Check out [My Witness Page](https://steemyy.com/witness-data/justyy)

## Support me and [my work](https://steemit.com/witness-category/@justyy/justyy-just-another-witness) as a witness - [witness thread](https://steemit.com/witness-category/@justyy/justyy-just-another-witness) by 
1. voting me [here](https://steemconnect.com/sign/account_witness_vote?approve=1&witness=justyy), or
2. voting me as [a witness proxy](https://v2.steemconnect.com/sign/account-witness-proxy?proxy=justyy&approve=1) - let @justyy represent you.

Thank you! **Some of My Contributions: [SteemYY.com - SteemIt Tutorials, Robots, Tools and APIs](https://steemyy.com/)** and [VPS Search Tool](https://anothervps.com/vps-database/)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 73 others
properties (23)
authorjustyy
permlinksimple-video-downloader-3-0-9-extract-the-links-add-whichav-site
categoryutopian-io
json_metadata{"community":"busy","app":"steemit/0.1","format":"markdown","tags":["utopian-io","development","busy","witness-category","programming"],"users":["justyy"],"links":["https://chrome.google.com/webstore/detail/simple-video-download-hel/ilcdiicigjaccgipndigcenjieedjohj","https://chrome.google.com/webstore/detail/ilcdiicigjaccgipndigcenjieedjohj/","https://addons.mozilla.org/en-GB/firefox/addon/chrome-store-foxified/","https://github.com/DoctorLai/VideoDownloadHelper/releases","https://github.com/DoctorLai/VideoDownloadHelper/pull/9","https://travis-ci.com/DoctorLai/VideoDownloadHelper/builds/98552005","https://steemit.com/utopian-io/@justyy/task-request-adding-dailymotion-support-100-vote-10-steem","https://weibomiaopai.com/download-video-parser.php","https://steemconnect.com/sign/account_witness_vote?approve=1&witness=justyy","https://v2.steemconnect.com/sign/account-witness-proxy?proxy=justyy&approve=1","https://steemyy.com/witness-data/justyy","https://steemit.com/witness-category/@justyy/justyy-just-another-witness","https://steemyy.com/","https://anothervps.com/vps-database/"],"image":["https://ipfs.busy.org/ipfs/QmS4Zzmp1BTqPtP4i6LYYTApFFGzVQCCeLzJckVTTaoutw","https://ipfs.busy.org/ipfs/QmfZYN8tckPHKr8n9Ed3Q1B5vD9RcfmhgZyoAK3y5hmrcy","https://ipfs.busy.org/ipfs/QmdBcu8PkLbkU6ZtPqLoTpGG6VP8ceq8JWEuTwNA3rpDbr","https://ipfs.busy.org/ipfs/QmW2HvjW2ESQRoVJfA2LEAEk7QqRPHviQWn7nF4qvEps3Z","https://ipfs.busy.org/ipfs/QmPy4oS8yG9aobDDJyUDgtmA1ztS6raHdLLb53sN1R1zqc","https://ipfs.busy.org/ipfs/QmcDoZyZpEYoa7JeVEU16bVPeyMA7SSYRir7fNgfHt5Z28"]}
created2019-01-25 00:59:06
last_update2019-01-25 01:00:57
depth0
children7
last_payout2019-02-01 00:59:06
cashout_time1969-12-31 23:59:59
total_payout_value1.392 HBD
curator_payout_value0.358 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,509
author_reputation280,616,224,641,976
root_title"Simple Video Downloader 3.0.9 - Extract the Links + Add WhichAV Site"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,895,530
net_rshares3,760,949,363,500
author_curate_reward""
vote details (137)
@amosbastian ·
$7.70
Thanks for the contribution, @justyy! It's cool that you keep adding more support to your extension, and also include tests every time you do so!

As for the code:

* There are still some places where `const` should be used, but `let` is used instead.
* There are a lot of nested *if* statements - maybe you could try swapping them around to avoid this.
* I'm not sure if using a regular expression is the best way to find all URLs of the current page. It's possible you could do something like this instead if you need URLs from an external page

```
fetch("https://steemit.com/utopian-io/@justyy/simple-video-downloader-3-0-9-extract-the-links-add-whichav-site")
  .then(response => response.text())
  .then(text => {
    const parser = new DOMParser();
    const htmlDocument = parser.parseFromString(text, "text/html");
    const urls = new Set(Array.from(htmlDocument.links).map(link => link.href));
    console.log(urls);
});
```

but since you say you extract links from the current page you could just do

```
const urls = new Set(Array.from(document.links).map(link => link.href));
```

---

Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/3/2-3-3-2-2-1-4-).

---- 
Need help? Chat with us on [Discord](https://discord.gg/uTyJkNm).

[[utopian-moderator]](https://join.utopian.io/)
👍  , , , , , , , , , , , ,
properties (23)
authoramosbastian
permlinkre-justyy-simple-video-downloader-3-0-9-extract-the-links-add-whichav-site-20190128t113825243z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["justyy"],"links":["https://join.utopian.io/guidelines","https://review.utopian.io/result/3/2-3-3-2-2-1-4-","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"}
created2019-01-28 11:38:24
last_update2019-01-28 11:38:24
depth1
children1
last_payout2019-02-04 11:38:24
cashout_time1969-12-31 23:59:59
total_payout_value5.842 HBD
curator_payout_value1.862 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,549
author_reputation174,473,586,900,705
root_title"Simple Video Downloader 3.0.9 - Extract the Links + Add WhichAV Site"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,055,179
net_rshares15,474,638,004,171
author_curate_reward""
vote details (13)
@utopian-io ·
Thank you for your review, @amosbastian! Keep up the good work!
properties (22)
authorutopian-io
permlinkre-re-justyy-simple-video-downloader-3-0-9-extract-the-links-add-whichav-site-20190128t113825243z-20190131t080523z
categoryutopian-io
json_metadata"{"app": "beem/0.20.17"}"
created2019-01-31 08:05:24
last_update2019-01-31 08:05:24
depth2
children0
last_payout2019-02-07 08:05:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length63
author_reputation152,955,367,999,756
root_title"Simple Video Downloader 3.0.9 - Extract the Links + Add WhichAV Site"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,200,474
net_rshares0
@jemavillitr · (edited)
Well, I myself tried out several Video Downloader before. And I also used those handy sites which give you certain words to add before a video so it starts getting downloaded. But you know what?
Those sites always come up with limited features. I remember I used to download YouTube videos with one downloader and to extract Audio from it, I had to opt for another downloader. Now I am using a simplist twitter downloader https://downloadtwittervideo.online/
properties (22)
authorjemavillitr
permlinkq2b0hp
categoryutopian-io
json_metadata{"app":"steemit/0.1","links":["https://downloadtwittervideo.online/"]}
created2019-12-10 16:01:03
last_update2019-12-12 12:55:24
depth1
children1
last_payout2019-12-17 16:01:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length458
author_reputation8,883,923,179
root_title"Simple Video Downloader 3.0.9 - Extract the Links + Add WhichAV Site"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id93,288,984
net_rshares0
@justyy ·
Yes. especially the Google Chrome now forbids the extensions to download the youtube videos.
👍  , , , , , , , , , , ,
properties (23)
authorjustyy
permlinkq2bdsx
categoryutopian-io
json_metadata{"app":"steemit/0.1"}
created2019-12-10 20:48:33
last_update2019-12-10 20:48:33
depth2
children0
last_payout2019-12-17 20:48:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length92
author_reputation280,616,224,641,976
root_title"Simple Video Downloader 3.0.9 - Extract the Links + Add WhichAV Site"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id93,296,446
net_rshares55,948,755,181
author_curate_reward""
vote details (12)
@medicina ·
Your progeny will soon die due to the great approaching annihilation brought by the black Hitler. The black Hitler will be a fearsome and ruthless individual, who will emerge from the growing black middle class in several developed countries, centuries of racial hatred will finally materialized into an incarnation of fearsome proportions, your only hope will be the reincarnation of Napoleon in a lesbian girl , who will fight against the black Hitler, the lesbian Napoleon is not Jewish, but will be controlled by the Jews like the black Hitler, the story is simple, Jews against Gentiles, that will be the last book of the Bible and not the apocalypse, finally the Muslim prophet will annihilate the Jews, because the mad Arab, the great sorcerer of the middle ages never died after finding the remains of Hermes Trismegistus in an alien ship, https://steemit.com/cunnilingus/@medicina/the-black-hitler-part-i
properties (22)
authormedicina
permlinkre-justyy-simple-video-downloader-3-0-9-extract-the-links-add-whichav-site-20190125t203108387z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https://steemit.com/cunnilingus/@medicina/the-black-hitler-part-i"],"app":"steemit/0.1"}
created2019-01-25 20:31:03
last_update2019-01-25 20:31:03
depth1
children0
last_payout2019-02-01 20:31:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length913
author_reputation-505,143,856,716
root_title"Simple Video Downloader 3.0.9 - Extract the Links + Add WhichAV Site"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,934,962
net_rshares0
@pennsif ·
This post has been included in the latest edition of  [**SoS Daily News**](https://steemit.com/steem/@pennsif/sosdailynewsnewsaboutthestateofsteem24january2019-ft19zg1rlu) - a digest of all you need to know about the State of Steem.

***

* *Editor of the [**The State of Steem SoS Daily News**](https://steemit.com/steem/@pennsif/sosdailynewsnewsaboutthestateofsteem24january2019-ft19zg1rlu).*

* *Promoter of [**The State of Steem SoS Weekly Forums**](https://steemit.com/steem/@pennsif/the-state-of-steem-forum-5-with-ned-and-elipowell-starting-in-50-minutes-8pm-12am-utc-msp-waves).*

* *Editor of the [**weekly listing of steem radio shows, podcasts & social broadcasts**](https://steemit.com/mspwaves/@pennsif/schedule-of-radio-shows-podcasts-and-social-broadcasts-week-beginning-21-january-2019).*

* *Founder of the [**A Dollar A Day**](https://steemit.com/adollaraday/@adollaraday/a-dollar-a-day-charitable-giving-project-ususd-5000-donated-in-8-months-we-made-it) charitable giving project.*

***
properties (22)
authorpennsif
permlinkre-justyy-simple-video-downloader-3-0-9-extract-the-links-add-whichav-site-20190125t184904755z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https://steemit.com/steem/@pennsif/sosdailynewsnewsaboutthestateofsteem24january2019-ft19zg1rlu","https://steemit.com/steem/@pennsif/the-state-of-steem-forum-5-with-ned-and-elipowell-starting-in-50-minutes-8pm-12am-utc-msp-waves","https://steemit.com/mspwaves/@pennsif/schedule-of-radio-shows-podcasts-and-social-broadcasts-week-beginning-21-january-2019","https://steemit.com/adollaraday/@adollaraday/a-dollar-a-day-charitable-giving-project-ususd-5000-donated-in-8-months-we-made-it"],"app":"steemit/0.1"}
created2019-01-25 18:49:06
last_update2019-01-25 18:49:06
depth1
children0
last_payout2019-02-01 18:49:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,006
author_reputation636,410,097,572,565
root_title"Simple Video Downloader 3.0.9 - Extract the Links + Add WhichAV Site"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,931,533
net_rshares0
@steem-ua ·
#### Hi @justyy!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your **UA** account score is currently 6.861 which ranks you at **#103** across all Steem accounts.
Your rank has improved 1 places in the last three days (old rank 104).

In our last Algorithmic Curation Round, consisting of 241 contributions, your post is ranked at **#22**.
##### Evaluation of your UA score:

* You've built up a nice network.
* The readers appreciate your great work!
* Good user engagement!


**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
👍  
properties (23)
authorsteem-ua
permlinkre-simple-video-downloader-3-0-9-extract-the-links-add-whichav-site-20190127t162440z
categoryutopian-io
json_metadata"{"app": "beem/0.20.17"}"
created2019-01-27 16:24:42
last_update2019-01-27 16:24:42
depth1
children0
last_payout2019-02-03 16:24:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length616
author_reputation23,214,230,978,060
root_title"Simple Video Downloader 3.0.9 - Extract the Links + Add WhichAV Site"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,020,136
net_rshares592,565,722
author_curate_reward""
vote details (1)