Nov 20 2009

Firefox Mobile (Fennec) Greasemonkey Compiler

Friday is code day… So after issuing an update to FireVortex, I spent a few minutes uploading the very simple Greasemonkey Compiler for Firefox Mobile. (see previous post)

The only changes I made over the version by Arantius was appending to the browsers container vs appcontent; updating the em:id target; and default version numbering. I tested out a few random userscripts and it seems everything works well on both the desktop Windows and Linux versions of Firefox Mobile. (I do not own a N900) – installing the extension is another thing. But I can already see a nice need for changing up styles to suite a smaller layout.


Nov 20 2009

FireVortex v1.7.7 for Firefox 3.6b3 is up

Download Now – FireVortex v1.7.7 for Firefox 3.6b3 (and probably RC) is now available…

Some minor bug fixes – especially with VMG’s new Kilometer Magazine forum site.

Future Plans:
- Converting data storage to sqlite (and implement a watchlist archive)
- Converting greasemonkey script used to parse out watch list, im history, new ims, etc into background process that processes data when online – NOT just browsing the forums. Some sort of notification pop-up when new data is found.
- Weave support? – common request is to sync data (favorite forums, buddy list)


Nov 13 2009

FireVortex Listed on Mozilla Add-Ons Site (AMO)

Excellent news from Mozilla this morning… “AMO welcomes self-hosted add-ons and HTML

I just added FireVortex to AMO! I always felt it was too site-specific to list on Mozilla – plus updates are needed very quickly if the forum html code changes. Just another way to find the add-on… (i’m sure i will still receive the occasional angry email about users trying to research Fire and Vortexes on google search ;) )


Nov 13 2009

Greasemonkey for Fennec (aka Firefox Mobile)

Ported Greasemonkey to Fennec – aka Firefox Mobile – Took the compiler version and had to change just a few small things. (no app-content container).

Some simple screenshots

Before Greasemonky on Fennec

Before Greasemonky on Fennec

Enable the Fennec Extension

Enable the Fennec Extension

Greasemonkey going to work on Google.com

Greasemonkey going to work on Google.com

This won’t be my Firefox Mobile Challenge entry :P but a step towards something – if any idea sparks. I really love that Nokia N900!

Next up… getting FireVortex to work… (runs on Greasemonkey)

**edit: Compiler hack is now available online


Jul 12 2009

Observing Cookie changes in Firefox Extensions

Preferences MDC has an example for setting a “nsPref:changed” observer but I needed to watch some cookies as well for FireVortex. I was unable to find a clear cut example so a slight modification and it seems to work:


function CookieListener(func) {
var cl = Components.classes['@mozilla.org/observer-service;1']
.getService(Components.interfaces.nsIObserverService);

this.register = function() {
cl.addObserver(this, "cookie-changed", false);
};

this.unregister = function unregister() {
if (cl) cl.removeObserver(this,'cookie-changed');
};

this.observe = function(subject, topic, data) {
if (topic == "cookie-changed")
func(subject);
};
}

var myListenerCookie = new CookieListener(
function(subject) {
let cookie = subject.QueryInterface(Components.interfaces.nsICookie);
if (cookie.name == "mycookiename"
|| cookie.host == "mycookiehost.com") {
//update whatever
}
});

myListenerCookie.register();

*EDIT…

found this throws a random Error: Components is not defined
added
if (typeof Components == 'undefined') return;

as a fail-safe… not sure why this is happening…

*DOUBLE EDIT…

my bad… don’t keep the profile/extensions folder under application data open during an update ;)


Feb 21 2009

Removing Cookies in Firefox Extensions

Removing a cookie from an extension…

IS:
Components.classes["@mozilla.org/cookiemanager;1"]
.getService(Components.interfaces.nsICookieManager)
.remove(“forums.vwvortex.com”, “firevortexfavforums”, “/”, false);

INSTEAD OF:
cookieSvc.setCookieString(uri, null, “firevortexfavforums=; domain=forums.vwvortex.com; expires=Thu Jan 01 1970 00:00:01 GMT-0700; path=/”, null);


Feb 5 2009

[beta] FireVortex for FF3.1b2

I have posted a test extension for Firefox 3.1b2, please see the VWVortex Thread (first post) for download details.

-updated all xpath for gecko1.9 dom changes (case sensitive now? or maybe zeroforum html code)
-started to change around the greasemonkey compiler script, added my own API hitch, common functions
-added fistrun and upgrade open in new tab (thanks to session restore tip & on page load from MDC)


Feb 3 2009

FireNICO Is Now Available

Awhile back I had a simple fork of FireVortex running on honda-tech.com (no longer on zeroforum) and nicoclub.com forums. I had forgotten (well maybe no one was using them) but it turns out it I was wrong… so updated for FF3.0 and brought inline with FV.

Anyways, grab FireNICO for NICOClub.com here or check out the forum thread


Jan 27 2007

Greasemonkey script for vwvortex

Playing around with Greasemonkey, the one place which needs a lot of help is the VWvortex forums…  I have begun modifying the forums with a few initial scripts, seems a bit nicer.

Full details here for now:

http://forums.vwvortex.com/zerothread?id=3046153