April 18, 2024
Get Firebug on the iPhone With a Bookmarklet

Get Firebug on the iPhone With a Bookmarklet

Posted December 5, 2011 at 4:15am by iClarified
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


Get Firebug on the iPhone With a Bookmarklet



Add Comment
Would you like to be notified when someone replies or adds a new comment?
Yes (All Threads)
Yes (This Thread Only)
No
iClarified Icon
Notifications
Would you like to be notified when we post a new Apple news article or tutorial?
Yes
No
Comments (4)
You must login or register to add a comment...
Hash
Hash - December 5, 2011 at 8:04am
Tried it on iPhone 4 5.0.1 and this doesn't work anyone else have any luck?
alex
alex - December 5, 2011 at 10:27am
same here on a 4S 5.0. will try again though
carlos
carlos - December 5, 2011 at 12:50pm
the problem was an " ' " after 4, between FireBugLite & irebug-lite.js copy this... it`s works. 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');
Alvaro
Alvaro - December 5, 2011 at 4:01pm
It works! Thank you Carlos
Recent. Read the latest Apple News.
RECENT
Tutorials. Help is here.
TUTORIALS
Where to Download macOS Monterey
Where to Download macOS Ventura
AppleTV Firmware Download Locations
Where To Download iPad Firmware Files From
Where To Download iPhone Firmware Files From
Deals. Save on Apple devices and accessories.
DEALS