Digg de-link summaries

By serial_crusher Last update Jul 2, 2009 — Installed 59 times. Daily Installs: 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0

There are 1 previous version of this script.

// ==UserScript==
// @name           Digg de-link summaries
// @namespace      http://ruhl.in
// @include        http://digg.com/*
// @version        1.0
// ==/UserScript==

// Check if jQuery's loaded
function GM_wait() {
    if(typeof unsafeWindow.jQuery == 'undefined') { window.setTimeout(GM_wait,100); }
		else { $ = unsafeWindow.jQuery; letsJQuery(); }
}
GM_log("wait for jquery");
GM_wait();

// All your GM code must be inside this function
function letsJQuery() {
		$("a.body").each(function(i, elem){
			var html = $(elem).html();
			$(elem).replaceWith("<span class='body'>" + html + "</span>");
		});
}