// ==UserScript==
// @name           Bugzilla Second Commit Button on Top
// @namespace      http://fredericiana.com
// @description    Adds a second commit button where you need it
// @include        https://bugzilla.mozilla.org/show_bug.cgi*
// @include        https://bugzilla.mozilla.org/process_bug.cgi*
// @version        0.1
// ==/UserScript==

if (typeof(jQuery) !== 'function') {
    // Add jQuery 1.2.6
    var GM_JQ = document.createElement('script');  
    GM_JQ.src = 'http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js';  
    GM_JQ.type = 'text/javascript';  
    document.getElementsByTagName('head')[0].appendChild(GM_JQ);  
    
    // Check if jQuery's loaded  
    function GM_wait() {  
        if (typeof unsafeWindow.jQuery == 'undefined') {
            window.setTimeout(GM_wait,100);
        } else {
            $ = unsafeWindow.jQuery; letsJQuery();
        }
    }  
    GM_wait();
} else {
    letsJQuery();
}

function letsJQuery() {
    $('#bz_show_bug_column_1').append($('#commit').clone().attr('id','commit-top'));
}

