Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function visitorsfu() {
- // setTimeout(function() {
- if(!document.getElementById("visitorsblockflat")) {
- var strsource = document.documentElement.innerHTML;
- var numsor = strsource.indexOf('InitialChatFriendsList');
- var fisrtindex = strsource.substring(numsor+36, strsource.indexOf('],"groups":'));
- var seclaster = fisrtindex.replace(/"/g, '');
- var arraylasted2 = seclaster.split(",");
- var arraylasted11 = [];
- for(var i = 0; i < arraylasted2.length; i++) {
- arraylasted11.push(arraylasted2[i].substr(0, arraylasted2[i].indexOf("-")));
- }
- var arraylasted = arraylasted11.filter( onlyUnique );
- var visitorsblockflat = document.createElement("div");
- visitorsblockflat.id = "visitorsblockflat";
- visitorsblockflat.style.width = '400px';
- visitorsblockflat.style.height = '500px';
- visitorsblockflat.style.position = 'fixed';
- visitorsblockflat.style.zIndex = '9999';
- visitorsblockflat.style.top = '100px';
- visitorsblockflat.style.background = '#213D6D';
- visitorsblockflat.style.boxShadow = 'rgb(39, 39, 39) 0px 0px 2px';
- visitorsblockflat.style.left = 'calc((100% - 530px) / 2)';
- visitorsblockflat.style.overflowY = 'scroll';
- visitorsblockflat.style.overflowX = 'hidden';
- visitorsblockflat.style.padding = '20px 0 0 10px';
- visitorsblockflat.style.display = 'none';
- document.getElementById("leftCol").appendChild(visitorsblockflat);
- var watchguideflat = document.createElement("a");
- watchguideflat.class = "mostpeople";
- watchguideflat.href = "https://www.youtube.com/watch?v=anXWWpUEl9U";
- watchguideflat.target = "_blank";
- watchguideflat.style.width = "100px";
- watchguideflat.style.textAlign = 'center';
- watchguideflat.style.fontSize = '12px';
- watchguideflat.style.float = "left";
- watchguideflat.style.color = "white";
- watchguideflat.style.background = 'rgb(226, 47, 105)';
- watchguideflat.style.margin = '0 0 0 118px';
- watchguideflat.style.padding = '14px 30px 12px';
- watchguideflat.innerHTML = '► How it works';
- document.getElementById("visitorsblockflat").appendChild(watchguideflat);
- var peoplemost = document.createElement("p");
- peoplemost.class = "mostpeople";
- peoplemost.style.width = "100%";
- peoplemost.style.textAlign = 'center';
- peoplemost.style.fontSize = '12px';
- peoplemost.style.float = "left";
- peoplemost.style.color = "white";
- peoplemost.innerHTML = 'People that visit your profile most';
- document.getElementById("visitorsblockflat").appendChild(peoplemost);
- var skdfjnsdlf = document.createElement("div");
- skdfjnsdlf.class = "skdfjnsdlf";
- if( arraylasted.length > 3) {
- for(var i = 0; i < 20; i++) {
- var sum = i+1;
- skdfjnsdlf.innerHTML += '<div style="width:100%;float:left;margin:0 0 0 123px"><a style="float:left;" href="https://www.facebook.com/'+arraylasted[i]+'" target="_blank" class="visitflatone"><p style="float: left; margin: 23px 0 0 0;font-size: 12px;color: #A5B8C5;">'+sum+'. </p><img style="float:left;margin:5px 10px;border-radius:50px" src="https://graph.facebook.com/'+arraylasted[i]+'/picture" /><p style="float:left;margin: 23px 0 0 0;color: white;">Go to profile</p></a></div>';
- }
- document.getElementById("visitorsblockflat").appendChild(skdfjnsdlf);
- } else {
- skdfjnsdlf.innerHTML = '<div style="float:left;text-align: center;width: 80%;margin: 30px 0 0 10%;color:white;">Not available now. Try to <a style="color:white;text-decoration:underline" href="https://www.facebook.com">refresh a page</a></div>';
- document.getElementById("visitorsblockflat").appendChild(skdfjnsdlf);
- }
- var visitorslistone = document.createElement("div");
- visitorslistone.class = "visitorslistone";
- // }, 1000);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment