Sometimes a CSS color scraper comes in handy ...
11–20 of 24 posts
Re: Sometimes a CSS color scraper comes in handy ...
#12It's cool, but curious why it shows nothing on our website! http://colrgrabr.swissamigos.com/#http://www.scirra.com
Re: Sometimes a CSS color scraper comes in handy ...
#13Re: Sometimes a CSS color scraper comes in handy ...
#14Every search I try it gives me the colours for Hacker News :( I can see why this would be very useful (instead of trawling through the CSS with dev tools or using a colourpicker) - On closer inspection, it looks like it's always returning the colours for the first search I made, whichever that is.. (Chrome latest on Mac)
I think it's a very useful idea. Maybe a bookmarklet is second best to a browser plugin (but this one can surely be improved):
javascript:(function(){var%20s=encodeURIComponent(window.location.href.match(/:\/\/(.[^/]+)/)[1]);open('http://colrgrabr.swissamigos.com/?url='+s+'#'+s);})();
(stripping the path for now, to make it work)Re: Sometimes a CSS color scraper comes in handy ...
#15It's cool, but curious why it shows nothing on our website! http://colrgrabr.swissamigos.com/#http://www.scirra.com
"//static4.scirra.net/css/newmaster.css?v=43"
No idea if that's the issue but it stuck out.Re: Sometimes a CSS color scraper comes in handy ...
#16It's cool, but curious why it shows nothing on our website! http://colrgrabr.swissamigos.com/#http://www.scirra.com
Why do your css links have a double slash prepended? "//static4.scirra.net/css/newmaster.css?v=43" No idea if that's the issue but it stuck out.
Re: Sometimes a CSS color scraper comes in handy ...
#17Re: Sometimes a CSS color scraper comes in handy ...
#18Every search I try it gives me the colours for Hacker News :( I can see why this would be very useful (instead of trawling through the CSS with dev tools or using a colourpicker) - On closer inspection, it looks like it's always returning the colours for the first search I made, whichever that is.. (Chrome latest on Mac)
For me it works on most URLs not containing a path components but sometimes it chokes. Seems to return the latest successful query then? I think it's a very useful idea. Maybe a bookmarklet is second best to a browser plugin (but this one can surely be improved): javascript:(function(){var%20s=encodeURIComponent(window.location.href.match(/:\/\/(.[^/]+)/)[1]);open('http://colrgrabr.swissamigos.com/?url='+s+'#'+s);})(…
Btw. you don't need the ?url= query param.
javascript:(function(){var%20s=encodeURIComponent(window.location.href.match(/:\/\/(.[^/]+)/)[1]);open('http://colrgrabr.swissamigos.com/#+s);})();Re: Sometimes a CSS color scraper comes in handy ...
#19Every search I try it gives me the colours for Hacker News :( I can see why this would be very useful (instead of trawling through the CSS with dev tools or using a colourpicker) - On closer inspection, it looks like it's always returning the colours for the first search I made, whichever that is.. (Chrome latest on Mac)
I've tested it on Chrome latest for Mac & Canary Build and it works fine for me.
Do you have more details on this issue?
thx
Re: Sometimes a CSS color scraper comes in handy ...
#20It's cool, but curious why it shows nothing on our website! http://colrgrabr.swissamigos.com/#http://www.scirra.com