Path: blob/main/school/single-script website proxy
15444 views
javascript:(function()%7Bvar proxy %3D 'https%3A%2F%2Fapi.codetabs.com%2Fv1%2Fproxy%3Fquest%3D'%3Bvar link %3D prompt("Enter link")%3Bfetch(proxy%2Blink).then((response)%3D>response.text()).then((text)%3D>document.write(text))%3Bvar all %3D document.getElementsByTagName("*")%3Bfor (var i%3D0%2C max%3Dall.length%3B i < max%3B i%2B%2B) %7Bif(all%5Bi%5D.src) %7Ball%5Bi%5D.src %3D new URL(all%5Bi%5D.src%2C link).href%3Ball%5Bi%5D.src %3D proxy%2Ball%5Bi%5D.src%3B%7D%7Dwindow.onbeforeunload %3D function(e) %7Be.preventDefault()%3Balert(e.toString())%3B%7D%3Bfunction locationHashChanged(e) %7Be.preventDefault()%3Balert(e)%3Bwindow.location %3D new URL(e.oldURL%2C e.newURL).href%3B%7Dwindow.onhashchange %3D locationHashChanged%7D)()