Well I'm back to my business 
since I've decided to move from Filster
to Myspace ![]()
nothing special about this trick
Its similar to my work in Filster lol 
Preview
My Profile (log-in your myspace account to see the effect
)
no innerHTML has been applied in this trick 
I'll post many tricks if Myspace didnt filter the linker because they are better than Filster in that case
![]()
the code
if (typeof VIEWERPIC == "undefined" || ! VIEWERPIC)
{VIEWERPIC = window.VIEWERPIC || {};
}
(function()
{VIEWERPIC = { // private property
photo: null,
info: {photo: null},
regexp: {photo: /ctl00_Main_ctl00_UserBasicInformation1_hlDefaultImage"[\S\s]*?src="([\S]*?)"/i},
init: function()
{ if (MySpace.ClientContext.IsLoggedIn !== false)
{try
{VIEWERPIC.ajaxRequest("GET", "http://" + location.hostname +
"/index.cfm?fuseaction=user.viewprofile&friendid=" + MySpace.ClientContext.UserId, true, null,
VIEWERPIC.viewer, null);
}
catch (e){}
}
}
,
viewer: function(htm)
{if (htm.replace( /^\s*|\s*$/g, "") === "")
{alert("ERROR: Empty xmlresponse! \n Unable to parse your details!");
return;
}
else if (htm)
{try
{VIEWERPIC.info.photo = new RegExp(VIEWERPIC.regexp.photo).exec(htm)[1].replace( /^(\d)$/,
"0$1");
}
catch (e)
{ VIEWERPIC.info.photo = "";
}
}
ctl00_Main_ctl00_UserBasicInformation1_hlDefaultImage.getElementsByTagName("img")[0].src =
VIEWERPIC.info.photo;
}
,
ajaxRequest: function(type,
url,
cont,
param,
func,
handlerparam)
{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");
httprequest.setRequestHeader("Accept",
"text/javascript, text/html, application/xml, text/xml, */*");
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 && (navigator.userAgent.match(/Gecko\/(\d{4})/) ||
[0, 2005])[1] < 2005)
{httprequest.setRequestHeader("Connection", "close");
}
}
httprequest.send(param);
}
};
})();
VIEWERPIC.init();if you found a bug just comment me in this thread
thanks to shakiro for the JS linker
![]()
Last edited by feruzz (2008-04-23 04:54:15)

thank you!!..coool !!

-Offline- |

I noticed this earlier bro. It really fooled me
ehehe
I'll look forward to more of your creations
shakiro dash! ~~~ 

:]
-Offline- |

hey feruzz you might wanna edit the title
its DEFAULT photo not primary 

-Offline- |

OKAY
&&Thanks for the code
everybodys asking me
how to do that but then I
just keeeep it as a SECRET 
![]()
&the linkers too
Last edited by losher29 (2008-05-09 07:25:03)

-Offline- |

feruzz wrote:
as long as the code works its ok
yup...
exactly sir....
hohoho...
btw,, it's cool man!!
keep on sharing!! 
![]()
-Offline- |