Java code230 Bookmarklet

javascript:void%20function(){function%20t(){var%20t=%22%3Cstyle%3Ediv{margin:1em;display:inline-block;max-width:300px}img{object-fit:cover;width:300px;height:200px;}span{float:right;font-size:.85em}h3{padding:10px%205px;font-size:1em}h2{margin:2em;font-size:1.1em;line-height:1.4em}%3C/style%3E%22;for(var%20e%20in%20list)t+=action%3F'%3Cdiv%3E%3Cimg%20src=%22'+list[e].thumb.replace(%22t=s%22,%22t=l%22)+'%22%3E%3Ch3%3E'+list[e].name+%22%3Cspan%3E+%22+e+%22%3C/span%3E%3C/h3%3E%3C/div%3E%22:list[e].name+%22,%22+e+%22%3Cbr%3E%22;action%26%26(t+=%22%3Ch2%3EThe%20WhatsApp%20Address%20book%20was%20generated%20using%20%3Ca%20href='http://www.labnol.org/internet/whatsapp-contacts/28789/'%3Ethis%20bookmarklet%3C/a%3E.%20You%20can%20%3Ca%20href='http://www.labnol.org/software/save-web-page-as-pdf/21153/'%3Esave%20as%20PDF%3C/a%3E%20or%20export%20this%20list%20as%20a%20CSV%20file.%20%3Cem%3EWritten%20by%20%3Ca%20href='http://ctrlq.org/'%3EAmit%20Agarwal%3C/a%3E%3C/em%3E.%3C/h2%3E%22),$(%22body%22).html(t).css(%22padding%22,%2210px%22).css(%22overflow%22,%22visible%22)}function%20e(){$(%22div.chat%22).each(function(){var%20t=$(this).find(%22img.avatar-image.is-loaded%22),e=$(this).find(%22div.chat-title%22);if(t%26%26t[0]%26%26e%26%26e[0]){var%20a=t[0].src.match(/u=(\d*)/);a%26%26($(%22span.drawer-title-body%22).html(%22Extracting%20contacts%20%22+%22....%22.substring(Math.ceil(4*Math.random()))),list[a[1]]={thumb:t[0].src,name:e[0].innerText})}}),old=$(%22div.drawer-body%22).scrollTop(),$(%22div.drawer-body%22).scrollTop(old+72),old!=$(%22div.drawer-body%22).scrollTop()%3FsetTimeout(e,200):t()}var%20a=document.createElement(%22script%22);a.src=%22https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js%22,document.getElementsByTagName(%22head%22)[0].appendChild(a),action=!0,list={},old=-1,count=0,-1==old%26%26(document.getElementsByClassName(%22icon-chat%22)[0].click(),action=confirm(%22Press%20OK%20to%20create%20a%20photo%20address%20book%20or%20press%20Cancel%20to%20create%20a%20CSV%20file%20that%20you%20can%20later%20import%20into%20your%20Google%20contacts.%22),setTimeout(e,1e3))}();

Source (marklets.com)


Download Bookmarklet:


View Bookmarklet Code:

Bookmarklet Source Code:

javascript%3Avoid%2520function%28%29%7Bfunction%2520t%28%29%7Bvar%2520t%3D%2522%253Cstyle%253Ediv%7Bmargin%3A1em%3Bdisplay%3Ainline-block%3Bmax-width%3A300px%7Dimg%7Bobject-fit%3Acover%3Bwidth%3A300px%3Bheight%3A200px%3B%7Dspan%7Bfloat%3Aright%3Bfont-size%3A.85em%7Dh3%7Bpadding%3A10px%25205px%3Bfont-size%3A1em%7Dh2%7Bmargin%3A2em%3Bfont-size%3A1.1em%3Bline-height%3A1.4em%7D%253C/style%253E%2522%3Bfor%28var%2520e%2520in%2520list%29t+%3Daction%253F%27%253Cdiv%253E%253Cimg%2520src%3D%2522%27+list%5Be%5D.thumb.replace%28%2522t%3Ds%2522%2C%2522t%3Dl%2522%29+%27%2522%253E%253Ch3%253E%27+list%5Be%5D.name+%2522%253Cspan%253E+%2522+e+%2522%253C/span%253E%253C/h3%253E%253C/div%253E%2522%3Alist%5Be%5D.name+%2522%2C%2522+e+%2522%253Cbr%253E%2522%3Baction%2526%2526%28t+%3D%2522%253Ch2%253EThe%2520WhatsApp%2520Address%2520book%2520was%2520generated%2520using%2520%253Ca%2520href%3D%27http%3A//www.labnol.org/internet/whatsapp-contacts/28789/%27%253Ethis%2520bookmarklet%253C/a%253E.%2520You%2520can%2520%253Ca%2520href%3D%27http%3A//www.labnol.org/software/save-web-page-as-pdf/21153/%27%253Esave%2520as%2520PDF%253C/a%253E%2520or%2520export%2520this%2520list%2520as%2520a%2520CSV%2520file.%2520%253Cem%253EWritten%2520by%2520%253Ca%2520href%3D%27http%3A//ctrlq.org/%27%253EAmit%2520Agarwal%253C/a%253E%253C/em%253E.%253C/h2%253E%2522%29%2C%24%28%2522body%2522%29.html%28t%29.css%28%2522padding%2522%2C%252210px%2522%29.css%28%2522overflow%2522%2C%2522visible%2522%29%7Dfunction%2520e%28%29%7B%24%28%2522div.chat%2522%29.each%28function%28%29%7Bvar%2520t%3D%24%28this%29.find%28%2522img.avatar-image.is-loaded%2522%29%2Ce%3D%24%28this%29.find%28%2522div.chat-title%2522%29%3Bif%28t%2526%2526t%5B0%5D%2526%2526e%2526%2526e%5B0%5D%29%7Bvar%2520a%3Dt%5B0%5D.src.match%28/u%3D%28%5Cd*%29/%29%3Ba%2526%2526%28%24%28%2522span.drawer-title-body%2522%29.html%28%2522Extracting%2520contacts%2520%2522+%2522....%2522.substring%28Math.ceil%284*Math.random%28%29%29%29%29%2Clist%5Ba%5B1%5D%5D%3D%7Bthumb%3At%5B0%5D.src%2Cname%3Ae%5B0%5D.innerText%7D%29%7D%7D%29%2Cold%3D%24%28%2522div.drawer-body%2522%29.scrollTop%28%29%2C%24%28%2522div.drawer-body%2522%29.scrollTop%28old+72%29%2Cold%21%3D%24%28%2522div.drawer-body%2522%29.scrollTop%28%29%253FsetTimeout%28e%2C200%29%3At%28%29%7Dvar%2520a%3Ddocument.createElement%28%2522script%2522%29%3Ba.src%3D%2522https%3A//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js%2522%2Cdocument.getElementsByTagName%28%2522head%2522%29%5B0%5D.appendChild%28a%29%2Caction%3D%210%2Clist%3D%7B%7D%2Cold%3D-1%2Ccount%3D0%2C-1%3D%3Dold%2526%2526%28document.getElementsByClassName%28%2522icon-chat%2522%29%5B0%5D.click%28%29%2Caction%3Dconfirm%28%2522Press%2520OK%2520to%2520create%2520a%2520photo%2520address%2520book%2520or%2520press%2520Cancel%2520to%2520create%2520a%2520CSV%2520file%2520that%2520you%2520can%2520later%2520import%2520into%2520your%2520Google%2520contacts.%2522%29%2CsetTimeout%28e%2C1e3%29%29%7D%28%29%3B


Rate it:


Tags:

Comments

Comments so far. Add yours.