Home » Internet Tools            

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.

Add bookmarklet to Firefox

Thankfully, this trick works with Google Chrome too. :)

I prefer bookmarklets and greasemonkey scripts over installing add-ons because of their simplicity. :)

Cheers!




Read More Articles:
  1. View Source Code of Any Website Without Visiting It
  2. Use Bookmarklets in Opera Mini
  3. A Story Ends! Storytlr.com Stopped Hosting, Code Released As Open Source
  4. Get More Useful Firefox Add-ons
  5. Remove Icons From Firefox’s Bookmarks Toolbar
Written by on 27 October 2009 in Internet Tools. Updated on 24 February 2010.
About The Author
Arpit is tech enthusiast and freelance developer. Read more »
Contact him at arpit@techraga.in. Follow on Twitter.

Read more on , , , , , ,

Leave a Reply

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

*