you have to
use only one for all your js compilation...
let's take one of your codes with an onloadhandler for example...
[quote][color=red]if ( ! attachOnLoadHandler(function () { cHeaders();})) window.onload = function () { cHeaders();};
function cHeaders() {[/color]
[b]REPLACEIT.init();[/b]
[b]}[/b]
if (typeof REPLACEIT == "undefined") { REPLACEIT = {}; }
REPLACEIT = {
head: [],
init: function() {
this.head = this.getModuleByClassName(/controlpanel/i)[0].getElementsByTagName("h1")[0];
this.head.innerHTML = "Kiel Maru M. Vasquez";
this.head = this.getModuleByClassName(/photos/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "Photo comments pls!";
this.head = this.getModuleByClassName(/blogs/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "Read my blog! ";
this.head = this.getModuleByClassName(/reviews/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "Reviews";
this.head = this.getModuleByClassName(/moreabout/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "You must not know bout me! LOL";
this.head = this.getModuleByClassName(/publiccomments/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "Gimme a comment!";
this.head = this.getModuleByClassName(/scrapbook/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "Haha!";
this.head = this.getModuleByClassName(/friends/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "My Prends!";
this.head = this.getModuleByClassName(/fanof/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "Im a fan of!..";
this.head = this.getModuleByClassName(/groups/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "Tropapeeps.";
},
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;
}
};[/quote]
that [color=red]RED[/color] part is an onloadhandler... you don't need that coz you already
have this...
[quote]if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
function onProfileLoad() {[/quote]
which is your main onloadhandler...
so all you have to do is to [b]omit/delete[/b] all those [color=red]RED[/color] part and
those [b]BOLD[/b] part... [b]BUT... [/b]you have to put back the .init or the one to be called
inside your main onloadhandler... so your compilation would be like this...
[quote]//you can put codes here
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
function onProfileLoad() {
//you can put codes here
//addboxes codes here(mainbox or sidebox)
[b]REPLACEIT.init();[/b]
[b]}[/b]
//addBox function here...
//etc. etc...
//rest of your REPLACEIT codes here...[/quote]
or
[quote]/you can put codes here
function onProfileLoad() {
//you can put codes here
//addboxes codes here(mainbox or sidebox)
[b]REPLACEIT.init();[/b]
[b]}[/b]
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
//addBox function here...
//etc. etc...
//rest of your REPLACEIT codes here...[/quote]
let's take some codes in your js extension as an example again...
just a shortcut example/illustration...
[quote]// css injection
var css = document.createElement("link");
css.setAttribute("rel","stylesheet");
css.setAttribute("href","http://h1.ripway.com/username/cssname.css");
document.getElementsByTagName("head")[0].appendChild(css);
function onProfileLoad() {
var header="My Mp3";
var code="<CENTER><embed src=\"http://www.loudfusion.com/widgets/music/5\" name=\"Loudfusion.com\" quality=\"high\" wmode=\"transparent\" flashvars=\"USERID=612961\" width=\"250\" height=\"100\" type=\"application/x-shockwave-flash\"></embed></CENTER>";
addBox(header,code,"custombox_767",/commonbox[\s]*?fanof/i);
[b]REPLACEIT.init();[/b]
[b]}[/b]
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
//addBox function here...
//etc. etc...
if (typeof REPLACEIT == "undefined") { REPLACEIT = {}; }
REPLACEIT = {
head: [],
init: function() {
this.head = this.getModuleByClassName(/controlpanel/i)[0].getElementsByTagName("h1")[0];
this.head.innerHTML = "Kiel Maru M. Vasquez";
this.head = this.getModuleByClassName(/photos/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "Photo comments pls!";
this.head = this.getModuleByClassName(/blogs/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "Read my blog! ";
this.head = this.getModuleByClassName(/reviews/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "Reviews";
this.head = this.getModuleByClassName(/moreabout/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "You must not know bout me! LOL";
this.head = this.getModuleByClassName(/publiccomments/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "Gimme a comment!";
this.head = this.getModuleByClassName(/scrapbook/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "Haha!";
this.head = this.getModuleByClassName(/friends/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "My Prends!";
this.head = this.getModuleByClassName(/fanof/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "Im a fan of!..";
this.head = this.getModuleByClassName(/groups/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "Tropapeeps.";
},
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;
}
};
//etc. etc....[/quote]
so if you're going to add another js codes with an onloadhandler again
just omit/delete it and just add the codes to be called then put the rest of
the codes below the first code...
ex:
[b]REPLACEIT.init();[/b]
[b]SPAWNPIC.init();[/b]
[b]}[/b]
note: just compile the codes base on who will be called first...
and if you have a WVM tracker code... do that steps also...
hope you got the idea...
and don't use same [b]var names[/b]... that's a no-no also...
you named all your sideboxes as [b]var header[/b]...
just change it... along with the box ID...
hope this one helps...
Last edited by Refresh/Reload (2008-06-16 16:13:37)
mine still working using this Linker..
try to put a comment on someone's profile and include d word "ripway" .. the effect is ur comment will not be posted even if how many times u post it .. stupid friendster ..
but imma not sure about saving on ur media boxes .. cause ripway still works for me ..(regarding the linkers) ..
@topic: linker still working!!
and oh , i have a reserve linker! husssssshh!
[spoiler]pm me if friendster updated again..[/spoiler]
Anyway, the linker in the first post is still working (Fx and IE only though) so if ever your codes are not working, double check the JS Code itself! Make sure you are using the correct linker. When viewing your profile Press F5.
Clearing the Cache may also help.
i think the friendster's updating. its not working anymore.
is there a new css linker ?
I try to post a comment in my profile with a ripway link and its not posted even if you click a million times the post button
you have to
use only one for all your js compilation...[/quote]
Waaah~ I dont get it. XD
Total noob here. XD
you'll get familiar with it
someday... just read and read important thread
here in FTalk and you'll learn more about this also...
btw... I'm also a noob
@ all
about the linker...
the css linker and ripway links still works on mine...
tried pasting my linker codes again and it still works...
hope it won't change heheh...
[/quote]
I use ripway & the js linker still working in my WIWTM area
[/quote]
yah .. me too.. ripway is only off-limits when posting in comments i guess ..
Last edited by trooper (2008-06-17 08:30:53)
Last edited by feruzz (2008-06-17 09:09:45)