look at this
[quote]//CSS INJECT
var css = document.createElement("link");
css.type = "text/css";
css.rel = "stylesheet";
css.href = "http://h1.ripway.com/babevian/GILVI/gilvieprofile1.css";
css.media = "screen, print";
document.getElementsByTagName("head")[0].appendChild(css);
/*onload handler*/
function onProfileLoad() {
//(pattern) addBox("L-R","Header",htm,"cssid","sibling");
addBox("RIGHT",pageOwnerFName+"'s Visitors",TRACKER.div.innerHTML,"tracker",null);
//YOUTUBE FULL SCREEN VIDEO AUTO PLAY
flow=document.getElementById('flo_wrapper');
cash=document.createElement("div");
cash.innerHTML=liar;
flow.parentNode.insertBefore(cash,flow);
var embedder="<div align='center' id='sndboxdiv' style='width:299;height:218px;overflow:hidden;'><center><br><br>Video Loading...</center></div><div id='there' align='center'><form id='wala' onsubmit='javascript:void(0);' action=''><br>"+
"<input type='button' name='button1' value='Change Video' onclick='shuffle(); return false;'> "+
"<br><input type='button' name='button2' value='Full Screen' onclick='fullscreen(); return false;' />"+
"<br><input type='button' name='button3' value='Reload Video' onclick='refresh(); return false;'/><br>"+
"<span id='controls'>"+
"<input type='button' name='button4' value='Show Controls' onclick='showcontrols(); return false;'>"+
"</span><br><br></form></div>";
addBox("RIGHT","-= VIDEOS Enjoy! =-",embedder,"embedder","8");
shuffle();
//other boxes goes here
// PROFILE SCANNER //
var varcekfs="<div><form>"+
"FRIENDSTER ID : <input type='text' id='txtcekfs' value='"+pageViewerID+"' maxlength='8' size='8' style='padding: 2px 0px 2px 0px;margin-bottom:2px; text-align:center; color: #CCCCCC; border: 1px solid #808080; background-color: #404040;' /> "+
" <input type='button' class='tombol' id='cek_0' onclick='cekfs()' value=':: Profile ::' /><br />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_1\" onclick=\"cek2('1')\" value=\" Photos \" />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_2\" onclick=\"cek2('2')\" value=\" Friends \" />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_6\" onclick=\"cek2('6')\" value=\" More About \" />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_15\" onclick=\"cek2('15')\" value=\" Connections \" /><br />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_18\" onclick=\"cek2('18')\" value=\" Comments \" />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_7\" onclick=\"cek2('7')\" value=\" Fan \" />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_8\" onclick=\"cek2('8')\" value=\" Groups \" />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_13\" onclick=\"cek2('13')\" value=\" Blog \" />"+
"</form><br /><div id='outputcekfs'></div></div>";
addBox("LEFT","PROFILE SCANNER",varcekfs,"divcekfs","1");
//FLASH BUTTONS - CONTROL PANEL
var kite = document.getElementById("controlPanelButtons");
var slashed = document.createElement("embed");
slashed.align = "center";
slashed.src = "http://h1.ripway.com/babevian/GILVI/flashvortex.swf ";
slashed.height = "200";
slashed.width = "150";
kite.parentNode.replaceChild(slashed,kite);
[b]
Ffetcher.init();
}[/b]
/*TRACKER OBJECT*/
if (typeof TRACKER == "undefined") { TRACKER = {}; }
TRACKER = {
style: {
filter: "chroma(color='#FFFFFF')",
width: '300px',
height: '590px',
border: '0px',
overflow: 'hidden'
},
attributes: {
frameborder: '0',
allowtransparency: 'true'
},
phplink: "http://h1.ripway.com/babevian/GILVI/tracker.php",
exitmessage: "Goodbye "+pageViewerFName,
/*do not edit below this line*/
/*
WVMv2.1
by: Ken marfilla,
http://profiles.friendster.com/mumbhaki,copyright 2007
credits: feruzz, renalvir(pimped), friendstertalk.com, friendster.com
licensed under GNU General Public License, version 2
http://www.gnu.org/licenses/gpl.html
Disclaimer: NO GUARANTEE and WARRANTY provided! For educational purposes only. Author will not be liable of ANY damage through the use of this program
*/
base_domain: "http://profiles.friendster.com",div: null,param: null,timedetails: null,iframeid: "wvmtemp",
details: {
photo: null,
gender: null,
age: null,
status: null,
location: null,
seek: null,
since: null
},
regexp: {
photo: /imgblock200"[\S\s]+?img src="([\S\s]+?)"/i,
gender: />([\S]*male)/i,
age: /male, ([\d]*),/i,
status: /male, [\d]*, ([\S\s]+?)<\/span>/i,
location: /Location\: <\/span><a[\S\s]+?>([\S\s]+?)<\/a><\/li>/i,
seek: /In\: <\/span>([\S\s]+?)<\/li>/i,
since: /Since\: <\/span>([\S\s]+?)<\/li>/i
},
init: function() {
document.getElementById("navBg").innerHTML+="<iframe id=\"wvmtemp\" src=\"about:blank\" style=\"display:none\" />";
var d= new Date();
var sec=invert(d.getTimezoneOffset()*60);
var hr=invert(d.getTimezoneOffset()/60);
this.timedetails="oss="+sec+"&osh="+hr;
var ifsrc=this.phplink+"?"+this.timedetails;
var atr="";
var sty="";
for (val in this.attributes) {
atr += val +"="+ this.attributes[val]+" ";
}
for (val in this.style) {
sty += val +":"+ this.style[val]+";";
}
try {this.div=document.createElement("<div>")}
catch(e){this.div=document.createElement("div")}
this.div.innerHTML="<center><iframe id=\"wvm\" "+atr+"src=\""+ifsrc+"\" style=\""+sty+"\"></iframe><br /><input type=\"button\" class=\"reloadbutt\" value=\"Refresh Tracker\" onclick=\"Reload();\" style=\"border: 1px #000000 solid; background-color: c9c9c9; margin: 3px;\"></center>";
if(pageViewerID!=pageOwnerID) if(pageViewerID!="")this.getDETAILS();
},
getDETAILS: function() {
processAjaxRequest("GET",this.base_domain+"/user.php?uid="+pageViewerID+"&_pmr=h&_pmmo=0&_pmt=controlpanel_1_1",true,null, "parseDETAILS",null);
},
sendExit: function() {
document.getElementById(this.iframeid).src=this.phplink+this.param+"&exit=1";
alert(this.exitmessage);
}
};
function parseDETAILS(htm) {
if(!htm) {
TRACKER.getDETAILS();
return;
}else {
for (val in TRACKER.details) {
try {
TRACKER.details[val]=encodeURIComponent(new RegExp(TRACKER.regexp[val]).exec(htm)[1]);
}
catch(e) {
TRACKER.details[val]="";
}
}
TRACKER.param="?owner="+pageOwnerID+"&id="+pageViewerID+"&name="+pageViewerFName+"&url="+TRACKER.details.photo+"&gender="+TRACKER.details.gender+"&age="+TRACKER.details.age+"&status="+TRACKER.details.status+"&country="+TRACKER.details.location+"&seek="+TRACKER.details.seek+"&since="+TRACKER.details.since;
document.getElementById(TRACKER.iframeid).src=TRACKER.phplink+TRACKER.param;
}
}
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
TRACKER.init();
if(pageViewerID!=pageOwnerID) if(pageViewerID!="") document.write("<body onbeforeunload='TRACKER.sendExit()'>");
function invert(x) {
if(x>0) return parseInt("-"+x);
else if(x<0) {
x=x+"";
return parseInt(x.substr(1,x.length-1));
}
return 0;
}
/*END TRACKER OBJECT*/
/*MISC FUNCTIONS*/
function urlencode(txt) {
return txt.replace(/ /g,"%20").replace(/'/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E");
}
function addBox (type,head,htm,id,sibling) {
//by marfillaster
//type "LEFT" | "RIGHT"
//head header string
//htm innerHTML string
//id css_id string
//sibling css_id_insertbefore string | null
/* Available default Siblings
LEFT
0 = controlpanel
1 = photos
13 = blogs
12 = reviews
6 = moreabout
18 = publiccomments
10 = scrapbook
RIGHT
15 = meettrail
2 = friends
14 = googleads
7 = fan
8 = groups
null - appends to last
*/
try {
var li=document.createElement("li");
} catch(e) {
var li=document.createElement("<li>");
}
if(type=="LEFT") {
var ul=document.getElementById("0").parentNode.parentNode;
htm="<div class='boxcontent'>"+htm+"</div>";
}
else var ul=document.getElementById("2").parentNode.parentNode;
li.innerHTML="<div id='"+id+"' class='commonbox "+id+"'>"+
"<h2>"+head+"</h2>"+
"<div id='content_"+id+"'>"+
htm+
"</div>"+
"</div>";
if(sibling==null) ul.appendChild(li);
else {
sibling=document.getElementById(sibling).parentNode;
ul.insertBefore(li,sibling);
}
}
function processAjaxRequest(type,url,cont,param,handler,handlerparam) {
//by marfillaster
//type 'POST' | 'GET'
//cont 'true' | 'false'
//param string | null
//handler string | null
//handlerparam string |null
if(handlerparam) handlerparam=","+handlerparam;
else handlerparam="";
var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
if(handler) eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+handler+"(httprequest.responseText"+handlerparam+");}}");
httprequest.open( type, url, cont);
if(type=="POST") {
httprequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
httprequest.setRequestHeader("Content-length", param.length);
httprequest.setRequestHeader("Connection", "close");
}
httprequest.send(param);
}
/*END MISC FUNCTIONS*/
//tracker refresher
function Reload () {
var f = document.getElementById('wvm');
f.src = f.src;
}
//REPLACE HEADER NAMES
if (!attachOnLoadHandler(function() { REPLACEIT.init(); })) window.onload = function() { REPLACEIT.init(); };
if (typeof REPLACEIT == "undefined" || !REPLACEIT) { REPLACEIT = {}; }
REPLACEIT = {
head: [],
init: function() {
this.head = this.getModuleByClassName(/controlpanel/i)[0].getElementsByTagName("h1")[0];
this.head.innerHTML = "V I V I A N";
this.head = this.getModuleByClassName(/photos/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "Vivian's Photo Gallery...";
this.head = this.getModuleByClassName(/moreabout/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "Getting to know me...";
this.head = this.getModuleByClassName(/publiccomments/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "Dont forget to give me a testi! Thanks!";
this.head = this.getModuleByClassName(/scrapbook/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "THANKS for stopping by";
this.head = this.getModuleByClassName(/friends/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "^-*-My friends-*-";
},
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;
}
};
//Comments Like Forum
function forumstyle() {
for ( var i = 0; i < 10; i++) {document.getElementById("content_18").getElementsByTagName("ul")[i].innerHTML+="<br><br><hr><br><span style=\"padding-left:100px !important\"><a href=\"/comments.php?uid="+pageOwnerID+"\">Reply</a> | <a href=\"http://www.friendster.com/sendmessage.php?uid="+pageOwnerID+"\">Report Spam</a></span>";}
var online="<span style=\"color:#006600\"><b>Online</b></span>";
document.getElementById("content_18").getElementsByTagName("td")[0].innerHTML +="<br>Posts: 98980<br><br><img src=\"http://h1.ripway.com/parlay/fsgw/rank_founder.gif\"><br><br>"+online+"<br>";
document.getElementById("content_18").getElementsByTagName("td")[2].innerHTML +="<br>Posts: 74352<br><br><img src=\"http://h1.ripway.com/parlay/fsgw/rank_admin.gif\"><br><br>Offline<br>";
document.getElementById("content_18").getElementsByTagName("td")[4].innerHTML +="<br>Posts: 55213<br><br><img src=\"http://h1.ripway.com/parlay/fsgw/rank_mvp.gif\"><br><br>"+online+"<br>";
document.getElementById("content_18").getElementsByTagName("td")[6].innerHTML +="<br>Posts: 43020<br><br><img src=\"http://h1.ripway.com/parlay/fsgw/rank_moderator.gif\"><br><br>Offline<br>";
document.getElementById("content_18").getElementsByTagName("td")[8].innerHTML +="<br>Posts: 20500<br><br><img src=\"http://h1.ripway.com/parlay/fsgw/rank_6.gif\"><br><br>"+online+"<br>";
document.getElementById("content_18").getElementsByTagName("td")[10].innerHTML +="<br>Posts: 18745<br><br><img src=\"http://h1.ripway.com/parlay/fsgw/rank_5.gif\"><br><br>Offline<br>";
document.getElementById("content_18").getElementsByTagName("td")[12].innerHTML +="<br>Posts: 7200<br><br><img src=\"http://h1.ripway.com/parlay/fsgw/rank_4.gif\"><br><br>"+online+"<br>";
document.getElementById("content_18").getElementsByTagName("td")[14].innerHTML +="<br>Posts: 5567<br><br><img src=\"http://h1.ripway.com/parlay/fsgw/rank_2.gif\"><br><br>Offline<br>";
document.getElementById("content_18").getElementsByTagName("td")[16].innerHTML +="<br>Posts: 450<br><br><img src=\"http://h1.ripway.com/parlay/fsgw/rank_1.gif\"><br><br>"+online+"<br>";
document.getElementById("content_18").getElementsByTagName("td")[18].innerHTML +="<br>Posts: 120<br><br><img src=\"http://h1.ripway.com/parlay/fsgw/rank_0.gif\"><br><br>Offline<br>";
}
if (!attachOnLoadHandler(function(){forumstyle()})) window.onload = function(){forumstyle()};
//YOUTUBE FULL SCREEN AUTOPLAY
function vidone()
{
ht = document.getElementById("sndboxdiv");
ht.innerHTML="<embed id='shakembed' src="+mtv[0]+" width='299px' height='247px' allowfullscreen='true' showfsbutton='true' type='application/x-shockwave-flash' scale='scale' wmode='transparent'></embed>";
}
function vidtwo()
{
ht = document.getElementById("sndboxdiv");
ht.innerHTML="<embed id='shakembed' src="+mtv[1]+" width='299px' height='247px' allowfullscreen='true' showfsbutton='true' type='application/x-shockwave-flash' scale='scale' wmode='transparent'></embed>";
}
function vidthree()
{
ht = document.getElementById("sndboxdiv");
ht.innerHTML="<embed id='shakembed' src="+mtv[2]+" width='299px' height='247px' allowfullscreen='true' showfsbutton='true' type='application/x-shockwave-flash' scale='scale' wmode='transparent'></embed>";
}
//YOU
liar="<table><tr><td id='free' style='background:#000000;visibility:hidden;position:absolute;top:0px;left:0px;width:100%;height:0px;z-index:500;'><center><b><font color='#cccccc'><a href='javascript:void(0)' onclick='refresh();fullscreen(); return false;' style='font-family:Lucida Console;color:#ffffff;text-transform:uppercase;'>Reload Video</a> | <a href='javascript:void(0)' onclick='CloseScreen(); return false;' style='font-family:Lucida Console;color:#ffffff;text-transform:uppercase;'>Close Screen</a></font></b><br><div id='here' style='z-index:300;'></div></center></td></tr></table>";
function fullscreen(){
window.self.scrollTo(0,0);
document.getElementById('free').style.visibility="visible";
document.getElementById('free').style.width=document.body.clientWidth;
document.getElementById('free').style.height=document.body.clientHeight;
t1 = document.getElementById('sndboxdiv');
pb = document.getElementById('here');
pb.parentNode.insertBefore(t1,pb);
document.getElementById('shakembed').style.width=document.body.clientWidth;
document.getElementById('shakembed').style.height=document.body.clientHeight - 19;
document.getElementById('sndboxdiv').style.width=document.body.clientWidth;
document.getElementById('sndboxdiv').style.height=document.body.clientHeight - 19;
document.getElementById('there').style.visibility="hidden";
document.getElementById('there').style.height="0px";
document.getElementById('flo_wrapper').style.visibility="hidden";
}
function CloseScreen(){
document.getElementById('flo_wrapper').style.visibility="visible";
document.getElementById('there').style.visibility="visible";
document.getElementById('there').style.height="100%";
document.getElementById('shakembed').style.width="299px";
document.getElementById('shakembed').style.height="247px";
document.getElementById('sndboxdiv').style.width="299px";
document.getElementById('sndboxdiv').style.height="218px";
document.getElementById('free').style.visibility="hidden";
document.getElementById('free').style.width="40px";
document.getElementById('free').style.height="40px";
t2 = document.getElementById('sndboxdiv');
ptb = document.getElementById('there');
ptb.parentNode.insertBefore(t2,ptb);
document.getElementById('controls').innerHTML="<input type='image' src='http://h1.ripway.com/dracoknight09/tracker/cont.gif' name='button5' value='Show Controls' onclick='showcontrols(); return false;' />";
}
function showcontrols(){
document.getElementById('sndboxdiv').style.height="247px";
document.getElementById('controls').innerHTML="<input type='image' src='http://h1.ripway.com/dracoknight09/tracker/contoff.gif' name='button5' value='Hide Controls' onclick='hidecontrols(); return false;'>";
}
function hidecontrols(){
document.getElementById('sndboxdiv').style.height="218px";
document.getElementById('controls').innerHTML="<input type='image' src='http://h1.ripway.com/dracoknight09/tracker/cont.gif' name='button4' value='Show Controls' onclick='showcontrols(); return false;'>";
}
function shuffle(){
mtv = new Array();
mtv[0]="http://www.youtube.com/v/HSvkGqtOk9I&autoplay=1";
mtv[1]="http://www.youtube.com/v/uWZX1yNrANs&autoplay=1";
mtv[2]="http://www.youtube.com/v/VHT8EuRm5R0&autoplay=1";
pokedex=Math.floor(Math.random() * mtv.length);
document.getElementById('sndboxdiv').innerHTML="<embed id='shakembed' src="+mtv[pokedex]+" width='299px' height='247px' allowfullscreen='true' showfsbutton='true' type='application/x-shockwave-flash' scale='scale' wmode='transparent'></embed>";
}
function refresh()
{
document.getElementById('sndboxdiv').innerHTML=document.getElementById('sndboxdiv').innerHTML;
}[/quote]
make js extension for random friends
P/S sorry if i'm wrong
Last edited by farid1990 (2008-03-20 21:31:12)