Skip to content

Commit

Permalink
Better bypass for link1s.com
Browse files Browse the repository at this point in the history
- Skip all timer
- Ad block bypass

Signed-off-by: Bayu Satiyo <[email protected]>
  • Loading branch information
kiraio-moe committed Dec 8, 2023
1 parent 76dce4e commit ecdfba6
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions src/bypasses/link1s.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,30 @@ export default class Link1s extends BypassDefinition {
super()
}
execute () {
this.helpers.watchForElement('#link1s[href]', a =>
this.helpers.safelyNavigate(a.href)
)
this.helpers.watchForElement('#link1s-snp button', b => b.click())
this.helpers.watchForElement('.skip-ad a.btn', a => {
setInterval(() => {
this.helpers.safelyNavigate(a.href)
}, 50) // wait for a moment for url to be updated
})
switch (window.location.hostname) {
case 'anhdep24.com':
this.helpers.watchForElement('.footer', () =>
clearInterval(window.counter) // skip timer
)
this.helpers.watchForElement('#link1s[href]', a =>
this.helpers.safelyNavigate(a.href) // step 1 & 3
)
this.helpers.watchForElement('#link1s-snp', () => window.link1sgo()) // step 2 & 4
break
case 'link1s.com':
this.helpers.ensureDomLoaded(() => {
// skip all shit
window.app_vars.counter_value = 0
window.app_vars.enable_captcha = 'no'
window.app_vars.force_disable_adblock = '0'
})
this.helpers.watchForElement('.skip-ad a.btn', a => {
setInterval(() => {
this.helpers.safelyNavigate(a.href)
}, 10) // wait for a moment for url to be updated
})
break
}
}
}

Expand Down

0 comments on commit ecdfba6

Please sign in to comment.