Skip to content

Instantly share code, notes, and snippets.

@jarek-foksa
Created October 16, 2012 08:32
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarek-foksa/3898054 to your computer and use it in GitHub Desktop.
Save jarek-foksa/3898054 to your computer and use it in GitHub Desktop.
How-to: Restore WebKit Web Inspector on Mountain Lion

Restore WebKit Web Inspector on Mountain Lion

  1. Download WebKit build r121872: http://builds.nightly.webkit.org/files/trunk/mac/WebKit-SVN-r121872.dmg
  2. Right-click on WebKit.app and choose Show Package Contents
  3. Navigate to ./Contents/Frameworks/10.x/WebCore.framework/Versions/Current/Resources/ and you will find a folder called inspector. This contains the HTML/CSS/JavaScript for the Web Inspector, awesome! Keep this Finder window open!
  4. Open a new Finder window and navigate to /System/Library/PrivateFrameworks/WebInspector.framework/Versions/Current/Resources. This is where the 'new' Web Inspector is located.
  5. Now copy the contents from the WebKit Web Inspector folder (from Step 3.) to the new Web Inspector folder from Step 4. Do not remove anything, but when it prompts to 'keep newer' files press the Replace button.
  6. Now there is only one thing left to do, remove of rename the Main.html file (this is the main frame for the new Web Inspector) and rename inspector.html to Main.html.
  7. Start Safari or your WebKit-based app and test it out. It should be back!

Updating OS X / Safari

This might break with Mac OS X and/or Safari updates but I'm guessing that, at least for the time being, this will keep working.

@pygy
Copy link

pygy commented Nov 26, 2012

Thanks for this fork. The latest nightly build wasn't working for me (135516, Safari 6.0.2).

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