-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1260 from NotAProton/tii
- Loading branch information
Showing
3 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import BypassDefinition from './BypassDefinition.js'; | ||
|
||
export default class BlogTechh extends BypassDefinition { | ||
constructor() { | ||
super(); | ||
} | ||
|
||
execute() { | ||
this.helpers.awaitElement("button#getlink", button => { | ||
button.click() | ||
}) | ||
} | ||
} | ||
|
||
export const matches = ['blogtechh.com', 'oko.sh']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import BypassDefinition from './BypassDefinition.js'; | ||
|
||
export default class TiiLa extends BypassDefinition { | ||
constructor() { | ||
super(); | ||
this.ensure_dom = true; | ||
} | ||
|
||
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 && button.href) { | ||
this.helpers.crowdContribute('tii.la', urlObj.pathname.slice(1), button.href) | ||
this.helpers.safelyNavigate(button.href) | ||
} | ||
}, 500); | ||
|
||
} | ||
} | ||
|
||
export const matches = ['tii.la']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters