bulletinBoard
By possumboy
—
Last update Jun 20, 2008
—
Installed
258 times.
// ==UserScript==
// @name bulletinBoard
// @namespace vampirefreaks.com/possumboy
// @description Bring back the bulletin board for those with 1500 friends +
// @include http://home.myspace.com/index.cfm?fuseaction=user
// ==/UserScript==
GM_xmlhttpRequest({
method: 'GET',
url: 'http://bulletins.myspace.com/index.cfm?fuseaction=bulletin',
headers: {
'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
'Accept': 'text/xml',
},
onload: function(responseDetails) {
bul = responseDetails.responseText.replace(/\t|\r|\n|\s\s/g,'').match(/<table id = "bulletin_inbox" .+?<\/table>/);
bul = unescape(bul);
bul = bul.replace(/<img src=".+?" \/\>/gi,'');
bul = bul.replace(/<br \/\>/gi,'');
bul = bul.replace(/text-align:center;width:200px;/, 'text-align:center;width:100px;');
bul = bul.replace(/class="subject"/gi, 'class="subject" style="background-color: #eff3ff; border: 2px solid #ffffff; padding: 2px 3px;"');
bul = bul.replace(/class="userinfo"/gi, 'class="userinfo" style="background-color: #eff3ff; border: 2px solid #ffffff; padding: 2px 3px;"');
bul = bul.replace(/class="date"/gi, 'class="date" style="background-color: #eff3ff; padding: 2px 3px;"');
document.getElementById("toomany").innerHTML=bul;
bl = document.getElementById("bulletin_inbox");
bl.style.width="420px";
newit = document.createElement("a");
newit.setAttribute("href", "http://bulletins.myspace.com/index.cfm?fuseaction=bulletin");
text = document.createTextNode("View all bulletins");
newit.appendChild(text);
cl = document.getElementsByClassName("viewall")[0];
cl.appendChild(newit);
}
});