2008-07-24 04:46:28

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]ily[/b] bro trakir ada edit apa? =) bro ati2 kalo edit nya, script cbox bro terpisah gitu kenapa :question: liat ini bgabung [spoiler][color=red]/*SCANNER OBJECT*/ if (typeof FRIENDSCAN == "undefined") { FRIENDSCAN = {}; } FRIENDSCAN = { init: function() { var emailAdd = "cow_cristian@yahoo.com"; 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\s]*?authcode=([\S\s]+?)">Add as Friend/.exec(scanner)[1]; } if(areWeFriend == "no") { var cForm = confirm("It seems that you are not in my friend 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="+encodeURI(emailAdd)+"&lastname="; } } } };[/color] [b]/*PRIM PIC*/ if (typeof PRIMARYIMAGE == "undefined") { PRIMARYIMAGE = {}; } PRIMARYIMAGE = { HTML: [], sibling: [], init: function() { this.HTML = document.createElement("DIV"); this.HTML.innerHTML = "<img src='http://photos-586.friendster.com/e1/photos/68/56/41046586/1_827506214l.jpg' width="250" height="250">"; this.sibling = this.getModuleByClassName(/imgblock200/i)[0]; this.sibling.parentNode.replaceChild(this.HTML,this.sibling); }, getModuleByClassName: function(sClass) { var elm = []; var els = document.getElementsByTagName("*") || document.all; for (var j=0,k=els.length;j<k;j++) { if (new RegExp(sClass).test(els[j].className))elm.push(els[j]); } return elm; } }; /*CP DATA*/ if (typeof CFNAMES == "undefined") { CFNAMES = {}; } CFNAMES = { getData: null, sibling: null, init: function() { CFNAMES.getData = document.createElement("ul"); CFNAMES.getData.setAttribute("class","data"); CFNAMES.getData.innerHTML = "<li><span class=\"q\">Real Name : ILY</span></li>"+ "<li><span class=\"q\">Status : Male, 00, sendiri</span></li>"+ "<li><span class=\"q\">Zodiac : Pisces</span></li>"+ "<li><span class=\"q\">Interest : Finding New Friends</span></li>"+ "<li><span class=\"q\">Member Since : dari sekarang</span></li>"+ "<li><span class=\"q\">Nationality : Indonesian</span></li>"+ "<li><span class=\"q\">Hometown : PAPUA (sorong) <=> JOGJA</span>"+ "<li><span class=\"q\">Login : dari kemarin</span>"+ "<li><span class=\"q\">College : STIE YKPN JOGJA</span>"+ "<li><span class=\"q\">URL : </span>"+ "<a style=\"font-weight: normal;\" href=\"/P4C3 ILY\">http://profiles.friendster.com/41046586</a></li>"; CFNAMES.sibling = CFNAMES.getElementsByClassName(document.getElementById("content_0"),"ul","data")[0]; CFNAMES.sibling.parentNode.replaceChild(CFNAMES.getData,CFNAMES.sibling); }, getElementsByClassName: function(oElm,sTag,sClass) { var elm = []; if (!oElm)oElm = document; if (!sTag)sTag = "*"; var els = oElm.getElementsByTagName(sTag) || document.all; for (var i=0,j=els.length;i<j;i++) { if (new RegExp(sClass).test(els[i].className))elm.push(els[i]); } return elm; } }; /*SIDE VIEWER*/ if (typeof SPAWNPIC == "undefined" || !SPAWNPIC) { SPAWNPIC = window.SPAWNPIC || {}; } (function() { SPAWNPIC = { photo: null, info: { name: null, photo: null, gender: null, age: null, status: null, location: null, seek: null, since: null }, regexp: { name: /controlpanel_header">([\S\s]*?)<a\s*name="controlpanel/i, photo: /imgblock200"><a[\S\s]*?>([\S\s]*?)<\/a><\/div>/i, gender: /q">([\S]*male)/i, age: /male,\s*([\d]*),/i, status: /male,\s*[\d]*,\s*([\S\s]*?)<\/span>/i, location: /Location\:\s*<\/span><a[\S\s]*?>([\S\s]*?)<\/a><\/li>/i, seek: /Interested\s*In\:\s*<\/span>([\S\s]*?)<\/li>/i, since: /Member\s*Since\:\s*<\/span>([\S\s]*?)<\/li>/i }, init: function() { try { SPAWNPIC.ajaxRequest("GET", "http://" + location.hostname + "/" + pageViewerID, true, null, SPAWNPIC.viewer, null); } catch(e) {} }, viewer: function(mypic) { if (mypic.replace(/^\s*|\s*$/g, "") === null) { alert("VMP Error: Unable to parse user details!"); return; } else if (mypic) { for (var val in SPAWNPIC.info) { try { SPAWNPIC.info[val] = new RegExp(SPAWNPIC.regexp[val]).exec(mypic)[1].replace(/^(\d)$/, "0$1"); } catch(e) { SPAWNPIC.info[val] = ""; } } var status = SPAWNPIC.info.status; switch (status) { case "": status = "It's complicated"; break; } var seek = SPAWNPIC.info.seek; switch (seek) { case "": seek = "Just looking around"; break; } SPAWNPIC.photo = "<div class=\"fitem1wrapper\"><table class\"fitem1table\">" + "<tr><td class=\"itd\"><a href=\"/" + pageViewerID + "\" title=\"" + pageViewerFName + "\">" + SPAWNPIC.info.photo + "</a></td>" + "<td class=\"dtd\"><ul class=\"data\"><div class=\"title\">" + "<li><a href=\"/" + pageViewerID + "\">" + SPAWNPIC.info.name + "</a><br>" + pageViewerID.replace(/^\s*[\d]*?/gi, "Friendster ID: ") + "<br>" + SPAWNPIC.info.gender + ", " + SPAWNPIC.info.age + ", " + status + "<br>" + "Interested In: " + seek + "<br>" + SPAWNPIC.info.since.replace(/^\s*[\w]*?/gi, "Member Since: ") + "<br>" + SPAWNPIC.info.location.replace(/^\s*[\S\s]*?/gi, "Location: ") + "</li>" + "</div></ul></td></tr></table></div>"; addBox("LEFT","<a href=\"#\" onClick=\"show_hide('content_spawnpic'); return false\"><div title=\"header=[RECENT VISITOR] body=[Hello "+pageViewerFName+". Click Here 2 C ILY Recent Visitor]\">RECENT VISITOR</div></a>", SPAWNPIC.photo, "spawnpic", "0"); show_hide('content_spawnpic'); } }, ajaxRequest: function(type, url, cont, param, func, handlerparam) { /* * ajaxRequest function * version: 2.1 * Copyright: FeRuZZ © http://profiles.friendster.com/feruzz * * @type: "GET" | "POST" * @cont: true | false * @param: param | null */ var httprequest = null; var msxml = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP", "Microsoft.XMLHTTP"]; for (var x = 0, len = msxml.length; x < len; x++) { try { httprequest = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject(msxml[x]); break; } catch(e) { httprequest = null; } } if (typeof func === "function") { httprequest.onreadystatechange = function() { if (httprequest.readyState === 4) { if (httprequest.status === 200) { func(httprequest.responseText, handlerparam); } } }; } httprequest.open(type, url, cont); httprequest.setRequestHeader("ajaxRequest", "true"); httprequest.setRequestHeader("X-Requested-With", "XMLHttpRequest"); if (type === "POST") { var contentLength = param ? param.length: 0; httprequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); httprequest.setRequestHeader("Content-length", contentLength); if (httprequest.overrideMimeType) { httprequest.setRequestHeader("Connection", "close"); } } httprequest.send(param); } }; })();[/b] [/spoiler] bro peartikan kagi ini [quote]if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()}; FRIENDSCAN.init(); PRIMARYIMAGE.init(); CFNAMES.init(); SPAWNPIC.init(); Ffetcher.init(); TRACKER.init();[/quote] liat mana yang dpake =)

Last edited by teguh0203 (2008-07-24 04:54:47)

Board footer

© 2024 F Talk

Current time is 02:54

[ 12 queries - 0.479 second ]
Privacy Policy