📜 ⬆️ ⬇️

Exporting birthdays from vk.com to Google Calendar

UPD: The script is outdated, it no longer works and is not supported. Try using newer ones, like this one .



Hello, dear habrasoobschestvu!
Today I want to share with you one, very useful, in my opinion, script. If you already understand everything from the picture to attract attention, here is a link .
')


I think many here, like me, have an account in the popular social network vkontakte. Whether you use it or not, love it or not, the matter is purely yours. However, it seems to me that everyone will agree that vkontakte is somehow useful. For example, I now know when my friends have a birthday (I like to make people happy, congratulating them on this holiday, but I have a very bad memory for dates). Despite the convenience of placing birthdays in one place, the VKontakte is clearly not going to miss the potential users of this function - there are no notifications about upcoming events, that is, to observe the events, you need to “be on Facebook. This restriction seems quite annoying, but for us, programmers, masters of information, such restrictions are only a task that is interesting to solve.

First, you should decide what you would like to receive as a result. For me it was a notification about upcoming events in the mail, and also, perhaps, viewing the list of events, which is always “at hand”. Since I am an active user of Google services, it was Google Calendar that was chosen as an alternative to the calendar in Contact.

Advantages of this solution:


Actually, the last item made it possible to transfer dates from to Contact to Google Calendar.

Immediately make a reservation, I initially did the script for myself and for myself. Therefore you should not blame me for the (possible) absence of cross-browser compatibility or something else. The script is essentially one-time, so, as it seems to me, those who really need can even install a “foreign” browser, greasemonkey, execute the script, delete and forget.

System recommendations


(on this configuration, the working capacity of the script was tested):


User's manual:




Remarks


I repeat, the script was written for myself. Initially, there was not even that primitive interface, which is now.
Intermediate file in iCal format. At least, Google understands it. This format was obtained by me by examining the sources of the calendar file exported from Google, and by removing some “unnecessary fields” from there. The file extension must be .ics, but this is not necessary for import.
In the body of the script you can find the jQuery library. Yes, I put it there completely.
The script can slow down the browser on weak machines.
I recommend to remove or disable the script after use, because the script is relatively heavy and is loaded for the entire domain vkontakte.ru.

Actually, everything. If you have any questions or suggestions, please.

upd
Solution from Putin for Chrome

Source: https://habr.com/ru/post/75966/


All Articles