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
You’re currently reading “Greasemonkey script for adding custom stylesheets to MySpace,” an entry on Wehr I Am
- Published:
- March 23, 2006 / 9:29 am
- Category:
- uncategorizable
- Tags:
2 Comments
Jump to comment form | comments rss [?] | trackback uri [?]