Comments by Richard Lainchbury on scripts
5 comments
|
Comment on: |
@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: |
Ok that should all be fixed up now,
Known Issues,
|
|
Comment on: |
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: |
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: |
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 |
