Skip to content

Instantly share code, notes, and snippets.

@NotAProton
Last active March 1, 2023 23:57
Show Gist options
  • Save NotAProton/063446f39d6715e9ee79a8a8b8709cd4 to your computer and use it in GitHub Desktop.
Save NotAProton/063446f39d6715e9ee79a8a8b8709cd4 to your computer and use it in GitHub Desktop.

For this tutorial I will be making a bypass for dutchycorp.space, if you want to follow along example links are here.

image

  1. 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

  2. Go back to the shortener's site and Press ctrl+U or right-click and select view page source

  3. Press ctrl+f and search the destination image

  4. The destination is the href of an anchor tag

<a href="http://dutchycorp.ovh/sl/DmtIL8Om?verif=kVW6TL0r">
  1. 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)
        
    })
})
@z8512
Copy link

z8512 commented May 25, 2022

Please peertube tutorial video

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment