Skip to content

Replace part of the URL with another string using custom bypasses #558

Closed Answered by lostdusty
aaronliu0130 asked this question in Q&A
Discussion options

You must be logged in to vote

I've done something similar to someone who wanted to replace the short imgbb domain, see here: #491 (comment)

Basically, the snippet is:

domainBypass("example.com", () => {
        var a = window.location.href
        var finalurl = a.replace("example.com", "zambo.com")
        safelyNavigate(finalurl)
})

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@aaronliu0130
Comment options

@DumbAsFuck
Comment options

Comment options

You must be logged in to vote
1 reply
@lostdusty
Comment options

Answer selected by lostdusty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants