If you’ve got a password saved, but can’t remember what it is, you can use this bookmarklet to reveal it. Drag the image to the bookmark bar: Click the button above to try it out: If you’re interested in the JavaScript source: javascript:Array.prototype.slice.call(document.querySelectorAll(“input[type=‘password’]”)) .map(function(el){el.setAttribute(‘type’,‘text’)}) It gets all password inputs and turns their type to text; […]
Usability Cramps [yoo-zuh-bill-ity kramps] n. are unpleasant, often painful sensations caused by unbearable unusable user experience mistakes v. usability cramping, usability cramped, why the hell did they do this? Form Labels That Don’t Select the Fields This one mega-stresses me out; when the text label next to checkbox or a label doesn’t select it when you click it: […]
To check if an object is empty in Javascript: Object.getOwnPropertyNames(obj).length === 0; Where obj is the object you’re testing e.g.: var obj = {}; Object.getOwnPropertyNames(obj).length === 0; //true obj = {‘not’ : ‘empty’}; Object.getOwnPropertyNames(obj).length === 0; //false Or to wrap it in a function: function isEmpty(obj){ return (Object.getOwnPropertyNames(obj).length === 0); } […]
To limit the connection speed on your Mac to a 56k modem for testing your website loading speed, pop this into terminal: sudo ipfw pipe 1 config bw 56kbit/s sudo ipfw add pipe 1 dst-port http You can change 56kbit/s to any speed you want to test with. To clear it either reboot or use: sudo ipfw flush […]
Great bit of javscript code that detects if a browser is Internet Explorer in just 7 bytes: if(!+”\v1”) // true only in IE (via http://webreflection.blogspot.com/2009/01/32-bytes-to-know-if-your-browser-is-ie.html)
Css Desk — An Online CSS Sandbox http://cssdesk.com/ A great web app for playing around with HTML and CSS in the browser, would be interesting to see if it works on the iPad. Pictaculous — A Colour Palette Generator http://www.pictaculous.com/ Pictaculous (from MailChimp) lets you upload or email a photo and then generates a colour palette from it. You […]
http://www.youtube.com/watch?v=nCgQDjiotG0 Brilliant.