Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PULL REQUEST] Add bypasses + a fix #1272

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# VS Code user, install: https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig
# Sublime Text user, install: https://github.com/sindresorhus/editorconfig-sublime#readme
# See https://editorconfig.org/ for more information.

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
indent_style = space
insert_final_newline = true

[*.md]
indent_size = 2
trim_trailing_whitespace = false
7 changes: 5 additions & 2 deletions docs/CODE_STYLE.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
### Code style:

- [Standard JS](https://standardjs.com/rules.html) + [Prettier](https://prettier.io/)
- Unix EOL (LF)
- Newline at end of file

### How to set this up on VScode/Codium:
- Extension: [VSCode marketplace](https://marketplace.visualstudio.com/items?itemName=numso.prettier-standard-vscode)
- Newline at end of file: [stackoverflow.com/a/44704969](https://stackoverflow.com/a/44704969)

Install these extensions:
- [EditorConfig for VS Code](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig "See on Visual Studio Code Marketplace")
- [Prettier-Standard - JavaScript formatter](https://marketplace.visualstudio.com/items?itemName=numso.prettier-standard-vscode "See on Visual Studio Code Marketplace")
35 changes: 35 additions & 0 deletions src/bypasses/link1s.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import BypassDefinition from './BypassDefinition.js'

export default class Link1s extends BypassDefinition {
constructor () {
super()
}
execute () {
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
}
}
}

export const matches = ['link1s.com', 'anhdep24.com']
13 changes: 13 additions & 0 deletions src/bypasses/lootlinks.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import BypassDefinition from './BypassDefinition.js'

export default class Lootlinks extends BypassDefinition {
constructor () {
super()
this.ensure_dom = true
}
execute () {
this.helpers.safelyNavigate(p['PUBLISHER_LINK']) // ignore the error
}
}

export const matches = ['loot-links.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.watchForElement('#timer', () => {
window.app.options.intermediate.timerPageVisibilityChecking = false
window.app.options.intermediate.displayCaptcha = false
window.app.options.intermediate.timeToWait = 0
})
this.helpers.watchForElement('.skip-btn.show', () => {
this.helpers.safelyNavigate(window.app.options.intermediate.destinationUrl)
})
}
}

export const matches = ['sh.st']