MySpace Small Info Box
By Jordon Kalilich
—
Last update Aug 16, 2007
—
Installed
952 times.
// Version 0.4 - August 16, 2007
// By Jordon Kalilich - www.theworldofstuff.com
//
// ==UserScript==
// @name MySpace Small Info Box
// @namespace http://www.theworldofstuff.com/greasemonkey/
// @description Removes the square ad and stretches the narrow info box on your home page to take up less vertical space.
// @include http://home.myspace.com/*
// ==/UserScript==
var adBox = document.getElementById('squareAd');
if (adBox) {
adBox.parentNode.removeChild(adBox);
}
var infoBox = document.getElementById('home_infoBar');
if (infoBox) {
infoBox.innerHTML = infoBox.innerHTML.replace(/<br>/ig,' ');
infoBox.innerHTML = infoBox.innerHTML.replace(/<\/a> /ig,'</a>, ');
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('#home_infoBar span, #home_infoBar div { display: inline ! important; }');
infoBox.style.width = '100%';
infoBox.style.height = '100%';
infoBox.style.margin = '0px 0px 10px 0px';
}