Archive for May, 2007

The other YesScript

Wednesday, May 23rd, 2007

While Googling around I found that someone else once made an extension called YesScript. It’s a single blog entry by a guy named Zhang Ling, and the install link is broken. It looks like his YesScript worked just like my YesScript, except his additionally has a global on/off button. I’ve tried to contact him, but […]

New feature: receive donations by PayPal

Sunday, May 20th, 2007

I’ve added a new feature to userstyles.org that’ll hopefully get a bit of cash flowing towards style writers. Users now have the option to provide an e-mail address for a Paypal account. Users who do this will have a third (along with reviews and forum posts) form of feedback on their styles’ pages - donation […]

YesScript 1.1

Sunday, May 20th, 2007

I’ve released YesScript 1.1. YesScript is a JavaScript blacklist, allowing you to specify which sites aren’t allowed to run JavaScript.
This version:

Fixes a bug where if the user had never used security policies, the extension wouldn’t work.
Fixes a bug where the manage dialog would appear blank.
Adds support for IDN domains
Adds French, Hebrew, Hungarian, Italian, Japanese, Korean, […]

Returning an array from a JavaScript XPCOM

Wednesday, May 9th, 2007

IDL
The second last word is the type of the objects in the array.
void getArray(out unsigned long count, [array, size_is(count), retval] out string retv);
XPCOM

getArray: function(count) {
var returnValue = [”foo”, “bar”, “baz”];
count.value = returnValue.size;
return returnValue;
}
Calling code

var xpcom = Components.classes[”@example.com;1″].getService(Components.interfaces.nsIExample);
var array = xpcom.getArray({});

Stylish 0.5 beta

Wednesday, May 9th, 2007

Stylish 0.5b1 is out, discuss here. The beta is feature complete.
Stylish 0.5 will provide:

Prettied up, simplified UI
Search field for installed styles
Additional functions to help CSS editing, such as data URI insertion and !important-izer
The ability to post a style to userstyles.org from Stylish
Integration with other extensions, namely It’s All Text, Rainbow Picker, Split Browser, and DOM […]

Introducing YesScript

Friday, May 4th, 2007

YesScript is a JavaScript blacklist. It allows you to block specific websites from executing JavaScript. Unlike NoScript, YesScript isn’t meant to provide any extra security. It’s my opinion that Firefox is secure enough that a JavaScript whitelist like NoScript is at best unnecessary. YesScript is for preventing annoyances - certain sites abuse JavaScript by opening […]

Adventures in development - Web standards and Firefox extensions