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!




Must Read These Posts:

  1. View Source Code of Any Website Without Visiting It
  2. 5 Must Have Bookmarklets
  3. goo.gl lite – Firefox Add-on To Create goo.gl Short URLs Without Google Toolbar
  4. Easily Insert Special Symbols In Your Tweets
  5. Get More Useful Firefox Add-ons
  6. A Story Ends! Storytlr.com Stopped Hosting, Code Released As Open Source
  7. Bookmarklet To Create goo.gl Short URLs In Firefox, Opera, Chrome And Other Browsers

Leave a Comment