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