Reputation: 2584
I've been using Chrome and am going back and forth between switching to Safari or staying with Chrome. My one small issue with Safari though is that the web inspector always shows up in a new window every time I toggle it. I press Command-Option-I and it opens in a new window and when I press Command-Option-I again it does not go away. I love the way the web inspector functions in Chrome and am wondering if there's a way to run the same way in Safari.
Any thoughts are greatly appreciated. Thanks!
Upvotes: 17
Views: 22942
Reputation: 1
"com.apple.Safari.WebInspectorPageGroupIdentifier.WebKit2InspectorStartsAttached" = 0;
the param/key/variable is
"com.apple.Safari.WebInspectorPageGroupIdentifier.WebKit2InspectorStartsAttached"
so you would do the following in Terminal
~ % defaults read com.apple.Safari "com.apple.Safari.WebInspectorPageGroupIdentifier.WebKit2InspectorStartsAttached"
FYI, someone made an erroneous reply above which lead me to look into it and got the correct information
they told you to do this ....
~ % defaults read com.apple.Safari "WebInspectorPageGroupLevel1.WebKit2InspectorStartsAttached" defaults[55436:4194341] The domain/default pair of (/Users/*/Library/Containers/com.apple.Safari/Data/Library/Preferences/com.apple.Safari, WebInspectorPageGroupLevel1.WebKit2InspectorStartsAttached) does not exist
Upvotes: 0
Reputation: 47
I noticed when you have an open tab like the start page, the web inspector will pop up in a separate window. Also, there are no icons in the web inspector to attach it to the bottom or side. If you have a webpage open and do the same thing in the same window, that tab will have the web inspector attached to the bottom of the page (or whatever your attachment selection was prior).
Upvotes: 1
Reputation:
I have had the issue for a long time. Here is the solution.
Hope this helps.
Upvotes: 25
Reputation: 3926
Follow these steps to fix safari issue
Upvotes: 1
Reputation: 366
None of the methods upon are working for me (Safari 9.1), if you want to make the docking buttons of the inspector showing up:
defaults read com.apple.Safari "__WebInspectorPageGroupLevel1__.WebKit2InspectorStartsAttached"
Once you checked if it returns 0,
do:
defaults write com.apple.Safari "__WebInspectorPageGroupLevel1__.WebKit2InspectorStartsAttached" 1
Upvotes: 11
Reputation: 957
The only method that seemed to work for me was to resize the browser to a big enough size that it was big enough to contain the smallest size of an individual Inspect window. This for me, was widening the browser to at least around 65% percent width of the screen, and then you can "Inspect Element" and the default would be that the Inspect window would be at the bottom of the browser, and the browser with the Inspect window in it is resizable to any size now. Hope this helps some people.
Upvotes: 2
Reputation: 14119
You could press the leftmost button at the Inspector's status bar and Inspector will dock.
UPDATE: Now, the button is on the right. When Inspector is in a separate window, the two small buttons in its upper right corner make it move to the 1) bottom of the Safari window 2) right side of the Safari window.
Upvotes: 3
Reputation: 31467
It's a bug in the Safari codebase.
Here is the bugreport and they're working on it (source)!
Upvotes: 7