Footer Fodder

By wicketr Last update Dec 15, 2009 — Installed 202 times.

There are 1 previous version of this script.

// ==UserScript==
// @name           Footer Fodder
// @namespace      http://userscripts.org/users/89142
// @description    Removes the slew of links & stories from other websites at the bottom of the page
// @include        http://*.engadget*
// @include        http://*.autoblog.com/*
// @include        http://www.bloggingstocks.com/*
// @include        http://www.downloadsquad.com/*
// @include        http://*.joystiq.com/*
// @include        http://www.switched.com/*
// @include        http://www.tuaw.com/*
// ==/UserScript==

function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

addGlobalStyle(
	".footer-cobrand {display:none;}"
	
);

var newfooter = "<a href='http://www.asylum.com'>Asylum</a> | "+
		"<a href='http://www.autoblog.com'>AutoBlog</a> | "+
		"<a href='http://www.bloggingstocks.com'>BloggingStocks</a> | "+
		"<a href='http://www.downloadsquad.com'>DownloadSquad</a> | "+
		"<a href='http://www.engadget.com'>Engadget</a> | "+
		"<a href='http://www.fanhouse.com'>FanHouse</a> | "+
		"<a href='http://www.joystiq.com'>Joystiq</a> | "+
		"<a href='http://www.switched.com'>Switched</a> |  "+
		"<a href='http://www.tuaw.com'>TUAW</a> |  "+
		"<a href='http://www.urlesque.com'>Urlesque</a>  ";
		
if(document.getElementById('grid') != null){
	document.getElementById('grid').innerHTML = newfooter;
}else if(document.getElementById('grid2') != null){
	document.getElementById('grid2').innerHTML = newfooter;	
}

var divElements = document.getElementsByTagName('div');
for (i=0; i < divElements.length; i++){
	if (divElements[i].className == 'linkarea'){
		divElements[i].innerHTML = newfooter;
	}
}