View-Source icon indicating copy to clipboard operation
View-Source copied to clipboard

Server-side PHP script which displays the source of a webside with syntax highlighting for viewing on an iPad

Results 3 View-Source issues
Sort by recently updated
recently updated
newest added

Hi, Thanks for work! Sadly the following script doesn't work on ios 9.1 anymore. Do you have ideas ? javascript:(function(){var w=window.open("about:blank"),d=w.document;d.write("Loading Source"),d.close();var f=d.createElement("form");f.setAttribute("method","post"),f.setAttribute("action","https://ole.michelsen.dk/viewsource/?uri="+encodeURIComponent(location.href));var i=d.createElement("input");i.setAttribute("type","hidden"),i.setAttribute("name","DOM"),i.setAttribute("value",encodeURIComponent(document.documentElement.innerHTML)),d.body.appendChild(f).appendChild(i),f.submit();})()

Any chance support for [scheme-relative URLs](http://paulirish.com/2010/the-protocol-relative-url/), e.g. `//example.com/` can be added? Currently these links break in the source view. To fix this, you could simply replace `//` at the start...