Sunday, 17 May 2009

Ubiquity Command - Current Song

On a forum that I frequent there is a thread "What are you listening to now?" where people simply post the name of the song they're listening to. While I was bored I created a current-song command which grabs the name of the song you're listening to from the FoxyTunes addon and pastes it into the currently focused editable text area.

Subscribe

Labels: , ,

Wednesday, 13 May 2009

First Ubiquity Command - quote-to-quick-reply

I have discovered the Ubiquity extension for Firefox and I am loving it. So much that I tweeted about it and have decided I will try to develop some commands for it in the future. I have been using Enso Launcher for a while now and Ubiquity seems like the perfect companion for the web.

I use several phpbb forums and some of those have the little "Quick Reply" boxes at the bottom which I tend to use a lot. As far as I know you can't quote posts in the thread without following the quote link on the post you want to actually quote. I wouldn't call this command that useful but it was a good learning experience on how to create commands for Ubiquity.

CmdUtils.CreateCommand({
name: "quote-to-quick-reply",
homepage: "http://deevus.digitalchild.org",
author: {name: "Simon Hartcher", email: "deevus@gmail.com"},
license: "GPL",
description: "Quotes the selected text to the Quick Reply box. Only works for phpbb forums with Quick Reply enabled.",
execute : function() {
//get selected text
var selection = CmdUtils.getSelection();
//get the node of the selection text
var parent = CmdUtils.getWindow().getSelection().anchorNode;
{
//traverse the nodes until the parent table is found
while (parent != null && parent.className != "tablebg") {
parent = parent.parentNode;
}
}
//find the name of the post author from within the table node
var author = jQuery(".postauthor", parent.innerHTML).html();
//construct the quote text
var quotetext = "[quote=\""+ author + "\"]"+ selection +"[/quote]";
//place it quote text into quick reply box
var doc = CmdUtils.getDocument();
var quickReply = jQuery("#message", doc);
quickReply.val(quickReply.val() + quotetext);
}
});


With this command you simply select the text that you want to quote and execute the quote-to-quick-reply command in Ubiquity. It will put the quoted text (including the author of the post) into the quick reply box. You can do this as many times as needed (if you need to quote more than one post for example).
Its still in its infancy at the moment so there are many ways you can break it (such as using it on text that isn't within a post OR using it anywhere other than a phpbb forum with quick reply enabled).

Subscribe

Labels: , ,

Thursday, 25 September 2008

My Time








Download.

Lyrics

It wont be forever
It wont be too long either
This time
My time

With passion waiting dormant
Slowly comes to life
My soul
My fight

I wont fade this time
You cant play my mind

I'm feeling strong already
I'll take on your pride
Your guile
You hide

I wont fade this time
You cant play my mind

Saturday, 28 June 2008

Green








Download

Its not what I wanted
To be in this room
Full of preachers
Who don't want to know

Where are the animate?
Their justice is good.

Stare at the hourglass
Frozen and bored
Yield to hegemony
My eyes to the floor

Dead on the tracks
Aimless, bitterness
Green.
Wonderless, emptiness.

Yield to hegemony
Their justice is torn
Facing your enemy
Stuck on the shore

Dead on the tracks
Aimless, bitterness
Green.
Wonderless, emptiness.

Labels: , ,

Tuesday, 16 October 2007

Right Time








Download

Where I am cold and lonesome
Where are you?
I hope you're okay
Stop there
Stay where you are
Don't be fooled
You don't know where you're heading to

Looking for the right time
To commit the right crime
You better watch yourself
Coz sometimes you'll open an old wound

My head hurts
I've got needles in my brain
Please stop this torture
Well I guess that you were right
I guess I was wrong

Looking for the right time
To commit the right crime
You better watch yourself
Coz sometimes you'll open an old wound

Labels: , ,

Sunday, 5 August 2007

Leave Everything Behind








Download

Just a demo that had more effort involved than usual. Some off notes and timing issues.

Lyrics

Where do we go from here
The road ahead is clear
It seems like so long
Since we've been home

We've got to be strong
If we make it through
All I know right now
You must leave everything behind

After all is finished
We'll be hard as stone
Jump in and take on the world
They won't know what hit 'em

We've got to be strong
If we make it through
All I know right now
You must leave everything behind

Its getting darker now
The sun makes a silhouette
Buildings all in black
Time to settle down

Labels: , ,

Tuesday, 26 June 2007

Dying Slowly








Download

When you're by yourself
Its like theres no one else
Cars go screaming by
No one at the wheel

Justice in your mind
If you think hard you'll find
Things will disappear
Like they're just not here

Paper lines the streets
Clogging up the drains
What the headlines said
The world is truly dead

You killed it in one blow
Polluted it like snow
On a living hill
The grass will slowly die

Stop to look and see
The world is dying slowly
Where will we all be
When we're all alone

Labels: ,