Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a free extension for Safari that displays the viewport size

I've got a nice extension for chrome ('Window Resizer') that displays the viewport size, but I don't know how to clear the cache in chrome without using my mouse so I tend to use Safari for browser development.

I've looked around a bit and I can't seem to find an extension that displays the viewport size in Safari (I can find various extensions that allow me to set the viewport size, but none that display it when I change it manually).

Does anyone know of a free extension that does this?

like image 829
Aidan Ewen Avatar asked Jan 10 '14 10:01

Aidan Ewen


People also ask

How do I get free Safari extensions?

There are two places to find Apple-approved Safari extensions: The App Store and the Safari Extensions Gallery webpage. With Safari 12 on macOS Mojave and iOS 12, Apple revised the way its native web browser operates with extensions.

How do I measure pixels in Safari?

You have to have the element inspector open. So with element inspector open, then, In Safari, when you hover over an element, it shows the pixels.

Does Safari have extensions like Chrome?

While there aren't nearly as many extensions for Safari as there are for other browsers like Chrome and Firefox, you can still add a variety of features and capabilities to your browser through the App Store's extension library. To get there, start Safari, click the Safari menu and choose Safari Extensions…


3 Answers

This free Safari Extensions shows the viewport width and height while resizing:

https://github.com/kevinoes/viewportSize-safari-extension

like image 127
koe Avatar answered Oct 06 '22 14:10

koe


If you need the current size, an easy way is to open the Web Inspector (Cmd-Alt-I). Select the <html> node. then click on the Metrics inspector on the right to see the current viewport width/height. This doesn't update very fast if you're resizing the window, but can still give you an estimate of the size.

like image 34
robrecord Avatar answered Oct 06 '22 13:10

robrecord


One solution I've come across is to use a site called http://www.resizemybrowser.com.

I have this open in another a tab in safari and refer to it to get the current viewport size.

like image 38
Aidan Ewen Avatar answered Oct 06 '22 13:10

Aidan Ewen