The code is written using the Polish language, because the script searches for actual Polish words in the Google Contacts import, but just so you know what it does I've prepared a quick summary:
Fixes bad imports from Mozilla Thunderbird into Google Contacts.
It opens https://contacts.google.com/?hl=pl&tab=mC. Edits the contact, searches for the phrase "Podstawowy email: ", whatever comes next becomes the e-mail and gets saved in the correct place.
Naprawia popsuty import z Mozilli Thunderbird do Google Kontaktów.
Otwiera https://contacts.google.com/?hl=pl&tab=mC. Następnie edytuje kontakt, w opisie szuka frazy "Podstawowy email: ", traktuje to, co po tym następuje jako e-mail i zapisuje go w prawidłowym polu.