Enable Element Inspector in the Mac App Store

Sep 7, 2011 - 5 Comments

Mac App Store element inspector

The Mac App Store has a hidden element inspector that lets you view the source of any page or element drawn within the App Store, letting you extract text or images, and even enter your own code into the console (which can lead to all sorts of fun things). This is probably most useful for web and app developers, but anyone with some curiosity might get a kick out of this feature too.

To enable the Mac App Store’s element inspector, quit out of the App Store and then launch the Terminal. Enter the following defaults write command:

defaults write com.apple.appstore WebKitDeveloperExtras -bool true

Hit Return and then relaunch the App Store. You can now right-click to “Inspect Element” on anything, just like you would in Safari through the developer DOM inspector tool.

Inspect Element in the Mac App Store

As you may have guessed, this works because the Mac App Store is basically just a WebKit wrapper for a website.

There isn’t much reason to disable this feature because it’s only activated by a right-click, but if you want to, that defaults write command is:

defaults write com.apple.appstore WebKitDeveloperExtras -bool false

.

Related articles:

Posted by: William Pearson in Mac OS, Tips & Tricks

5 Comments

» Comments RSS Feed

  1. Arthur says:

    Doesn’t seem to work in ML anymore

  2. aasmith says:

    Why???????????????

  3. iDev says:

    This works in the iOS App Store too

Leave a Reply

 

Shop on Amazon.com and help support OSXDaily!

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates

Tips & Tricks

News

iPhone / iPad

Mac

Troubleshooting

Shop on Amazon to help support this site