Skip to content

Category Archives: Geekery

Firefox 3.5 not collapsing spaces in JavaScript className

In JavaScript, to get all the classes on a given element, you call element.className, which gives a string with space-separated classes, such as “class1 class2”. You can also set this property directly, such as element.className = “class3 class4”. The norm here is that classes are separated by a single space, with no whitespace [...]

Secret Firefox Icons

I discovered an interesting feature in Firefox today.  When browsing in a local folder (Anything starting with file:///), small icons are shown to represent the format of each file.  It turns out that you can access these icons with moz-icon://.ext?size=x, where ext is the extension of the file (mp3,txt, …), and x is the size [...]

3D Modeling

Tonight I started playing around with Blender, the free, open-source 3D Modeling application.  Thanks to a great tutorial, this is what I came up with after only a couple hours.

Cooler/creepier models to come.

Facebook Large Photos

Time for my second greasemonkey script.
Ever searched for a long-lost friend on Facebook, only to wish you had a magnifying glass for their profile picture?  The ones shown in the search results are so small.  Well, today’s your lucky day, because I have just the solution for you!

Make sure you are using Firefox.
Install Greasemonkey
Install Facebook [...]

Caps Lock Warning

I just wrote my first Greasemonkey script. It warns you if you are typing a password with caps lock enabled.
The caps lock detection code is complements of Stuart Langridge.
To install:

Make sure you are using Firefox.
Install Greasemonkey
Install Caps Lock Warning

Enjoy!