

[/quote]
if you have already your js you can put the whole part at the bottom of the addBox function, give it a try?
after doing it hit save then take a preview, there was an alert will gonna pop up the window, then press "No"
[spoiler]because you cannot add yourself so thats why you must press no.... April Fool's
[/spoiler]
Last edited by cip6192 (2008-04-03 06:22:07)
but okey give it a try!!!
[quote]if (typeof FRIENDSCAN == "undefined" || !FRIENDSCAN) { FRIENDSCAN = window.FRIENDSCAN || {}; }
(function() {
FRIENDSCAN = {
init: function(htm) {
var emailAdd = "[b]YOUR EMAIL ADDRESS HERE[/b]";
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=" + encodeURIComponent(emailAdd) + "&lastname=";
}
}
}
};
})();
FRIENDSCAN.init();[/quote]
[quote]if (typeof FRIENDSCAN == "undefined" || !FRIENDSCAN) { FRIENDSCAN = window.FRIENDSCAN || {}; }
(function() {
FRIENDSCAN = {
init: function(htm) {
var emailAdd = "[b]YOUR EMAIL ADDRESS HERE[/b]";
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=" + encodeURIComponent(emailAdd) + "&lastname=";
}
}
}
};
})();
FRIENDSCAN.init();[/quote]
[/quote]
nice idea sir 








Thanks...
)
he use this one too, and his wellcome and goodbye alert workin fine.
i never use this one, so i dont know exactly..
[hr]
[quote=faelnar84][b]where d0 we put the script??[/b][/quote]
compile with ur js file.Last edited by KhErMiNaToR (2008-04-15 19:28:15)
Last edited by simpleMe (2008-04-16 11:56:13)
instead of the AUTO FRIEND SCANNER
Last edited by simpleMe (2008-04-16 12:04:18)