Try and view the source
81–86 of 86 posts
Re: Try and view the source
#82your secret character injection is sneaky. props. i see a potential for URL spoofing.
Re: Try and view the source
#83Earlier quoted context omitted.
> I bet someone does it on their live site. I doubt it, as this method breaks forward/back functionality, thus probably breaking most sites. Having said that, for all links, you could do a further re-write using the history API, before allowing the redirect to take place. I guess that would actually make it usable even if, as you say, it's futile in the end.
Many sites (hi, Twitter; #! you, too!) happily break the back button. It is a standard technique to "boost" engagement and "reduce" bounce rate. Seems spiritually inline line with this view-source gimmick.
There is a problem, of course. Going to the new url fails to render the site, so view source won't work but neither will bookmarks. And you DON'T want to prevent bookmarking. But good to know this works.
Re: Try and view the source
#84Right Click -> Inspect Element -> Resources . It was easy that way!
Re: Try and view the source
#85Yes, I do inspect element and I can see the page source.
Re: Try and view the source
#86I can't remember the last time I hit View Source. I always check via the Chrome Developer Tools.
Interesting hack nevertheless.