Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

MySpace Birthdays on Homepage

Lists your friends' upcoming birthdays on your homepage.

The birthday listing integrates with the classic homepage (left) and all new homepage styles (right):

On the Classic homepage - On the New homepage

The following options can be set by editing the code:

  • How many birthdays should be shown.
  • New homepages only: The placement of the birthday listing.
  • New homepages only: Option to scroll the list of friends if it's very long.

To edit the code, go to Tools -> Greasemonkey -> Manage User Scripts, select "MySpace Birthdays on Homepage" on the left, and click the "Edit" button. You may have to select a text editor to open the file. Once the file is opened, look for the section near the top labeled "Options." Your changes will take effect after you save the script and reload the page.

Recent Changes

1.91 (April 22, 2008) - Fixed a bug involving friends whose names contain quotation marks (new home page only).
1.9 (March 12, 2008) - For a few days, MySpace showed birth years with people's upcoming birthdates. Now they don't, so the previous version of the script (1.81) is broken. 1.9 has the fix. Unfortunately, this means that friends' ages are no longer shown.




May 4, 2008
Jordon Kalilich Script's author

New birthdays only appear only once a day. To reload the script every minute for something that's only going to happen every 24 hours would be a waste of time and resources.

As for Seifer's, I can look at it, but my script's own placement options should be enough for most people.


 
May 3, 2008
lawrence User

this scripts would be great if it worked with

InsaneNinja's http://userscripts.org/scripts/show/6365
& his
http://userscripts.org/scripts/show/12610
also with

Seifer's
http://userscripts.org/scripts/show/12646

if it worked with all three of the suggested it would it auto update so if i was runing both the birthday update wont come up with the auto update running at the same time if new birthdays come up and if if its works with the other 2 it will be rearrangeable and customizable


 
Feb 4, 2008
Jordon Kalilich Script's author

You save your changes. It's a Greasemonkey user script.


 
Feb 4, 2008
BREAKINCITY User

what do you do with the code after you edit it?


 
Jan 19, 2008
Jordon Kalilich Script's author

To show all the birthdays, go to the code and set the variable maxBirthdays equal to 0. (It's toward the beginning, under "Options.")


 
Jan 19, 2008
lordloss Scriptwright

Hey, i was wondering how i can have it show all birthdays like Gasoline-'s
anyone know how?


 
Jan 15, 2008
Jordon Kalilich Script's author

That wasn't so hard. Enjoy!


 
Jan 14, 2008
Salvador User

ok ill be looking forward to it


 
Jan 14, 2008
Jordon Kalilich Script's author

Actually, it shouldn't be that hard. Give me a little time.


 
Jan 14, 2008
Jordon Kalilich Script's author

Probably, but I might not invest my time in it. We'll see.


 
Jan 14, 2008
Salvador User

is there a way to make it work with the new myspace themes??


 
Jan 3, 2008
jumper4000 Scriptwright

Thanks man, this script is great.


 
Dec 28, 2007
Jordon Kalilich Script's author

On the new home page, you can set the box's placement. See the source code for options.


 
Dec 20, 2007
Jordon Kalilich Script's author

The birthdays should be sorted soonest first now.


 
Dec 19, 2007
Jordon Kalilich Script's author

The birthdays are supposed to be sorted soonest first, but it wouldn't surprise me if MySpace mixes it up. Fixing that would be annoying but possible.


 
Dec 18, 2007
jumper4000 Scriptwright

great script, but would it be possible to sort the birthdays?


 
Aug 6, 2007
InsaneNinja Scriptwright

well that didnt work out too well.. so i emailed it


 
Aug 6, 2007
InsaneNinja Scriptwright

// ==UserScript==
// @name          MySpace Birthdays on Homepage
// @namespace     http://www.theworldofstuff.com/greasemonkey/
// @author        Jordon Kalilich - www.TheWorldOfStuff.com
// @version       Version 1.0 - Aug 05, 2007
// @description   Lists your friends' upcoming birthdays on your homepage.
// @include       http://home.myspace.com/*fuseaction=user
// @include       http://home.myspace.com/*fuseaction=user&*
// ==/UserScript==

	// Setting the limit to 0 (zero) will list the full first page of birthdays

	var Birthday_List_Limit = 10;

//////////////////////////////////
// Do not edit below this line.
//////////////////////////////////

GM_xmlhttpRequest({
	method: 'GET',
	url: 'http://friends.myspace.com/index.cfm?fuseaction=user.birthdays',
	headers: {'User-Agent': 'Mozilla/4.0 (compatible) Greasemonkey'},
	onload: function(responseDetails) {

		var a = responseDetails.responseText.replace(/\t|\r|\n/g,'');

		if (/
<table>]* id="ctl00_cpMain_BirthdayList_dlBirthday"[^>]*>((.(?!<\/table>))*.)<\/table>/.exec(a)) ) { var bday_d = d.createElement('div'); bday_d.setAttribute('id','gm_birthdayContainer'); bday_d.innerHTML += '
Birthdays
'; bday_d.className = 'section'; var bday_t = d.createElement('table'); bday_t.setAttribute('class','cols'); bday_d.appendChild(bday_t); var s='#gm_birthdayContainer img { width: auto !important; max-height: 30px !important;}' + '#gm_birthdayContainer td { vertical-align:middle; width:auto; }' + '#gm_birthdayContainer .col1 { padding: 2px 4px!important; text-align: center; }' GM_addStyle(s); d.getElementById('home_bulletins').parentNode.insertBefore(bday_d,d.getElementById('home_bulletins').nextSibling); a=a[1] .replace(/<\/?tr[^>]*>/g,'') .replace(/\s*<td>.*?(
]*>)[^<]*<\/a>.*?(]*>]* alt="([^\"]*)"[^>]*><\/a>).*?([JFMASOND][a-z]{2} [0-9]{2}).*?<\/td>/g, '$4, '+t+'|gmbdy2|' +'<tr title="$3"><td class="col1">$2</td><td class="col2">$1$3</td><td class="col1"><nobr>$4</nobr></td></tr>|gmbdy|') .split('|gmbdy|'); while (i</td>


 
Aug 5, 2007
InsaneNinja Scriptwright

holy crap.. you reference the comment page for every name? the full name is in the alt tag of the image!

i was actually working on a script identical to this because i didn't notice it till just now. i'll finish the little bit of it thats left and send it to ya, you tell me what you think


 
Jul 31, 2007
Jordon Kalilich Script's author

Great, thanks. Looks like I forgot to change the default value to 5, but maybe I'll make it 0 (show all) because that's what I use.


 
Jul 31, 2007
Gasoline- Scriptwright


Works fine, in fact it displays all of the birthdays, which is even better.


 
Jul 7, 2007
Chris Bennet... User

You know what would be an awesome script? Is a customizable birthday wish that's auto commented to your friend on their birthday. Something generic like, "Hey Have a good one" (but that you can change by editing the script). It'd have to keep a log or something so it doesn't double comment if you log out and then back in later in the day. I dunno, just an idea


 
Jun 28, 2007
JamMasterClay User

haha ok thanks, i'll try to figure that out


 
Jun 28, 2007
Jordon Kalilich Script's author

It doesn't have an ID (I can fix that in future versions), but you can find it in other ways, such as searching within the text of every div with that same class.


 
Jun 28, 2007
JamMasterClay User

thanks for the tutorial. i did post all my questions in the form here, but haven't gotten any replies yet. I did however re-order the scripts so yours runs first, but I think i need the object's ID in order to move it, and i can't seem to find that.


You could comment on this script if you were logged in.