Last active
December 31, 2021 08:59
-
-
Save webuti/012b5e4a063dfde105c1e43efe0d67b1 to your computer and use it in GitHub Desktop.
WhatsApp Contacts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const moduleRaid=function(){return moduleRaid.mID=Math.random().toString(36).substring(7),moduleRaid.mObj={},fillModuleArray=function(){webpackChunkwhatsapp_web_client.push([[moduleRaid.mID],{},function(e){Object.keys(e.m).forEach(function(o){moduleRaid.mObj[o]=e(o)})}])},fillModuleArray(),get=function(e){return moduleRaid.mObj[e]},findModule=function(e){return results=[],modules=Object.keys(moduleRaid.mObj),modules.forEach(function(o){if(mod=moduleRaid.mObj[o],"undefined"!=typeof mod)if("string"==typeof e){if("object"==typeof mod.default)for(key in mod.default)key==e&&results.push(mod);for(key in mod)key==e&&results.push(mod)}else{if("function"!=typeof e)throw new TypeError("findModule can only find via string and function, "+typeof e+" was passed");e(mod)&&results.push(mod)}}),results},{modules:moduleRaid.mObj,constructors:moduleRaid.cArr,findModule:findModule,get:get}};"object"==typeof module&&module.exports?module.exports=moduleRaid:window.mR=moduleRaid(),window.Store=window.mR.findModule("Chat")[0].default;let contacts=[];function download(){var e="Name;DisplayName;Phone\n";contacts.forEach(function(o){e+=o.name+";"+o.displayName+";"+o.phone+"\n"});var o=document.createElement("a");o.href="data:text/csv;charset=utf-8,"+encodeURI("\ufeff"+e),o.target="_blank",o.download="people.csv",o.click()}Object.values(window.Store.Contact._index).forEach(e=>{contacts.push({name:e.name,displayName:e.pushname,phone:e.id.user})}),download(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
çalışmıyor sanırım artık.