Skip to content

Commit

Permalink
Add tii.la crowd bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAProton committed Nov 28, 2023
1 parent 634fe6c commit 5dacdbd
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/bypasses/blogtech.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import BypassDefinition from './BypassDefinition.js';

export default class BlogTechh extends BypassDefinition {
constructor() {
super();
// custom bypass required bases can be set here
}

execute() {
console.log('blogtechh bypass running');
this.helpers.awaitElement("button#getlink", button => {
button.click()
})
}
}

export const matches = ['blogtechh.com', 'oko.sh'];
27 changes: 27 additions & 0 deletions src/bypasses/tii.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import BypassDefinition from './BypassDefinition.js';

export default class TiiLa extends BypassDefinition {
constructor() {
super();
this.ensure_dom = true;
// custom bypass required bases can be set here
}

execute() {
const urlObj = new URL(window.location.href)
this.helpers.crowdQuery('tii.la', urlObj.pathname.slice(1)).then((dest) => {
this.helpers.crowdNavigate(dest);
});
/*keep checking for the button*/
setInterval(() => {
const button = document.querySelector("a.btn.btn-success.btn-lg.get-link");
if (button.href) {
this.helpers.crowdContribute('tii.la', urlObj.pathname.slice(1), button.href)
this.helpers.safelyNavigate(button.href)
}
}, 500);

}
}

export const matches = ['tii.la'];

0 comments on commit 5dacdbd

Please sign in to comment.