Skip to content

Commit

Permalink
Add bypass for link1s.com FastForwardTeam#40
Browse files Browse the repository at this point in the history
Signed-off-by: Bayu Satiyo <[email protected]>
  • Loading branch information
kiraio-moe committed Dec 6, 2023
1 parent 880c66b commit 6edd43f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/bypasses/link1s.js
Original file line number Diff line number Diff line change
@@ -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']

0 comments on commit 6edd43f

Please sign in to comment.