// Move RedBubble comment box to bottom of comments.
// Version 0.1
// 2007-12-12
// Copyright (c) 2007, Dave Pearson <http://www.davep.org/>
// Released under the GPL
// http://www.gnu.org/copyleft/gpl.html
//
// --------------------------------------------------------------------
//
// This is a Greasemonkey user script.  To install it, you need
// Greasemonkey: http://www.greasespot.net/
// Then restart Firefox and revisit this script.
// Under Tools, there will be a new menu item to "Install User Script".
// Accept the default configuration and install.
//
// To uninstall, go to Tools/Manage User Scripts,
// select "RedBubble Comment at Bottom", and click Uninstall.
//
// --------------------------------------------------------------------
//
// ==UserScript==
// @name          RedBubble Comment at Bottom
// @namespace     http://www.davep.org/
// @description   Moves the comment box to the bottom of the comments
// @include       http://www.redbubble.com/people/*/art/*
// @include       http://www.redbubble.com/people/*/clothing/*
// @include       http://www.redbubble.com/people/*/writing/*
// ==/UserScript==

// Look for the comment form.
var commentForm = document.getElementById( 'comment-form' );

// Look for the comments.
var comments = document.getElementById( 'comments' );

// Did we get them?
if ( commentForm && comments ) {
   // We did. Move the comment form after the comments.
   comments.parentNode.insertBefore( commentForm, comments.nextSibling );
}
