Hi, I am trying to modify some code in a toolbar I have for generating
random 'spam' entries on my forum.
I have managed to extract all the relevant files from the firefox .xpi
file and the .jar file, the code of interest initially looks like so
(this was written by someone else and I suspect it was partially taken
from another source prior to that too so I'm unsure if the following
code is all necessary);
function Tools_SpamSeries() {
var seed = _randomSeed();
var qoute = _getQoute();
for(var i=0; i<50; i++) {
_commentCount++;
//_postComment(qoute + " :" + seed + " #" + (i
+1));
_postComment(_commentCount);
}
//alert("Spamming Complete");
As you can tell it currently uses numbers up to 50 but I never
actually get 50 output 'comments', it seems to generate the numbers
then output them randomly and leave a few out.
Ideally I would prefer to have it start at '1' and work its way
sequentially up to '50' - 1,2,3,4,5...48,49,50 - END. (Total 50
comments)
But at present the numbers are all jumbled.
7,12,8,9,16...28,33,35 - END (Total 35 comments for example)
Eventually I would replace the numbers with comments perhaps but I
want to understand the workings of this first (looks quite
straightforward but not enough for me to figure out or find the syntax
required in place of the existing code).