tobias.soltermanngmail.com / Ascom ESS-Helper

// ==UserScript==
// @name       Ascom ESS-Helper
// @namespace  http://darkspot.ch/c/esshelper
// @version    0.1
// @description  Adds an Export button to Ascom ESS (alarming system) in the groups handling for exporting the numbers into a text window.
// @match      http://*/unsgui/edit_std_group.php*
// @copyright  2014+, T. Soltermann
// @require http://code.jquery.com/jquery-latest.min.js
// ==/UserScript==

$(document).ready(function() {
    var button = " "
    $("div#content tbody:eq(3) th:eq(1)").html("<button style=\"background-color: yellow\">Export</button>").click(
        function()
        {
            var text = "<code>";
            $.map($("div#content tbody:eq(3) td:even() input"),
            function(val, i) {
                text += val.value;
                text += "<br>\n";
                
            })
            text += "</code>";
            var w = window.open('', "", "width=600, height=400, scrollbars=yes");
                    var html = $("#modeltext").html();
                    $(w.document.body).html(text);
        }
    );
});