Loading src/hostsfiles_hostnames.js +2 −4 Original line number Diff line number Diff line Loading @@ -7,7 +7,6 @@ function parseHostToHostnames(hostText) { return hostText .split("\n") .filter(line => line.startsWith("0.0.0.0")) // .filter(line => { return !line.startsWith("#") && line != ""}) .map(line => line.split(" ")[1]) .filter(it => it != "") } Loading @@ -17,9 +16,8 @@ function fetchHostnamesList(uri) { } exports.getHostnames = () => Promise.all([ // Adaway is included in the setvenblack list // Adaway is included in the setvenblack list, so we don't fetch it anymore. // https://github.com/StevenBlack/hosts/blob/master/readme.md#sources-of-hosts-data-unified-in-this-variant // fetchHostnamesList(adawayUri), fetchHostnamesList(stevenblackUri) ]).then(hostnameLists => { console.log(hostnameLists.length + " hostnames lists with each : " + hostnameLists.map(it => it.length + " hostnames").join(", ")) Loading Loading
src/hostsfiles_hostnames.js +2 −4 Original line number Diff line number Diff line Loading @@ -7,7 +7,6 @@ function parseHostToHostnames(hostText) { return hostText .split("\n") .filter(line => line.startsWith("0.0.0.0")) // .filter(line => { return !line.startsWith("#") && line != ""}) .map(line => line.split(" ")[1]) .filter(it => it != "") } Loading @@ -17,9 +16,8 @@ function fetchHostnamesList(uri) { } exports.getHostnames = () => Promise.all([ // Adaway is included in the setvenblack list // Adaway is included in the setvenblack list, so we don't fetch it anymore. // https://github.com/StevenBlack/hosts/blob/master/readme.md#sources-of-hosts-data-unified-in-this-variant // fetchHostnamesList(adawayUri), fetchHostnamesList(stevenblackUri) ]).then(hostnameLists => { console.log(hostnameLists.length + " hostnames lists with each : " + hostnameLists.map(it => it.length + " hostnames").join(", ")) Loading