Skip to content

Commit

Permalink
Add bypass for link1s.com & sh.st
Browse files Browse the repository at this point in the history
Signed-off-by: Bayu Satiyo <itsyuukunz@gmail.com>
  • Loading branch information
kiraio-moe committed Dec 7, 2023
1 parent 7e54a12 commit 5abee90
Show file tree
Hide file tree
Showing 2 changed files with 39 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']
19 changes: 19 additions & 0 deletions src/bypasses/shst.js
Original file line number Diff line number Diff line change
@@ -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']

0 comments on commit 5abee90

Please sign in to comment.