Greasemonkey script for adding custom stylesheets to MySpace

Develop a custom MySpace style without having to edit a a script tag in the “about” section directly.

// ==UserScript==
// @name MySpace
// @author John Wehr
// @description Myspace Style Helper
// @include http://myspace.com/yourprofile
// @include http://www.myspace.com/yourprofile
// @include http://myspace.com/yourprofile/
// @include http://www.myspace.com/yourprofile/
// @include http://myspace.com/yourprofile/*
// @include http://www.myspace.com/yourprofile/*
// ==/UserScript==

(function() {

var style = document.createElement( "style" );

// Replace http://domain.com/style.css with the location of your stylesheet
style.appendChild( document.createTextNode("@import url( http://domain.com/style.css );") );

document.getElementsByTagName( "body" ).item(0).appendChild( style );

})();


About this entry