Tag Archives: browser

Show / Reveal Password Bookmarklet

If you’ve got a pass­word saved, but can’t remem­ber what it is, you can use this book­mark­let to reveal it. Drag the image to the book­mark bar: Click the but­ton above to try it out: If you’re inter­ested in the JavaScript source:   javascript:Array.prototype.slice.call(document.querySelectorAll(“input[type=‘password’]”)) .map(function(el){el.setAttribute(‘type’,‘text’)})   It gets all pass­word inputs and turns their type to text; […]

Things That Give Me Usability Cramps — Web Forms

Usability Cramps [yoo-zuh-bill-ity kramps] n. are unpleas­ant, often pain­ful sen­sa­tions caused by unbear­able unus­able user exper­i­ence mis­takes v. usab­il­ity cramp­ing, usab­il­ity 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 check­box or a label doesn’t select it when you click it: […]

Javascript — Is an Object Empty?

To check if an object is empty in Javascript:   Object.getOwnPropertyNames(obj).length === 0;   Where obj is the object you’re test­ing 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 func­tion:   func­tion isEmpty(obj){ return (Object.getOwnPropertyNames(obj).length === 0); } […]

Throttle Bandwidth on MAC OS X

To limit the con­nec­tion speed on your Mac to a 56k modem for test­ing your web­site load­ing speed, pop this into ter­minal: sudo ipfw pipe 1 con­fig 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 […]

IE Detection in 7 Bytes — Javascript

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)

Site Seeing — Week Three

Css Desk — An Online CSS Sandbox http://cssdesk.com/ A great web app for play­ing around with HTML and CSS in the browser, would be inter­est­ing 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 gen­er­ates a col­our palette from it. You […]

Chrome vs. Lightning (video)

http://www.youtube.com/watch?v=nCgQDjiotG0 Brilliant.