ThB Inbox

By OBeyond Last update Jan 17, 2009 — Installed 31 times. Daily Installs: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0

There are 2 previous versions of this script.

// ==UserScript==
// @name			ThB Inbox
// @namespace			ThB
// @version			0.2
// @date			18-01-2009
// @author			vBm ( vbm AT omertabeyond DOT com )
// @description			ThorBits.org auto check all msgs in inbox
// @include			http://thorbits.org/messages.php*
// ==/UserScript==

function $x(xpath, root) {
	var doc = root ? root.evaluate ? root : root.ownerDocument : document, next;
	var got = doc.evaluate(xpath, root||doc, null, 0, null), result = [];
	switch(got.resultType) {
		case got.STRING_TYPE: return got.stringValue;
		case got.NUMBER_TYPE: return got.numberValue;
		case got.BOOLEAN_TYPE: return got.booleanValue;
		default: while(next = got.iterateNext()) result.push(next);
		return result;
	}
}

$x('//input[@type="checkbox"]').forEach(function($n){ $n.checked = true;});