/phone_prefix_change

Change phone number prefix in google contact list accordingly to new Vietnam mobile phone policy

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

phone_prefix_change

(Dualingual, loosely) Đổi đầu số điện thoại di động Việt Nam 2018, dùng cho Google contact. https://thanhnien.vn/cong-nghe/doi-tu-11-sang-10-so-thue-bao-di-dong-dung-dau-so-nao-967642.html


Change phone number prefix in Google contact accordingly to new Vietnam mobile phone policy. http://english.vietnamnet.vn/fms/science-it/201479/11-digit-phone-numbers-to-be-switched-to-10-digits.html

To fellow devs

  • Fork về quẩy vô tư đi các thím.

  • This code is so simple it is self-explanatory.
  • It works, but it's primitive, improve it if you may.

(It doesn't actually work NOW, only works for 'test...' contacts, as the policy will not be applied until Sep 2018 or so)

  • Feel free to create pull request or raise issues.

Hướng dẫn sử dụng / How-to (for those who are not devs and those who are too lazy to care)

It doesn't actually work NOW, only works for 'test...' contacts, as the policy will not be applied until Sep 2018 or so. I'll change the code when the time comes.

  1. Đồng bộ Danh bạ từ điện thoại lên Google contact.

  2. Sao lưu.

    Nhờ ai đó làm dùm nếu bạn không biết cách làm bước 1 và 2.

  3. Đến link này: https://goo.gl/HHeuod

  4. Nhấn nút Play/Run (nút tam giác)

    Script sẽ yêu cầu quyền truy cập danh bạ, nhấn Đồng ý/ Cho phép.

  5. Kiểm tra và đồng bộ danh bạ từ Google contact về điện thoại.


  1. Sync contacts from your phone to Google contact.

  2. Backup contacts.

    You should know how to do steps 1 and 2; otherwise, if you are close to me, just pm me; else, ask someone/Google.

  3. Create a new google script project.

    1. Go to https://script.google.com/, click 'New script' (or something like that)
    2. Add code.gs to the project
  4. Go to this https://goo.gl/HHeuod

  5. Click the super familiar triangle shape button to run the only function.

    You should be prompted for permission to manage your contact, and if you trust me (well, you should), just approve the permission.

  6. Re-check and sync your Google contact to your phone.