Script Summary: Provide utilities for Firebug.
Version: 0.3.1
This script are intended to provide some utilities to run directly on Firebug.
Version 0.3 add new functions:
function head(url, callback): make head request
function parseHeaders(headerString): parse http header string to object, usefull when make head request.
Version 0.2 includes these functions:
function getCharCodeArray(str): return the array containing the char codes of the input string str
function reverse(str): return the reversed string from the input string str
function select(xpath, [element]): return array containing any nodes that match the xpath string. If element parameter is not presented, the default value is document
function selectSingle(xpath, [element]): return the first node that matches the xpath string. If element parameter is not presented, the default value is document
function loadScript(url): insert the script at the location url. Useful when you want to load jQuery or other javascript libraries.
function serialize(obj): return a parameterized string used to post to an url.
function get(url, callback, errCallback): perform a quick get based on GM_xmlhttprequest (therefore it's cross-site). The callback is the function called when the get function succeed, and take one parameter that is the XMLHttpRequest object.
function post(url, data, callback, errCallback): perform a quick post based on GM_xmlhttprequest (therefore it's cross-site). The data is the object that contains data post to url. The callback is the same as in get.



