Archive for the 'Mozilla' Category

Creating a data URI from a file

Sunday, January 28th, 2007

Data URIs are a way of making a URI that actually contains the data inside it. They’re useful when you want to include normally external resources within another file (in my instance, including images in user styles).
The data URI kitchen is an online resource that lets you generate data URIs from files. But what if […]

Watching user input

Saturday, January 27th, 2007

A problem often encountered when making interfaces with JavaScript is how to get a function to run whenever a user changes the value of a text field. onchange only happens when the focus leaves the control, onkeyup will pick up useless strokes (like arrow keys) and won’t pick up on changes done by the mouse […]

Showing a menupopup in multiple places

Friday, January 26th, 2007

Sometimes in an extension you want to show the same menupopup in multiple places. Some users like status bar icons, some like using things under Tools, some like a toolbar button. (For the love of god, don’t put it everywhere by default! Put in some sensible defaults and rely on prefs or user styles for […]

“Restore Defaults” in XUL tree column pickers

Thursday, January 4th, 2007

I was looking into getting “Restore Defaults” working in Stylish’s tree column pickers. I figured they didn’t work because I was using custom tree views (where data is loaded by JavaScript rather than RDF). So I looked around for documentation on devmo and XUL Planet - nothing.  I thought that was strange, so I searched […]

Making money off extensions - rebranding

Friday, December 29th, 2006

Often, site owners want a customized version of an extension with certain tweaks, changed defaults, etc. They will often want that extension branded with their site’s name or logo (this may even be required by the original extension author, if it’s not you). To make this as easy as possible, extension authors should first ensure […]

Live Title generator repository

Thursday, December 7th, 2006

I’ve put together a Live Title generator repository. I’m hoping to make it the place to go for them, just like userstyles.org is the place to go for user CSS. The site itself explains what the plan is for the site, so I won’t repeat it except to re-iterate: the site really needs generators (right […]

Exceptions in user styles

Wednesday, August 30th, 2006

Here’s a bug to vote for to make Stylish better - Bug 349813 - Make a way for site (-moz-document) rules to apply on sites *not* matching a URL/prefix/domain.

Code reviews

Saturday, May 27th, 2006

Lately I’ve been doing a lot of work on the DOM Inspector, mostly improving the UI and making things work as I would expect them to work. I’m grateful for the domi peers who review patches fairly quickly. I still feel the review system is mostly broken - why should I have to pester people […]

Stylesheet service

Friday, April 28th, 2006

Fixing this bug would allow Stylish to instant apply consistently and not require a reload to unapply a style. I hope it’ll get fixed and put on the 2.0 branch.

People don’t read

Friday, February 10th, 2006

People don’t read.

Adventures in development - Web standards and Firefox extensions