May 1, 2024

Get Firebug on the iPhone With a Bookmarklet

Posted December 5, 2011 at 4:15am by iClarified · 13968 views
Firebug, a web development tool that facilitates the debugging, editing, and monitoring of web code, can be enabled on the iPhone via a bookmarklet, reports AppAdvice.

To create a Firebug bookmarklet, simply bookmark any webpage and name it Firebug.

Then edit the bookmark and change the url to:

javascript:(function(F,i,r,e,b,u,g,L,I,T,E){if(F.getElementById(b))return;E=F[i+'NS']&&F.documentElement.namespaceURI;E=E?F[i+'NS'](E,'script'):F('script');E[r]('id',b);E[r]('src',I+g+T);E[r](b,u);(F[e]('head')[0]||F[e]('body')[0]).appendChild(E);E=new%20Image;E[r]('src',I+L);})(document,'createElement','setAttribute','getElementsByTagName','FirebugLite','4′,'firebug-lite.js','releases/lite/latest/skin/xp/sprite.png','https://getfirebug.com/','#startOpened');

Now when visiting a page you can just launch the bookmark to run Firebug.

Read More