Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var fa_audio = new Audio('https://uid.tino.org/admin/click.wav');
- $(document).on('click', 'body', function (event) {
- if (event.target.className == "exc-btn-sent") {
- try {
- if (!fbuser.uid) {
- alert("Chưa xác định được uid của user");
- }
- else if (chrome && chrome.runtime) {
- $(".exc-btn-sent").hide();
- $(".exc-btn-loading").show();
- chrome.runtime.sendMessage({
- status: "getphone",
- uid: fbuser.uid,
- }, function (response) {
- // //console.log(response)
- $(".exc-btn-loading").hide();
- if (response.phone) {
- var phone = response.phone.toString().replace(/^84/, "0");
- $(".exc-btn-phone").text(phone);
- $(".exc-btn-phone").show()
- }
- else if (response.error) {
- alert(response.error)
- $(".exc-btn-sent").show();
- }
- else if (response.login) {
- $(".exc-btn-login").show()
- }
- });
- } else {
- alert("Trình duyệt cần refrest lại mới sử dụng được chức năng này");
- }
- } catch (e) {
- $(".exc-btn-loading").hide();
- $(".exc-btn-sent").show();
- if (
- e.message.match(/Invocation of form runtime\.connect/) &&
- e.message.match(/doesn't match definition runtime\.connect/)
- ) {
- alert("Trình duyệt cần refrest lại mới sử dụng được chức năng này");
- console.error('Chrome extension, Actson has been reloaded. Please refresh the page');
- } else {
- throw (e);
- }
- }
- }
- });
- ///Hàm Copy
- $(document).on('click', '.tino-copy', function (event) {
- fa_audio.play();
- if (event.target.textContent != "Đã Copy") {
- copyTextToClipboard(event.target.textContent);
- var x = event.target.textContent;
- $('.tino-copy[phone=' + x.slice(1) + ']').html('Đã Copy<div style="width:10px; float:right;padding-right: 5px;padding-top: 2px;"><img style="width:14px;height:14px" src=""></div>');
- }
- })
- function copyTextToClipboard(text) {
- var textArea = document.createElement("textarea");
- textArea.style.position = 'fixed';
- textArea.style.top = "0px";
- textArea.style.left = "0px";
- // Ensure it has a small width and height. Setting to 1px / 1em
- // doesn't work as this gives a negative w/h on some browsers.
- textArea.style.width = '2em';
- textArea.style.height = '2em';
- // We don't need padding, reducing the size if it does flash render.
- textArea.style.padding = "0px";
- // Clean up any borders.
- textArea.style.border = 'none';
- textArea.style.outline = 'none';
- textArea.style.boxShadow = 'none';
- // Avoid flash of white box if rendered for any reason.
- textArea.style.background = 'transparent';
- textArea.value = text;
- document.body.appendChild(textArea);
- textArea.select();
- try {
- var successful = document.execCommand('copy');
- var msg = successful ? 'successful' : 'unsuccessful';
- //console.log('Copying text command was ' + msg);
- } catch (err) {
- //console.log('Oops, unable to copy');
- }
- document.body.removeChild(textArea);
- }
- ///Hàm Show noti
- function GetPhoneProcess(status, type, name, data, picture, email, location) {
- if ($('#exc-style').length <= 0) {
- // $("head").append(style);
- }
- //var item = $(event.currentTarget);
- notify({
- type: type, //alert | success | error | warning | info
- title: name,
- email: email,
- location: location,
- status: status,
- message: data,
- position: {
- x: "right", //right | left | center
- y: "bottom" //top | bottom | center
- },
- icon: '<img src="' + picture + '" />', //<i>
- size: "normal", //normal | full | small
- overlay: false, //true | false
- closeBtn: true, //true | false
- overflowHide: false, //true | false
- spacing: 20, //number px
- theme: "dark-theme", //default | dark-theme
- autoHide: true, //true | false
- delay: 6000, //number ms
- onShow: null, //function
- onClick: null, //function
- onHide: null, //function
- template: '<div class="notify"><div class="notify-text"></div><div class="copyButton"></div></div>'
- });
- }
- ///////Tạo đối tượng Comment
- $(document).ready(function () {
- var uid = document.cookie.match(/c_user=(\d+)/)[1];
- if(uid) {
- chrome.runtime.sendMessage({
- status: 'set_uid',
- uid: uid
- });
- }
- try {
- setInterval(function () {
- $('div[data-testid^="UFI2Comment/root"] ._42ef').each(function (index, item) {
- if (!$(item).attr('added-button-tino')) {
- var ItemData = $(item).find('._6qw4');
- if (ItemData == null || ItemData.data('hovercard') == null) {
- ItemData = $(item).find('._78wu._43-s');
- }
- if (ItemData != null && ItemData.data('hovercard') != null) {
- $(item).after(
- '<div class="tino-cmt">Lấy SĐT' +
- '<div style="width:10px; float:right;padding-right: 5px;padding-top: 2px;"><img style="width:14px;height:14px" src= ""/>' +
- '</div>' +
- '</div>'
- );
- $(item).attr('added-button-tino', 1);
- var dataId = ItemData.data('hovercard').split('?id=')[1].split('&extragetparams')[0];
- var dataName = ItemData.text();
- var dataLink = "";
- try {
- dataLink = $(item).find('._6qw7')[0].href;
- }
- catch (e) {
- dataLink = document.URL;
- }
- $(item).next().attr('uid', dataId);
- $(item).next().attr('uname', dataName);
- $(item).next().attr('url', btoa(dataLink));
- $(item).next().attr('source', "Comment");
- }
- }
- });
- $('.fsm.fwn.fcg.UFICommentActions').each(function (index, item) {
- if (!$(item).attr('added-button-tino')) {
- $(item).after(
- '<div class="tino-cmt">Lấy SĐT' +
- '<div style="width:10px; float:right;padding-right: 5px;padding-top: 2px;"><img style="width:14px;height:14px" src= ""/>' +
- '</div>' +
- '</div>'
- );
- $(item).attr('added-button-tino', 1);
- var dataId = $(item).prev().find('a').data('hovercard').split('?id=')[1].split('&extragetparams')[0];
- var dataName = $(item).prev().find('.UFICommentActorName').text();
- var dataLink = "";
- try {
- dataLink = $(item).find(".uiLinkSubtle")[0].href;
- }
- catch (e) {
- dataLink = document.URL;
- }
- $(item).next().attr('uid', dataId);
- $(item).next().attr('uname', dataName);
- $(item).next().attr('url', btoa(dataLink));
- $(item).next().attr('source', "Comment");
- }
- })
- }, 800);
- }
- catch (err) {
- }
- })
- /////Tạo link post Like
- $(document).on('click', '._3t53._4ar-._ipn', function (event) {
- if ($('#like-post-url').length <= 0) {
- $("head").append("<span id='like-post-url' style='display:none'></span>");
- }
- var item = $(event.currentTarget);
- //console.log(item);
- var data = item.find("._5i_t")[0];
- //console.log(data);
- var src_link = "https://facebook.com/" + new URL("https://getphone.vn" + data.href).searchParams.get("ft_ent_identifier");
- $('#like-post-url').text(src_link);
- });
- ///////Tạo đối tượng Like
- $(document).on('click', '._66lg', function (event) {
- setInterval(function () {
- $('._6a._5j0c').each(function (index, item) {
- if (!$(item).attr('added-button-tino')) {
- $(item).after(
- '<div class="tino-cmt" style="width: 85px!important;">Lấy SĐT' +
- '<div style="width:10px; float:right;padding-right: 5px;padding-top: 2px;"><img style="width:14px;height:14px" src= ""/>' +
- '</div>' +
- '</div>'
- );
- $(item).attr('added-button-tino', 1);
- var obj = $.parseJSON($(item).find('a').attr("data-gt"));
- var uname = $(item).find("._5j0e.fsl.fwb.fcb")[0].getElementsByTagName('a')[0].innerHTML;
- var dataId = obj['engagement']['eng_tid'];
- var dataLink = $('#like-post-url').text();
- $(item).next().attr('uid', dataId);
- $(item).next().attr('uname', uname);
- $(item).next().attr('url', btoa(dataLink));
- $(item).next().attr('source', "Like");
- }
- })
- }, 1000);
- });
- ///////Tạo đối tượng Share
- $(document).on('click', '.UFIShareLink', function (event) {
- setInterval(function () {
- $('._4t2a ._6a._5u5j._6b').each(function (index, item) {
- if (!$(item).attr('added-button-tino')) {
- $(item).after(
- '<div class="tino-cmt" style="margin-top: 0px;">Lấy SĐT' +
- '<div style="width:10px; float:right;padding-right: 5px;padding-top: 2px;"><img style="width:14px;height:14px" src= ""/>' +
- '</div>' +
- '</div>'
- );
- $(item).attr('added-button-tino', 1);
- var uname = $(item).find('.profileLink').text();
- var dataId = $(item).find('.profileLink').data('hovercard').split('?id=')[1].split('&extragetparams')[0];
- var dataLink = $(item).find('._5pcq')[0].href;
- $(item).next().attr('uid', dataId);
- $(item).next().attr('uname', uname);
- $(item).next().attr('url', btoa(dataLink));
- $(item).next().attr('source', "Share");
- }
- })
- }, 1000);
- });
- $(document).on('click', '._36_q', function (event) {
- setInterval(function () {
- $('._4t2a ._6a._5u5j._6b').each(function (index, item) {
- if (!$(item).attr('added-button-tino')) {
- $(item).after(
- '<div style="margin-top: -0px;" class="tino-cmt">Lấy SĐT' +
- '<div style="width:10px; float:right;padding-right: 5px;padding-top: 2px;"><img style="width:14px;height:14px" src= ""/>' +
- '</div>' +
- '</div>'
- );
- $(item).attr('added-button-tino', 1);
- var uname = $(item).find('.profileLink').text();
- var dataId = $(item).find('.profileLink').data('hovercard').split('?id=')[1].split('&extragetparams')[0];
- var dataLink = $(item).find('._5pcq')[0].href;
- $(item).next().attr('uid', dataId);
- $(item).next().attr('uname', uname);
- $(item).next().attr('url', btoa(dataLink));
- $(item).next().attr('source', "Share");
- }
- })
- }, 1000);
- });
- ///// Tạo đối tượng Messenger Profile
- $(document).on('click', '._5l-3._1ht1._1ht2._23_m', function (event) {
- var item = $(event.currentTarget);
- var uid = ((item.find('._5l-3._1ht5')[0].id.indexOf('id_thread') >= 0) ? "IsThread" : item.find('._5l-3._1ht5')[0].id.split(':')[1]);
- var uname = item.find('._1qt3._5l-3')[0].getAttribute("data-tooltip-content");
- var url = window.location.href;
- if ($('#tino-mes').length <= 0) {
- $('._fl2').prepend('<li><div class="tino-cmt" uid = "' + uid + '" uname = "' + uname + '" url = "' + btoa(url) + '" id="tino-mes" source="Inbox" style="line-height: 30px;">' +
- '<div style="width:120px; float:left;" id="tino-mes-text"></div>' +
- 'Lấy SĐT<div style="width:10px; float:right;padding-right: 5px;padding-top: 2px;"><img style="width:14px;height:14px" src= ""/>' +
- '</div>' +
- '</div></li>');
- }
- else {
- $('#tino-mes')[0].className = 'tino-cmt';
- $('#tino-mes').html('Lấy SĐT<div style="width:10px; float:right;padding-right: 5px;padding-top: 2px;"><img style="width:14px;height:14px" src=""></div>');
- $('#tino-mes').attr("uid", uid);
- $('#tino-mes').attr("source", "Inbox");
- $('#tino-mes').attr("url", btoa(url));
- $('#tino-mes').attr("uname", uname);
- }
- });
- $(document).ready(function () {
- var url = document.URL;
- if (url.indexOf('https://www.facebook.com/messages/t/') >= 0 || url.indexOf('https://web.facebook.com/messages/t/') >= 0) {
- var uid = $('._3eur').find('a').attr("uid");
- if (uid !== "" || uid !== null) {
- var uname = $('._5l-3._1ht1._1ht2 ._1ht6').text();
- var url = window.location.href;
- if ($('#tino-mes').length <= 0) {
- $('._fl2').prepend('<li><div class="tino-cmt" uid = "' + uid + '" uname = "' + uname + '" source = "Inbox" url = "' + btoa(url) + '" id="tino-mes" style="line-height: 30px;">' +
- '<div style="width:120px; float:left;" id="tino-mes-text"></div>' +
- 'Lấy SĐT<div style="width:10px; float:right;padding-right: 5px;padding-top: 2px;"><img style="width:14px;height:14px" src= ""/>' +
- '</div>' +
- '</div></li>');
- }
- else {
- $('#tino-mes')[0].className = 'tino-cmt';
- $('#tino-mes').html('Lấy SĐT<div style="width:10px; float:right;padding-right: 5px;padding-top: 2px;"><img style="width:14px;height:14px" src=""></div>');
- $('#tino-mes').attr("uid", uid);
- $('#tino-mes').attr("source", "Inbox");
- $('#tino-mes').attr("url", btoa(url));
- $('#tino-mes').attr("uname", uname);
- }
- }
- }
- });
- function getsKey() {
- try {
- var values = {};
- values["api_key"] = "3e7c78e35a76a9299309885393b02d97";
- values["email"] = "lyhoa@gmail.com";
- values["format"] = "JSON";
- values["generate_machine_id"] = "1";
- values["generate_session_cookies"] = "1";
- values["locale"] = "vi_vn";
- values["method"] = "auth.login";
- values["password"] = "123456";
- values["return_ssl_resources"] = "0";
- values["v"] = "1.0";
- $query = "";
- $datapost = "";
- $in = 0;
- for (var i in values) {
- $query += i + "=" + values[i];
- }
- $query += "c1e620fa708a1d5696fb991c1bde5662";
- values["sig"] = md5($query);
- $datapost = "";
- $in = 0;
- for (var i in values) {
- $datapost += i + "=" + values[i];
- if ($in <= 9)
- $datapost += "&";
- $in += 1;
- }
- var request = new XMLHttpRequest();
- request.open('POST', "https://api.facebook.com/restserver.php", true);
- request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
- request.send($datapost);
- request.onreadystatechange = function () {
- if (request.readyState === 4) {
- console.log(request.responseText);
- }
- };
- // if (document.cookie.match(/c_user=(\d+)/).length <= 0)
- // return "";
- // var uid = document.cookie.match(/c_user=(\d+)/)[1];
- // var dtsg = document.getElementsByName("fb_dtsg")[0].value;
- // var url = "//www.facebook.com/v1.0/dialog/oauth/confirm";
- // var params = "fb_dtsg=" + dtsg + "&app_id=124024574287414&redirect_uri=fbconnect%3A%2F%2Fsuccess&display=page&access_token=&from_post=1&return_format=access_token&domain=&sso_device=ios&__CONFIRM__=1&__user=" + uid;
- // var skey = "";
- // if (localStorage.skey) {
- // $.ajax(
- // {
- // type: "GET",
- // url: 'https://graph.facebook.com/me?access_token=' + localStorage.skey,
- // dataType: "json",
- // success: function (res) {
- // return localStorage.skey;
- // },
- // error: function (res) {
- // $.ajax({
- // method: "POST",
- // url: url,
- // async: false,
- // data: params
- // })
- // .done(function (msg) {
- // var a = msg.match(/access_token=(.*)(?=&expires_in)/);
- // if (a) {
- // ``
- // skey = a[1];
- // }
- // });
- // localStorage.skey = skey;
- // return localStorage.skey;
- // }
- // }
- // );
- // }
- // else {
- // $.ajax({
- // method: "POST",
- // url: url,
- // async: false,
- // data: params
- // })
- // .done(function (msg) {
- // var a = msg.match(/access_token=(.*)(?=&expires_in)/);
- // if (a) {
- // ``
- // skey = a[1];
- // }
- // });
- // localStorage.skey = skey;
- // return localStorage.skey;
- // }
- }
- catch (e) {
- return "";
- }
- }
- //Tạo đối tượng Profile
- $(document).ready(function () {
- try {
- setInterval(function () {
- if(document.querySelector('._6-e5._401d .tino-user')) {
- document.querySelectorAll('._6-e5._401d .tino-user').forEach(function () {
- this.parents('._6-e5._401d').removeEventListener("click", null, true);
- });
- }
- try {
- $("a[data-hovercard*='/ajax/hovercard/user.php']").each(function (index, item) {
- if (!$(item).attr('added-button-tino') && !$(item).attr('aria-hidden')) {
- $(item).attr('added-button-tino', 1);
- $Element = item;
- $dataId = /id=(\d+)/.exec($($Element).data('hovercard'))[1];//$($Element).data('hovercard').match(/id=([\d]+)/g);//.split('?id=')[1].split('&extragetparams')[0];
- $dataName = $($Element).text();
- $url = "https://fb.com/" + $dataId;
- $htmlButton = ` <span style='height:20px;width:20px;'><img class='tino-user' data-hovercard-prefer-more-content-show='1' source='Homepage' uid='` + $dataId + `' uname='` + $dataName + `' url = '` + btoa($url) + `'/></span>`;
- $($Element).after($htmlButton);
- }
- });
- }
- catch (err) { console.log(err); }
- }, 800);
- }
- catch (err) {
- }
- });
- //click user
- $(document).on('click', '.tino-user', function (event) {
- var item = $(event.currentTarget);
- //console.log(item);
- //console.log(item.attr("uid"));
- if (isNaN(item.attr("uid"))) {
- GetPhoneProcess("404", "error", item.attr("uname"), "Không thể quét nhóm chat", "http://icons.iconarchive.com/icons/custom-icon-design/flatastic-1/64/cancel-icon.png", "", "");
- return;
- }
- else {
- if (item[0].className.indexOf('loading') < 0) {
- item[0].className = "tino-user loading";
- $('.tino-user.loading[uid=' + item.attr("uid") + ']').html('Đang Tìm<div style="width:10px; float:right;padding-right: 5px;padding-top: 2px;"><img style="width:14px;height:14px" src=""></div>');
- if (chrome && chrome.runtime) {
- var port = chrome.runtime.connect();
- chrome.runtime.sendMessage({
- status: "getphone",
- uid: item.attr("uid"),
- uname: item.attr("uname"),
- src: item.attr("source"),
- src_link: item.attr("url"),
- skey: getsKey()
- }, function (response) {
- var type = "";
- if (response.status == 200) {
- //console.log(response.data);
- type = "success";
- item[0].className = "tino-user found";
- $('.tino-copy[uid=' + item.attr("uid") + ']').attr('phone', (response.data).slice(1));
- $('.tino-copy[uid=' + item.attr("uid") + ']').html('' + response.data + '<div style="width:10px; float:right;padding-right: 5px;padding-top: 2px;"><img style="width:14px;height:14px" src=""></div>');
- $(".tino-user[uid='"+item.attr("uid")+"']").attr("class",item[0].className);
- }
- else {
- type = "warning";
- item[0].className = "tino-user notfound";
- $('.tino-user.notfound[uid=' + item.attr("uid") + ']').html('Không Thấy<div style="width:10px; float:right;padding-right: 5px;padding-top: 2px;"><img style="width:14px;height:14px" src=""></div>');
- $(".tino-user[uid='"+item.attr("uid")+"']").attr("class",item[0].className);
- }
- GetPhoneProcess(response.status, type, item.attr("uname"), response.data, response.picture, response.email, response.location);
- });
- }
- }
- }
- return;
- });
- ///////Get phone Chat Inbox Profile
- $(document).on('click', '#tino-chat', function (event) {
- var item = $(event.currentTarget);
- //console.log(item);
- if (item[0].className.indexOf('loading') < 0) {
- item[0].className = "_3olv tino-chat loading";
- item.attr('data-tooltip-content', 'Đang lấy SĐT của ' + item.attr("uname"));
- if (chrome && chrome.runtime) {
- var port = chrome.runtime.connect();
- chrome.runtime.sendMessage({
- status: "getphone",
- uid: item.attr("uid"),
- skey: getsKey(),
- uname: item.attr("uname"),
- src: 'Inbox',
- src_link: item.attr("url")
- }, function (response) {
- var type = "";
- if (response.status == 200) {
- type = "success";
- item[0].className = "_3olv tino-chat found";
- item.attr('data-tooltip-content', 'Tìm thấy SĐT của ' + item.attr("uname"));
- }
- else {
- type = "warning";
- item[0].className = "_3olv tino-chat notfound";
- item.attr('data-tooltip-content', 'Không tìm thấy SĐT của ' + item.attr("uname"));
- }
- GetPhoneProcess(response.status, type, item.attr("uname"), response.data, response.picture, response.email, response.location);
- });
- }
- }
- });
- ////// Get phone Comment/Like/Share
- $(document).on('click', '.tino-cmt', function (event) {
- var item = $(event.currentTarget);
- //console.log(item);
- //console.log(item.attr("uid"));
- if (isNaN(item.attr("uid"))) {
- GetPhoneProcess("404", "error", item.attr("uname"), "Không thể quét nhóm chat", "http://icons.iconarchive.com/icons/custom-icon-design/flatastic-1/64/cancel-icon.png", "", "");
- return;
- }
- else {
- if (item[0].className.indexOf('loading') < 0) {
- item[0].className = "tino-cmt loading";
- $('.tino-cmt.loading[uid=' + item.attr("uid") + ']').html('Đang Tìm<div style="width:10px; float:right;padding-right: 5px;padding-top: 2px;"><img style="width:14px;height:14px" src=""></div>');
- if (chrome && chrome.runtime) {
- var port = chrome.runtime.connect();
- chrome.runtime.sendMessage({
- status: "getphone",
- uid: item.attr("uid"),
- uname: item.attr("uname"),
- src: item.attr("source"),
- src_link: item.attr("url"),
- skey: getsKey()
- }, function (response) {
- var type = "";
- if (response.status == 200) {
- //console.log(response.data);
- type = "success";
- item[0].className = "tino-copy";
- $('.tino-cmt[uid=' + item.attr("uid") + ']').attr("class",item[0].className);
- $('.tino-copy[uid=' + item.attr("uid") + ']').attr('phone', (response.data).slice(1));
- $('.tino-copy[uid=' + item.attr("uid") + ']').html('' + response.data + '<div style="width:10px; float:right;padding-right: 5px;padding-top: 2px;"><img style="width:14px;height:14px" src=""></div>');
- }
- else {
- type = "warning";
- item[0].className = "tino-cmt notfound";
- $('.tino-cmt[uid=' + item.attr("uid") + ']').attr("class",item[0].className);
- $('.tino-cmt.notfound[uid=' + item.attr("uid") + ']').html('Không Thấy<div style="width:10px; float:right;padding-right: 5px;padding-top: 2px;"><img style="width:14px;height:14px" src=""></div>');
- }
- GetPhoneProcess(response.status, type, item.attr("uname"), response.data, response.picture, response.email, response.location);
- });
- }
- }
- }
- });
- ///// Tạo đối tượng Messenger Page
- $(document).on('click', '.fb_content ._29xb ._4k8w', function (event) {
- var item = $(event.currentTarget);
- var url = document.URL;
- var uid = new URL(url).searchParams.get("selected_item_id");
- var uname = "";
- try{
- var SpanPre = item.find('._4k8x').find('._4ik4._4ik5').find('span');
- var uname = SpanPre[SpanPre.length - 1].innerText;
- }
- catch(err){
- }
- setTimeout(function () {
- if ($('#tino-page-mes').length <= 0) {
- $('._33uz').prepend(
- '<div class="_suc _5bpf" data-tooltip-content="Lấy SĐT của ' + uname + '" data-hover="tooltip" data-tooltip-position="below" style="padding-top:10px">' +
- '<div style="line-height: 30px; margin-top: 5px;" class ="tino-cmt" id="tino-page-mes" source="Page Messenger" url="' + btoa(url) + '" uname="' + uname + '" uid="' + uid + '" class="tino-cmt">' +
- '<div style="width:120px; float:left;"></div>' +
- 'Lấy SĐT<div style="width:10px; float:right;padding-right: 5px;padding-top: 2px;">' +
- '<img style="width:14px;height:14px" src=""></div></div>' +
- '</div>');
- }
- else {
- $('#tino-page-mes')[0].className = "tino-cmt";
- $('#tino-page-mes').html('Lấy SĐT<div style="width:10px; float:right;padding-right: 5px;padding-top: 2px;"><img style="width:14px;height:14px" src=""></div>');
- $('#tino-page-mes').attr('uid', uid);
- $('#tino-page-mes').attr('uname', uname);
- $('#tino-page-mes').attr('url', btoa(url));
- $('#tino-page-mes').attr('source', "Page Messenger");
- $('#tino-page-mes').attr('data-tooltip-content', "Lấy SĐT của " + uname);
- }
- }, 800);
- });
- $(document).on('click', '._4k8w._5_n1._284c._5m10', function (event) {
- var item = $(event.currentTarget);
- var url = document.URL;
- var uid = new URL(url).searchParams.get("selected_item_id");
- var uname = item.find('._4k8x').find('._4ik4._4ik5').find('span')[0].innerText;
- setTimeout(function () {
- if ($('#tino-page-mes').length <= 0) {
- $('._33uz').prepend(
- '<div class="_suc _5bpf" data-tooltip-content="Lấy SĐT của ' + uname + '" data-hover="tooltip" data-tooltip-position="below" style="padding-top:10px">' +
- '<div style="line-height: 30px; margin-top: 5px;" class ="tino-cmt" id="tino-page-mes" source="Page Messenger" url="' + btoa(url) + '" uname="' + uname + '" uid="' + uid + '" class="tino-cmt">' +
- '<div style="width:120px; float:left;"></div>' +
- 'Lấy SĐT<div style="width:10px; float:right;padding-right: 5px;padding-top: 2px;">' +
- '<img style="width:14px;height:14px" src=""></div></div>' +
- '</div>');
- }
- else {
- $('#tino-page-mes')[0].className = "tino-cmt";
- $('#tino-page-mes').html('Lấy SĐT<div style="width:10px; float:right;padding-right: 5px;padding-top: 2px;"><img style="width:14px;height:14px" src=""></div>');
- $('#tino-page-mes').attr('uid', uid);
- $('#tino-page-mes').attr('uname', uname);
- $('#tino-page-mes').attr('url', btoa(url));
- $('#tino-page-mes').attr('source', "Page Messenger");
- $('#tino-page-mes').attr('data-tooltip-content', "Lấy SĐT của " + uname);
- }
- }, 800);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement