add link1s.com

pull/4/head
aria 2 months ago
parent 8a1b5c1bc9
commit f6b82e53c5
Signed by: a
GPG Key ID: E851AE999FFCBC37
  1. 4
      README.md
  2. 3
      docs/SITES.md
  3. 2
      extractors/1bitspace.js
  4. 2
      extractors/adlinkfly.js
  5. 2
      extractors/aylink.js
  6. 2
      extractors/bcvc.js
  7. 2
      extractors/cutwin.js
  8. 2
      extractors/exeio.js
  9. 2
      extractors/ez4.js
  10. 2
      extractors/keeplinks.js
  11. 42
      extractors/link1s.js
  12. 2
      extractors/linktl.js
  13. 2
      extractors/linkvertise.js
  14. 2
      extractors/lnk2.js
  15. 2
      extractors/mylink.js
  16. 2
      extractors/oke.js
  17. 2
      extractors/ouo.js
  18. 2
      extractors/try2link.js
  19. 2
      extractors/zagl.js

@ -13,9 +13,9 @@ If you would rather use the Unlicense version, use [this commit and behind](http
## Roadmap
- Optimize `puppeteer` extractors, espescially [`aylink`](./extractors/aylink.js).
- Optimize `puppeteer` extractors, espescially [`aylink`](./extractors/aylink.js) and [`exeio`](./extractors/exeio.js).
- Improve frontend site.
- Add dark mode,
- Add dark mode.
- Add back proper Heroku support.
- Improve the 30 second rule (requests cannot take longer than 30 seconds w/o timing out) with it.
- Add referer support.

@ -23,7 +23,8 @@ Redirects not directly linking to our site may be NSFW and are not endorsements
|**`ity.im`**|Axios|No|[http://ity.im/1QZh2](http://ity.im/1QZh2)|||
|**`karung.in`**|Axios|No|[http://karung.in/Gyucc](http://karung.in/Gyucc) redirects to `https://drive.google.com/uc?id=0B263gKU-C09_WW5rbURLeXN5QXc&export=download`.||Passworded links are currently not supported.|
|**`keeplinks.org`**|Puppeteer + Adblocker + Stealth|No|[https://www.keeplinks.org/p100/62b878489fbc5](https://www.keeplinks.org/p100/62b878489fbc5)||Passworded links don't need a password due to a cookie exploit.|
|**`linkvertise.net`**|Puppeteer + Ad & Tracker Blocker + Stealth|Yes|[https://linkvertise.com/425581/example1](https://linkvertise.com/425581/example1) for regular redirects, [https://link-target.net/425581/example](https://link-target.net/425581/example) for a paste|`linkvertise.com`, `up-to-down.net`, `link-to.net`, `direct-link.net`, `linkvertise.download`, `file-link.net`, `link-center.net`, `link-target.net`|Not 100% compatible yet, need paste Linkvertise links as well.|
|**`linkvertise.net`**|Puppeteer + Ad & Tracker Blocker + Stealth|Yes|[https://linkvertise.com/425581/example1](https://linkvertise.com/425581/example1) for regular redirects, [https://link-target.net/425581/example](https://link-target.net/425581/example) for a paste|`linkvertise.com`, `up-to-down.net`, `link-to.net`, `direct-link.net`, `linkvertise.download`, `file-link.net`, `link-center.net`, `link-target.net`||
|**`link1s.com`**|Puppeteer + Adblocker + Stealth|No|||Need example link that is SFW and legal.|
|**`lnk.parts`**|Puppeteer + Stealth|Yes|[https://lnkload.com/2z8aF](https://lnkload.com/2z8aF)|`link.tl`, `lnkload.com`||
|**`lnk2.cc`**|Puppeteer + Ad & Tracker Blocker + Stealth|Yes|[https://lnk2.cc/wd1J1](https://lnk2.cc/wd1J1)||
|**`mboost.me`**|Axios|No|[https://mboost.me/a/47n](https://mboost.me/a/47n) redirects to `https://www.nukevscity.com/hehehehaw5`|||

@ -36,7 +36,7 @@ module.exports = {
b = await pup.launch(lib.removeTor(a));
p = await b.newPage();
if (opt.referer) {
if (lib.config().debug == true) console.log("[1bitspace] Launched. Going to referer URL first.");
if (lib.config().debug == true) console.log("[1bitspace] Going to referer URL first...");
await p.goto(opt.referer, {waitUntil: "domcontentloaded"});
}
await p.goto(url);

@ -39,7 +39,7 @@ module.exports = {
b = await pup.launch(args);
p = await b.newPage();
if (opt.referer) {
if (lib.config().debug == true) console.log("[adflylink] Launched. Going to referer URL first.");
if (lib.config().debug == true) console.log("[adflylink] Going to referer URL first...");
await p.goto(opt.referer, {waitUntil: "domcontentloaded"});
}
await p.goto(url);

@ -21,7 +21,7 @@ module.exports = {
b = await pup.launch(lib.removeTor(args));
p = await b.newPage();
if (opt.referer) {
if (lib.config().debug == true) console.log("[aylink] Launched. Going to referer URL first.");
if (lib.config().debug == true) console.log("[aylink] Going to referer URL first...");
await p.goto(opt.referer, {waitUntil: "domcontentloaded"});
}
await p.goto(url);

@ -23,7 +23,7 @@ module.exports = {
b = await pup.launch(lib.removeTor(args));
p = await b.newPage();
if (opt.referer) {
if (lib.config().debug == true) console.log("[adflylink] Launched. Going to referer URL first.");
if (lib.config().debug == true) console.log("[adflylink] Going to referer URL first...");
await p.goto(opt.referer, {waitUntil: "domcontentloaded"});
}
await p.goto(url);

@ -31,7 +31,7 @@ module.exports = {
b = await pup.launch(lib.removeTor(args));
p = await b.newPage();
if (opt.referer) {
if (lib.config().debug == true) console.log("[adflylink] Launched. Going to referer URL first.");
if (lib.config().debug == true) console.log("[adflylink] Going to referer URL first...");
await p.goto(opt.referer, {waitUntil: "domcontentloaded"});
}
await p.goto(url);

@ -24,7 +24,7 @@ module.exports = {
b = await pup.launch(args);
p = await b.newPage();
if (opt.referer) {
if (lib.config().debug == true) console.log("[adflylink] Launched. Going to referer URL first.");
if (lib.config().debug == true) console.log("[adflylink] Going to referer URL first...");
await p.goto(opt.referer, {waitUntil: "domcontentloaded"});
}
await p.goto(url);

@ -15,7 +15,7 @@ module.exports = {
b = await pup.launch(args);
p = await b.newPage();
if (opt.referer) {
if (lib.config().debug == true) console.log("[adflylink] Launched. Going to referer URL first.");
if (lib.config().debug == true) console.log("[adflylink] Going to referer URL first...");
await p.goto(opt.referer, {waitUntil: "domcontentloaded"});
}
await p.goto(url, {waitUntil: "networkidle2"});

@ -21,7 +21,7 @@ module.exports = {
b = await pup.launch(args);
p = await b.newPage();
if (opt.referer) {
if (lib.config().debug == true) console.log("[keeplinks] Launched. Going to referer URL first.");
if (lib.config().debug == true) console.log("[keeplinks] Going to referer URL first...");
await p.goto(opt.referer, {waitUntil: "domcontentloaded"});
}
await p.goto(url);

@ -0,0 +1,42 @@
const pup = require("puppeteer-extra");
const stl = require("puppeteer-extra-plugin-stealth");
const adb = require("puppeteer-extra-plugin-adblocker");
const lib = require("../lib");
module.exports = {
hostnames: ["link1s.com"],
requiresCaptcha: false,
get: async function(url, opt) {
let b;
try {
pup.use(stl());
pup.use(adb());
if (lib.config().debug == true) console.log("[link1ts] Launching browser...");
let args = (lib.config().defaults?.puppeteer || {headless: true});
b = await pup.launch(args);
let p = await b.newPage();
if (opt.referer) {
if (lib.config().debug == true) console.log("[link1ts] Going to referer URL first...");
await p.goto(opt.referer, {waitUntil: "domcontentloaded"});
}
await p.goto(url, {waitUntil: "networkidle0"});
if (lib.config().debug == true) console.log("[link1ts] Launched. Skipping first page...");
await p.evaluate(function() {
window.open(document.getElementById("link1s").href, "_self");
});
await p.waitForNavigation({waitUntil: "domcontentloaded"});
if (lib.config().debug == true) console.log("[link1ts] Done. Skipping second page...");
await p.evaluate(function() {link1sgo()});
await p.waitForNavigation({waitUntil: "domcontentloaded"});
if (lib.config().debug == true) console.log("[link1ts] Done. Extracting link from third page...");
let d = (await p.evaluate(function() {return document.querySelector(".btn.btn-success.btn-lg").href}));
await b.close();
return d;
} catch(err) {
if (b !== undefined) await b.close();
throw err;
}
}
}

@ -33,7 +33,7 @@ module.exports = {
b = await pup.launch(args);
p = await b.newPage();
if (opt.referer) {
if (lib.config().debug == true) console.log("[linktl] Launched. Going to referer URL first.");
if (lib.config().debug == true) console.log("[linktl] Going to referer URL first...");
await p.goto(opt.referer, {waitUntil: "domcontentloaded"});
}
await p.goto(url);

@ -59,7 +59,7 @@ module.exports = {
b = await pup.launch(lib.removeTor(args));
p = await b.newPage();
if (opt.referer) {
if (lib.config().debug == true) console.log("[adflylink] Launched. Going to referer URL first.");
if (lib.config().debug == true) console.log("[linkvertise] Going to referer URL first...");
await p.goto(opt.referer, {waitUntil: "domcontentloaded"});
}
await p.goto(url);

@ -35,7 +35,7 @@ module.exports = {
b = await pup.launch(lib.removeTor(args));
p = await b.newPage();
if (opt.referer) {
if (lib.config().debug == true) console.log("[lnk2] Launched. Going to referer URL first.");
if (lib.config().debug == true) console.log("[lnk2] Going to referer URL first...");
await p.goto(opt.referer, {waitUntil: "domcontentloaded"});
}
await p.goto(url);

@ -39,7 +39,7 @@ module.exports = {
b = await pup.launch(lib.removeTor(args));
p = await b.newPage();
if (opt.referer) {
if (lib.config().debug == true) console.log("[lnk2] Launched. Going to referer URL first.");
if (lib.config().debug == true) console.log("[mylink] Going to referer URL first...");
await p.goto(opt.referer, {waitUntil: "domcontentloaded"});
}
await p.goto(url);

@ -17,7 +17,7 @@ module.exports = {
b = await pup.launch(lib.removeTor(args));
p = await b.newPage();
if (opt.referer) {
if (lib.config().debug == true) console.log("[lnk2] Launched. Going to referer URL first.");
if (lib.config().debug == true) console.log("[okeio] Going to referer URL first...");
await p.goto(opt.referer, {waitUntil: "domcontentloaded"});
}
await p.goto(url);

@ -26,7 +26,7 @@ module.exports = {
b = await pup.launch(lib.removeTor(args));
p = await b.newPage();
if (opt.referer) {
if (lib.config().debug == true) console.log("[lnk2] Launched. Going to referer URL first.");
if (lib.config().debug == true) console.log("[ouo] Going to referer URL first...");
await p.goto(opt.referer, {waitUntil: "domcontentloaded"});
}
await p.goto(url);

@ -14,7 +14,7 @@ module.exports = {
b = await pup.launch(args);
p = await b.newPage();
if (opt.referer) {
if (lib.config().debug == true) console.log("[lnk2] Launched. Going to referer URL first.");
if (lib.config().debug == true) console.log("[try2link] Going to referer URL first...");
await p.goto(opt.referer, {waitUntil: "domcontentloaded"});
}
await p.goto(url);

@ -19,7 +19,7 @@ module.exports = {
b = await pup.launch(args);
p = await b.newPage();
if (opt.referer) {
if (lib.config().debug == true) console.log("[lnk2] Launched. Going to referer URL first.");
if (lib.config().debug == true) console.log("[zagl] Going to referer URL first...");
await p.goto(opt.referer, {waitUntil: "domcontentloaded"});
}
await p.goto(url);

Loading…
Cancel
Save