FSTUTS FORUMERS
Dont forget to join!

Please Read the forum rules and regulations before posting^_^

Thank You!

Reduce Comments

View previous topic View next topic Go down

Reduce Comments

Post by Psycho Dancer on Sun May 31, 2009 10:28 pm

Spoiler:
/*global rCOMM, document*/
rCOMM = {};

(function () {
rCOMM = {
comm: null,
num: 5,

init: function () {
rCOMM.comm = rCOMM.getElementsByClassName(document.getElementById("content_18"), "div", /fitem1wrapper/i);
for (var x = rCOMM.num, y = rCOMM.comm.length; x < y; x += 1) {
if (rCOMM.comm[x]) {
rCOMM.comm[x].parentNode.removeChild(rCOMM.comm[x]);
}
}
},

getElementsByClassName: function (oElm, sTag, sClass) {
var elm = [];
if (!oElm) {
oElm = document;
}
if (!sTag) {
sTag = "*";
}
var els = oElm.getElementsByTagName(sTag) || document.all;
for (var j = 0, k = els.length; j < k; j += 1) {
if (new RegExp(sClass).test(els[j].className)) {
elm.push(els[j]);
}
}
return elm;
}
};
})();
rCOMM.init();

Ever wanted to remove a comment on your profile?
you can change the number below......
the num: 5 mean you will just have 5 comments on your profile
you dont have to worry, it will remove the very bottom of your comment 1st & so on.....

soRy for bAd english ahaha

Just paste it on your external js

_________________
Just Give me Repu or Thanks by Clicking the + in my field if i help You ^^



I love my Haterz coZ thEy make me famous


avatar
Psycho Dancer
MOD
MOD

Posts : 166
Reputation : 45
Join date : 2009-05-27
Age : 27
Location : Binangonan Rizal

http://www.friendster.com/psychodancer

Back to top Go down

Re: Reduce Comments

Post by [DYOSZA]JiNRiKiSHA on Mon Jun 01, 2009 9:20 am

thanks for sharing! a repu for u! Very Happy
please do provide a preview..

_________________
avatar
[DYOSZA]JiNRiKiSHA
Graphic Artist
Graphic Artist

Posts : 207
Reputation : 15
Join date : 2009-05-26
Age : 26
Location : Mars

http://www.friendster.com/miinidii

Back to top Go down

Re: Reduce Comments

Post by [DYOSZA]6lam :) on Mon Jun 01, 2009 7:00 pm

thanks for the codes Smile
avatar
[DYOSZA]6lam :)
Newbie
Newbie

Posts : 18
Reputation : 1
Join date : 2009-05-26
Age : 22
Location : manila :D

Back to top Go down

Re: Reduce Comments

Post by [DYOSZA]JiNRiKiSHA on Wed Jun 03, 2009 6:41 pm

wew!
i tried this but it failed to work for me..


Last edited by [DYOSZA]JiNRiKiSHA on Mon Jun 22, 2009 5:29 pm; edited 1 time in total

_________________
avatar
[DYOSZA]JiNRiKiSHA
Graphic Artist
Graphic Artist

Posts : 207
Reputation : 15
Join date : 2009-05-26
Age : 26
Location : Mars

http://www.friendster.com/miinidii

Back to top Go down

Re: Reduce Comments

Post by [DYOSZA]gane on Sun Jun 21, 2009 9:08 am

tenchu s share
avatar
[DYOSZA]gane
MOD
MOD

Posts : 221
Reputation : 122
Join date : 2009-05-26
Age : 20
Location : Baguio City, Philippines

Back to top Go down

Re: Reduce Comments

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum