Hello Hacker News! Creator here, happy to answer any questions! :)
I decided to build CSS Scan to get computed styles with no hassle and in real-time. It's faster than using browsers' Developer Tools and give all of the styles in the shorthand way, this means no messy CSS or styles being overwritten. You can also copy to clipboard by just clicking on it.
P.S.: Of course this is only for use cases you want to have an overall vision of the styles; it's far from being a full alternative to Inspect Element.
It took me 50 hours and 17 minutes to develop. Inspired by @levelsio I recorded all the development and made a speed video. If you want to check it:
https://www.youtube.com/watch?v=OtsNNXpXcYs
Just had a chance to check it out on Chrome. Looks cool! Another feature that might be useful is to have links back to the related stylesheets via css source maps.
I want to know more about the bicycle tour this is paying for!
Glad you got off the sofa a few times during the code-a-thon, you could have spent all that time in front of a games console, so well done for completing the task.
Isn't this literally getComputedStyle[1]? Chrome devtools already has a 'computed' section which shows the same thing. What additional functionality does this provide that I'm missing?
Great tool! I'd like to see you keep going with this. Quick feedback: it would be useful to copy the entire ruleset, including the selector and brackets (as an option). Further if you can reach into source via document.stylesheets, grab the selectors from source (as another option).
Hey! I have good news! Just updated the app. Now you can copy the selector name! If you use Chrome, the extension will update itself. On Firefox, I'll implement auto-update functionality tomorrow. More updates to come!
Looks super useful but I don't want to buy before I try. The landing page says "for the price you want", but the product page has a 1.99+ and I can't enter less than that.
This is really GREAT! The timing is perfect, I have to rewrite a whole bunch of CSS for a project and now I can easily pick and choose what I want to port over to the new layout.
Can you share anything about how many sales you've made? I'm curious how willing developers are to pay for tools like this. I'm working on selling a Chrome extension as well so I'd be super interested in learning more.
Hey seanwilson, I actually made a lot more sales than I expected. $500 Revenue so far. 167 sales :) I'm also planning to write an article, I'll update stats on twitter (@gvrizzo)
I've used a similar tool[1] before to convert all styles of an element to inline styles in order to copy it into a more isolated setting for testing, and it worked pretty well for me. There were a lot of manual steps for me to do this though, so CSS Scan seems like a pretty nice "one click" alternative.
This looks super useful! Is it also able to grab media queries and other styles that may not be applied at the current time (like style based on a parent class that gets added later to trigger an animation)?
This is great. I've been looking for a good way to be able to identify between active styles and legacy css that seems to build up over time, and this is a pretty neat way to do it.
HN has a pretty strong history of people posting their/other's projects, commercial or otherwise and getting feedback. So in a way, every Show HN is an advertisement. I don't believe this should be discouraged. I personally find the Show HN posts far more interesting and closer to HN roots than the typical tech/political news that dominates the front page these days.
I mean a synonym for "advertise" is literally "show". What I really have a problem with is when someone else hijacks someone's thread with their own agenda.
[+] [-] guivr|7 years ago|reply
I decided to build CSS Scan to get computed styles with no hassle and in real-time. It's faster than using browsers' Developer Tools and give all of the styles in the shorthand way, this means no messy CSS or styles being overwritten. You can also copy to clipboard by just clicking on it.
P.S.: Of course this is only for use cases you want to have an overall vision of the styles; it's far from being a full alternative to Inspect Element.
It took me 50 hours and 17 minutes to develop. Inspired by @levelsio I recorded all the development and made a speed video. If you want to check it: https://www.youtube.com/watch?v=OtsNNXpXcYs
[+] [-] geuis|7 years ago|reply
[+] [-] geuis|7 years ago|reply
[+] [-] deadcoder0904|7 years ago|reply
[+] [-] Theodores|7 years ago|reply
Glad you got off the sofa a few times during the code-a-thon, you could have spent all that time in front of a games console, so well done for completing the task.
[+] [-] ninjaranter|7 years ago|reply
[1] https://developer.mozilla.org/en-US/docs/Web/API/Window/getC...
[+] [-] guivr|7 years ago|reply
Besides that, you'd have to use the console for each element you want. With CSS Scan you just have to hover it.
[+] [-] conceptpad|7 years ago|reply
[+] [-] guivr|7 years ago|reply
[+] [-] dexterous|7 years ago|reply
[+] [-] guivr|7 years ago|reply
[+] [-] a_r_8|7 years ago|reply
[+] [-] guivr|7 years ago|reply
[+] [-] Globz|7 years ago|reply
Thank you!
[+] [-] guivr|7 years ago|reply
[+] [-] arxpoetica|7 years ago|reply
[+] [-] seanwilson|7 years ago|reply
[+] [-] guivr|7 years ago|reply
[+] [-] ceagrass|7 years ago|reply
[1]: https://www.npmjs.com/package/computed-style-to-inline-style
[+] [-] codegeek|7 years ago|reply
[+] [-] guivr|7 years ago|reply
[+] [-] staffordrj|7 years ago|reply
[+] [-] guivr|7 years ago|reply
[+] [-] makeee|7 years ago|reply
[+] [-] guivr|7 years ago|reply
[+] [-] King-Aaron|7 years ago|reply
[+] [-] guivr|7 years ago|reply
[+] [-] swaggyBoatswain|7 years ago|reply
e.g. there's so many boxes inside of boxes.
It would be nice if say within the `body` tag, you show items that are at most 1,2,3,4 levels deep at most.
[+] [-] andrenotgiant|7 years ago|reply
Also interested to hear how the sales go, I think charging a little money for it is a great idea.
[+] [-] guivr|7 years ago|reply
[+] [-] tomjohnneill|7 years ago|reply
Is there any way you can add the option to turn the CSS into React inline styles?
[+] [-] johnmurch|7 years ago|reply
[+] [-] nolite|7 years ago|reply
[+] [-] mhb|7 years ago|reply
[+] [-] guivr|7 years ago|reply
[+] [-] guivr|7 years ago|reply
[+] [-] nullbyte|7 years ago|reply
[+] [-] lunaru|7 years ago|reply
[+] [-] overcast|7 years ago|reply