TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Dimensions – Measure everything you see in the browser

341 pointsby julienover 10 years ago

21 comments

peterjmagover 10 years ago
This is awesome! Such a wonderfully simple idea, and pretty nice execution to boot. I normally rely heavily on Cmd-Shift-4 on OS X for measuring stuff on screen (click, drag, then Esc to cancel before actually taking a screenshot), but I have a feeling this extension will be a pretty significant improvement over my approach. Great work!<p>For those that don&#x27;t see a use case: Chrome&#x27;s dev tools work well for measuring things within the context of the box model, but so much of what I measure on a regular basis isn&#x27;t captured there. The best example I can think of is measurements relative to some text&#x27;s baseline—the distance between the bottom baseline of some text and the border of its parent container, including adjustments for line height, padding, and related margins, for instance. This extension would also work for things that aren&#x27;t even represented in the box model, like the distance between two shapes in a &lt;canvas&gt; element.<p>One feature suggestion: it&#x27;d be great to be able to click or use another keyboard shortcut to set arbitrary anchor points on the page. That way, I could measure the distance between elements that aren&#x27;t necessarily on the same vertical or horizontal axis. That&#x27;s one thing that OS X&#x27;s screenshot utility is great for (though perhaps unintentionally).
评论 #8302171 未加载
评论 #8302151 未加载
Flenserover 10 years ago
Useful for quick measurements, when you need to measure between several elements at once there&#x27;s Tape: <a href="https://chrome.google.com/webstore/detail/tape/jmfleijdbicilompnnombcbkcgidbefb" rel="nofollow">https:&#x2F;&#x2F;chrome.google.com&#x2F;webstore&#x2F;detail&#x2F;tape&#x2F;jmfleijdbicil...</a><p>And if you just want a box that can be dragged around there&#x27;s Page Ruler: <a href="https://chrome.google.com/webstore/detail/page-ruler/jlpkojjdgbllmedoapgfodplfhcbnbpn" rel="nofollow">https:&#x2F;&#x2F;chrome.google.com&#x2F;webstore&#x2F;detail&#x2F;page-ruler&#x2F;jlpkojj...</a>
评论 #8301887 未加载
ymirover 10 years ago
Disclaimer: I&#x27;ma co-creator of SnapRuler.<p>Great job, it&#x27;s amazing how accurate it is. Getting this tool to be reliable had to be a substantial struggle.<p>If you find this extension useful, there might be a situation when you need to measure stuff that is not inside your browser. SnapRuler (<a href="http://www.snaprulerapp.com" rel="nofollow">http:&#x2F;&#x2F;www.snaprulerapp.com</a>) is an OSX tool that can measure anything you see on screen.
评论 #8303703 未加载
评论 #8302323 未加载
samwillisover 10 years ago
This is rely nice, its unfortunate that it doesn&#x27;t work on gradients though...<p>One way to fix that would be to pass the screen shot of the page (what I believe it is doing) though a edge detection filter first before measuring between colour thresholds?
评论 #8302489 未加载
programover 10 years ago
The very interesting thing is that it goes through transparent portions of png backgrounds. Try it in the google logo.<p>I am very impressed.
评论 #8301870 未加载
alaskamillerover 10 years ago
Like <a href="http://xscopeapp.com/" rel="nofollow">http:&#x2F;&#x2F;xscopeapp.com&#x2F;</a> but in browser
AVTizzleover 10 years ago
The interactive background&#x2F;header on the landing page is awesome!<p>It&#x27;s beautiful, and does a terrific job displaying the tool&#x27;s functionality in a playful, interactive way. Kudos!
naviehuynhover 10 years ago
Alt+D is my favorite shortcut to focus Chrome omnibox :(
评论 #8302156 未加载
panoramaover 10 years ago
This is great, installing now. I too use the cmd+shift+4 method but it&#x27;s pretty unreliable.<p>Similarly, one thing I often find myself needing to do is find the hex or RGB value of an element of pixel on the fly. I know there are osx apps that do this but they&#x27;re usually of the paid variety. Are there any good chrome extensions that can accomplish this?
评论 #8301795 未加载
评论 #8305291 未加载
评论 #8301819 未加载
评论 #8303184 未加载
评论 #8301784 未加载
lfxover 10 years ago
This is really impressive how it calculates size between letters.<p>By the way source may be found here <a href="https://github.com/mrflix/dimensions" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mrflix&#x2F;dimensions</a>
ianbannermanover 10 years ago
This is great! Unforunately, does not work with iframes. A couple sites I&#x27;m stuck with are iframe heavy :&#x2F;
评论 #8302886 未加载
MasoInarover 10 years ago
Doesn&#x27;t work on my machine :(<p>Uncaught TypeError: Cannot read property &#x27;0&#x27; of undefined tooltip.js:84
评论 #8307081 未加载
progxover 10 years ago
Would be nice if you add a &quot;copy size to clipboard&quot; function, when click on an element.
评论 #8301935 未加载
StephenGLover 10 years ago
This is super cool. It will compliment another tool I use called screen ruler very nicely!
klausseilerover 10 years ago
don&#x27;t know why, but the extension won&#x27;t work on my retina mbp 13&quot; <a href="http://imgur.com/3NHVDv5" rel="nofollow">http:&#x2F;&#x2F;imgur.com&#x2F;3NHVDv5</a><p>on the extension website it works fine :&#x2F;
评论 #8302639 未加载
评论 #8302106 未加载
评论 #8302062 未加载
评论 #8302815 未加载
评论 #8302068 未加载
msaneover 10 years ago
I want one of these that does ems, rems and even vw&#x2F;vh ...
iglover 10 years ago
Just testet it on a few pages... I&#x27;m sorry. It&#x27;s not going to work out between the two of us.<p>I was hoping it was really just doing by pixel testing, but it seems to pick up on html elements too.<p>Or could it be buggy on my retina fisher price here?
评论 #8302998 未加载
ellysetaylor21over 10 years ago
Now I dont&#x27;t need Crtl+u every time thanks man (Y)
Raphmediaover 10 years ago
Color me impressed.<p>This is AMAZING.<p>You have no idea how easier you just made my job!
djrconceptsover 10 years ago
This is a great extension! Very useful.
oakioover 10 years ago
Super handy. Nice work.