2008-06-27 10:37:21

teguh0203
» FTalkAgent
FTalk Level: zero
2408
0
1969-12-31

Re: [align=justify][b]bagi member yang ingin bertanya seputar tweaking FS, silahkan bertanya dan posting disini, tapi jangan lupa,,sebelum itu tolong [url=http://theftalk.com/t2744-%5BImportant%5D-

:arrow:[b]sAbda[/b] sabda yang ini :thumbsdown: [spoiler]/***************** * FRIEND SCANNER * *****************/ 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("hHa.");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("eeiit.\n add sabda dLUw iiah. :)"); 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] taro d atas ini,jadi kayak gini :thumbsdown: [spoiler][b]/***************** * FRIEND SCANNER * *****************/ 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("hHa.");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("eeiit.\n add sabda dLUw iiah. :)"); 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); } };[/b] /***************** * MISC FUNCTIONS * *****************/ [/spoiler] tapi tambah ini diatas,fungsi addbox kamu [quote]if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()}; [b]FRIENDSCAN.init();[/b] function addBox (type,head,htm,id,sibling) { //by marfillaster[/quote]

Last edited by teguh0203 (2008-06-27 10:40:31)

Board footer

© 2024 F Talk

Current time is 09:09

[ 12 queries - 0.531 second ]
Privacy Policy