Skip to content

Instantly share code, notes, and snippets.

@serverhiccups
Last active March 1, 2021 06:00
Show Gist options
  • Save serverhiccups/8519c4a1f92d1461297b34e2128d61c8 to your computer and use it in GitHub Desktop.
Save serverhiccups/8519c4a1f92d1461297b34e2128d61c8 to your computer and use it in GitHub Desktop.
Bypass N4L content blocking
// by hiccup01
// licenced under MIT licence
// hiccup01 is not responsible for the results caused by using this script
window.location="https://web.archive.org/save/"+((decodeURIComponent((new RegExp("[?|&]blockedUrl=([^&;]+?)(&|#|;|$)").exec(location.search)||[null,""])[1].replace(/\+/g,"%20"))||window.location)||window.location);
//bookmarklet vvv
//javascript:(function()%7Bwindow.location%3D%22https%3A%2F%2Fweb.archive.org%2Fsave%2F%22%2B((decodeURIComponent((new%20RegExp(%22%5B%3F%7C%26%5DblockedUrl%3D(%5B%5E%26%3B%5D%2B%3F)(%26%7C%23%7C%3B%7C%24)%22).exec(location.search)%7C%7C%5Bnull%2C%22%22%5D)%5B1%5D.replace(%2F%5C%2B%2Fg%2C%22%2520%22))%7C%7Cnull)%7C%7Cwindow.location)%7D)()
@WheeledCord
Copy link

'window is unidentified'

@serverhiccups
Copy link
Author

@WheeledCord
Sorry, I can't provide support for this script, but window shouldn't be undefined. 🤔

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