$(function(){
window.isMobile = /Mobile|webOS|BlackBerry|IEMobile|MeeGo|mini|Fennec|Windows Phone|Android|iP(ad|od|hone)/i.test(navigator.userAgent);
var WVvar = setInterval(function() {
if($('#whatsapp_button').length == 0) {
if (($(".user-phone-widget").length) & ($('.user-phone span[data-reactid=".0.1.1.0.0.2.5.2"]').text().length > 1)) {
var phone = $('.user-phone span[data-reactid=".0.1.1.0.0.2.5.2"]').text().replace(/\D+/g,'');
if(phone[0] == 3 && phone.length == 10) phone = "39"+phone;
if(phone[0] == 9 && phone.length == 10) phone = "7"+phone;
if(phone[0] == 8 && phone.length == 11) phone = "7"+phone.slice(1);
$('button[data-reactid=".0.1.1.0.0.2.b"]').after(`
Написать из приложения:
`);
}
}
},100);
});