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']