View source in Chrome on Android

I have always wondered why can’t I view the source of any webpage, with Google Chrome browser for Android. If Google forgot to add this very useful feature, you have to add it yourself.

First go to any webpage and add it to your bookmarks by clicking the star.

Rename the bookmark (e.g.”View Source”) and paste this text in the URL field:

javascript:window.open('view-source:' + location.href)

Save the bookmark and go to the webpage you want to see the source of. Now type the name of the bookmark in the address bar and click on the auto-complete to view the source of the webpage you have just opened.

 

Leave a Reply

Your email address will not be published. Required fields are marked *