Skip to content

Instantly share code, notes, and snippets.

@Warin
Created February 21, 2013 08:34
Show Gist options
  • Save Warin/5003221 to your computer and use it in GitHub Desktop.
Save Warin/5003221 to your computer and use it in GitHub Desktop.
Content of the Firebug lite bookmarklet src:http://getfirebug.com/firebuglite
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[i]('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');
@Warin
Copy link
Author

Warin commented Feb 21, 2013

  1. Open up a Terminal Window
  2. cd /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/Applications/MobileSafari.app
  3. sudo "/Developer/Applications/Utilities/Property List Editor.app/Contents/MacOS/Property List Editor" StaticBookmarks-en_US.plist

That will open up the plist file for editing (and saving). Then you just need to make the following changes so your Property List Editor screen looks like this:

  1. Right-Click on the "Root" line.
  2. Select "Add Row" from the Context Menu. That will become "Item 0" in the list.
  3. Change the type of "Item 0" from "String" to "Dictionary"
  4. Click on the triangle next to "Item 0" to open it up.
  5. Right-Click on "Item 0" and select "Add Row"
  6. For the new Row (under "Item 0") set the Key = "Title" and the value = "Firebug Lite"
  7. Right-Click on the new "Title" row (that you just added) and select "Add Row"
  8. For the new Row (under the "Title" row) set the Key = "URL" and the value is the content of this gist

Save the file and restart the iPhone simulator

src: http://www.jamagination.com/jeff/blog/2011/01/19/getting-firebug-lite-working-iphone-simulator-or-how-add-bookmark-safari-iphone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment