At times in life, you feel weird that you don't want anyone in your life. You may sometimes feel like you want to block everyone in your life or with some exception. If you are in such a situation, then this post will help you to block all contacts on WhatsApp with a single script. Don't worry; I have also added a way to unblock them all.

To block all contacts on WhatsApp, you need a computer with you as we do this trick using WhatsApp Web. Thus, this method is not restricted for Android or iOS or Windows Phone. It works for all.

Steps to block all contacts on WhatsApp

  1. Make sure your phone is connected to the internet using mobile data or WiFi.

  2. Go to web.whatsapp.com from your computer and sign-in to your WhatsApp.

  3. Click on three vertical dot menu icon and choose Settings.

  4. Click on Blocked.

  5. Now right-click anywhere and choose Inspect Element.

  6. Press Esc key on your keyboard and paste the following code.

    var cl = document.getElementsByClassName('chat-body'); for(var i=0;i<cl.length;i++) cl[i].click(); Block all contacts on WhatsApp

  7. Press Enter to run the code.

Steps to unblock all contacts on WhatsApp

To unblock all contacts on WhatsApp, we need an additional browser extension, iMacros.

  1. Make sure you have logged into WhatsApp Web.

  2. Now click on three vertical dot icon and choose Settings.

  3. Click Blocked.

  4. Click on iMacros extension icon available on the top right corner of your Google Chrome.

  5. Right-click on #Current.iim and choose Edit Macro.

  6. Paste the following code.

    VERSION BUILD=8350307 RECORDER=CR URL GOTO="javascript:document.getElementsByClassName('chat-body')[0].click(); document.getElementsByClassName('popup-controls-item')[1].click();" WAIT SECONDS=1

  7. Save the file and close it.

  8. Enter some highest number on Max value on the iMacros window.

  9. Click on Play Loop to start unblocking all contacts on WhatsApp.

If you have any queries, please comment them below. You can also suggest tricks to us to experiment and post on this blog.

Links:

  1. iMacros Extension for Google Chrome