Comments by Richard Lainchbury on scripts

5 comments

Comment on:
Facebook to Google Calendar

Jul 23, 2007

@Wofl

Good idea, I will look at adding a app to do just that. And have your google calendar on your profile or something.

Comment on:
Facebook to Google Calendar

Jun 26, 2007

Ok that should all be fixed up now,
Changelog - version 2.1
Fixed new lines in the description
Fixed long descriptions of URL causing a 400 at google (should be 414, naughty google!)

Known Issues,
substring and replace cause firefox to crash, so I've had to use a few guesses about the content to restrict the lengths.

http://www.freexe.com/files/facebooktogooglecal...

Comment on:
Facebook to Google Calendar

Jun 19, 2007

Does the event have a really long description? I think I might need to trim the length of the description to stop that error

Comment on:
Facebook to Google Calendar

Jun 13, 2007
Ok, I've gone through your messy code and fixed it up. I've put some functions in and taken out the repeated code snippets, and also got rid of the xpath and replace it with a loop through the correct area of the dom. The look up and data collection are now done in one place. And I'm now escaping all the right charactors. I've made it work with Opera so if you don't mind can I send it in to http://userjs.org/? Not sure how the full day event stuff works, so I've left it out. And replacing
with %0A seems to crash firefox so I'm just using textContent instead. Enjoy! facebooktogooglecalendar.user.js

Comment on:
Facebook to Google Calendar

May 22, 2007

Remove the code at the bottom of the page from:

var sponsorbox;

Upto:
 })();

And put
var addtogcal = document.createElement("div");
var allLists = document.getElementsByTagName('UL');

addtogcal.innerHTML = '';
for(var i = 0; i < allLists.length; i++)
{
	if(allLists[i].className=='actionspro')
	{
		allLists[i].parentNode.insertBefore(addtogcal, allLists[i].nextSibling.nextSibling.nextSibling.nextSibling);
	}
}

In it's place, you can download the code from http://freexe.com/files/facebooktogcal.js until this one gets updated