GMail Auto-Expand

By Tim Smart Last update Sep 2, 2009 — Installed 643 times. Daily Installs: 1, 1, 1, 1, 1, 1, 1, 2, 1, 0, 0, 2, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 8, 8, 0, 1, 0, 2, 0, 4

There are 6 previous versions of this script.

// ==UserScript==
// @name           GMail Auto-Expand
// @namespace      http://userscripts.org/users/63868
// @description    Expand conversations automatically
// @include        http://mail.google.com*
// @include        https://mail.google.com*
// @require        http://updater.usotools.co.cc/37943.js
// @require        http://userscripts.org/scripts/source/56812.user.js
// ==/UserScript==

GMailAPI({
	onViewChange: function() {
		if ( this.viewType === 'cv' ) {
			var element = this.convRhsElement.ownerDocument.evaluate( ".//u[contains(.,'Expand all')]", this.convRhsElement, null, 9, null );
			if ( element = element.singleNodeValue )
				this.clickElement( element );
		}
	}
});