// TabOpenAll
// version 0.1 BETA!
// 2007-06-26
//
// --------------------------------------------------------------------
//
// This is a Greasemonkey user script that opens all links on a page
// in new tabs.  Adapted from Mark Pilgrim's AutoClick script:
//
//     http://diveintomark.org/projects/greasemonkey/
//
// --------------------------------------------------------------------
//
// ==UserScript==
// @name          TabOpenAll
// @namespace
// @description   open all links on the included page(s) in new tabs
// @include       http://www.panix.com/~mshaw/comics_unscrapable.html
// @exclude
// ==/UserScript==

/* BEGIN LICENSE BLOCK
Copyright (C) 2007 Mark Shaw

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You can download a copy of the GNU General Public License at
http://diveintomark.org/projects/greasemonkey/COPYING
or get a free printed copy by writing to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
END LICENSE BLOCK */

if (typeof GM_openInTab != 'undefined') {
    for (var i = document.links.length - 1; i >= 0; i--) {
	var elmLink = document.links[i];
	if (elmLink.href && elmLink.href.indexOf('javascript:') == -1) {
            GM_openInTab(elmLink.href);
	}
    }
}

//
// ChangeLog
// 2007-06-26 - 0.1 - MNS - initial release
//


