See Source Code Of Any Website in Tab Without Any Add-on
Firefox users have choice for almost unlimited add-ons to customize their browser and to perform complicated tasks easily. But, Do we need add-ons for every task? Certainly Not!
I’m surprised to see Source Viewer Tab – a Firefox add-on which simply loads source code (HTML/JavaScript/CSS) of webpages in regular tabs instead of new windows. The idea is very nice – but why an additional add-on?? This can be done easily with a bookmarklet!
I have already told you that you can see source code of any webpage without actually visiting it by using trick view-source:URL. If you frequently need to see source code of webpages – you can create a bookmarklet with the following code :
javascript:(function(){window.open("view-source:"+location.href)})();
To create this bookmarklet, right click anywhere on the bookmark toolbar – select new bookmark and insert the above code in its location field.

Thankfully, this trick works with Google Chrome too.
I prefer bookmarklets and greasemonkey scripts over installing add-ons because of their simplicity.
Cheers!
Must Read These Posts: