Geek Posted September 7, 2011 Posted September 7, 2011 <div class="KonaBody"><p><img src="http://osxdaily.com/wp-content/uploads/2011/09/app-store-element-inpsector.jpg" alt="Mac App Store element inspector" title="app-store-element-inspector" width="620" height="538" class="aligncenter size-full wp-image-21026" /></p> <p>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 (<a href="http://osxdaily.com/2011/08/02/access-icloud-beta-apps-via-javascript/">which can lead to all sorts of fun things</a>). This is probably most useful for web and app developers, but anyone with some curiosity might get a kick out of this feature too.</p> <p>To <strong>enable the Mac App Store’s element inspector</strong>, quit out of the App Store and then launch the Terminal. Enter the following defaults write command:</p> <p><code>defaults write com.apple.appstore WebKitDeveloperExtras -bool true</code></p> <p>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.</p> <p><img src="http://osxdaily.com/wp-content/uploads/2011/09/inspect-element-mac-app-store.jpg" alt="Inspect Element in the Mac App Store" title="inspect-element-mac-app-store" width="512" height="206" class="aligncenter size-full wp-image-21028" /></p> <p>As you may have guessed, this works because the Mac App Store is basically just a WebKit wrapper for a website.</p> <p>There isn’t much reason to disable this feature because it’s only activated by a <a href="http://osxdaily.com/2011/05/24/enable-right-click-mac/">right-click</a>, but if you want to, that <a href="http://osxdaily.com/tag/defaults-write/">defaults write command</a> is:</p> <p><code>defaults write com.apple.appstore WebKitDeveloperExtras -bool false</code></p> </div> <p><a href="http://feedads.g.doubleclick.net/~a/bdqICGMa5UnSj-81_nh4sifCl1k/0/da"><img src="http://feedads.g.doubleclick.net/~a/bdqICGMa5UnSj-81_nh4sifCl1k/0/di" border="0" ismap="true"></img></a><br/> <a href="http://feedads.g.doubleclick.net/~a/bdqICGMa5UnSj-81_nh4sifCl1k/1/da"><img src="http://feedads.g.doubleclick.net/~a/bdqICGMa5UnSj-81_nh4sifCl1k/1/di" border="0" ismap="true"></img></a></p><div class="feedflare"> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=MB38bKCKHCc:P6us0Y5Ljyw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=MB38bKCKHCc:P6us0Y5Ljyw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=MB38bKCKHCc:P6us0Y5Ljyw:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=MB38bKCKHCc:P6us0Y5Ljyw:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=MB38bKCKHCc:P6us0Y5Ljyw:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=MB38bKCKHCc:P6us0Y5Ljyw:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=MB38bKCKHCc:P6us0Y5Ljyw:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=qj6IDK7rITs" border="0"></img></a> </div><img src="http://feeds.feedburner.com/~r/osxdaily/~4/MB38bKCKHCc" height="1" width="1"/> View the full article
Recommended Posts