From 5abee904cbc2ed6cc627d871e42046840247b3f2 Mon Sep 17 00:00:00 2001 From: Bayu Satiyo Date: Thu, 7 Dec 2023 07:10:18 +0700 Subject: [PATCH] Add bypass for link1s.com & sh.st Signed-off-by: Bayu Satiyo --- src/bypasses/link1s.js | 20 ++++++++++++++++++++ src/bypasses/shst.js | 19 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 src/bypasses/link1s.js create mode 100644 src/bypasses/shst.js diff --git a/src/bypasses/link1s.js b/src/bypasses/link1s.js new file mode 100644 index 00000000..5f1419ac --- /dev/null +++ b/src/bypasses/link1s.js @@ -0,0 +1,20 @@ +import BypassDefinition from './BypassDefinition.js' + +export default class Link1s extends BypassDefinition { + constructor () { + super() + } + execute () { + this.helpers.awaitElement('#link1s[href]', a => + this.helpers.safelyNavigate(a.href) + ) + this.helpers.awaitElement('#link1s-snp button', b => b.click()) + this.helpers.awaitElement('.skip-ad a.btn', a => { + setInterval(() => { + this.helpers.safelyNavigate(a.href) + }, 50) // wait the url to be updated + }) + } +} + +export const matches = ['link1s.com', 'anhdep24.com'] diff --git a/src/bypasses/shst.js b/src/bypasses/shst.js new file mode 100644 index 00000000..c913e3d0 --- /dev/null +++ b/src/bypasses/shst.js @@ -0,0 +1,19 @@ +import BypassDefinition from './BypassDefinition.js' + +export default class Shst extends BypassDefinition { + constructor () { + super() + } + execute () { + this.helpers.awaitElement('#timer', () => { + window.app.options.intermediate.timerPageVisibilityChecking = false + window.app.options.intermediate.displayCaptcha = false + window.app.options.intermediate.timeToWait = 0 + }) + this.helpers.awaitElement('.skip-btn.show', () => { + this.helpers.safelyNavigate(window.app.options.intermediate.destinationUrl) + }) + } +} + +export const matches = ['sh.st']