For this tutorial I will be making a bypass for dutchycorp.space, if you want to follow along example links are here.
-
Manually solve the captcha or follow the steps on the site and obtain the destination of the shortener. In my case this is
http://dutchycorp.ovh/sl/DmtIL8Om
-
Go back to the shortener's site and Press ctrl+U or right-click and select view page source
-
The destination is the href of an anchor tag
<a href="http://dutchycorp.ovh/sl/DmtIL8Om?verif=kVW6TL0r">
- Make the bypass-
Bypasses generally follow this format
domainBypass("example.com", () => {
ensureDomLoaded(() => {
// You can use ifElement to check if an element is available via document.querySelector:
ifElement("a#skip_button[href]", a => {
safelyNavigate(a.href)
// safelyNavigate asserts that given URL is valid before navigating and returns false if not
})
})
})
Making the bypass for dutchycorp would've been really easy if the anchor tag with the destination had an id
domainBypass("dutchycorp.space", () => {
ensureDomLoaded(() => {
// If the anchor tag had id="SKIPBTN"
ifElement("a#SKIPBTN[href]", a => {
safelyNavigate(a.href)
})
})
})
But it does not, however the anchor tag is inside a div which does have an id.
<div id="cl1" class="hide"><center><a href="http://dutchycorp.ovh/sl/DmtIL8Om?verif=kVW6TL0r">
We can now check if the div with id cl1
exists and then safely navigate to the href of the anchor element inside it-
ifElement("div#cl1", d => {
safelyNavigate(d.getElementsByTagName("a")[0].href)
})
And thus, the bypass for dutchycorp.space is
domainBypass("dutchycorp.space", () => {
ifElement("div#cl1", d => {
safelyNavigate(d.getElementsByTagName("a")[0].href)
})
})
Please peertube tutorial video