You are viewing a single comment's thread from:

RE: iMacros Scripts - Twitter Accounts Creator (Mohmal Version), Twitter Avatar Uploader & Custom Location

in #utopian-io7 years ago

I can see some of the codes in the file below, which you are not using any where ...any specific reason. And the code is from "https://stackoverflow.com/questions/1349404/generate-random-string-characters-in-javascript"

function makeid(num) {
    var text = "";
    var possible = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0123456789";
    for (var i = 0; i < num; i++)
        text += possible.charAt(Math.floor(Math.random() * possible.length));
    return text;
}
Sort:  

That function was being used in twitter username generator but I've removed the usage of that function and replaced it with a scrape from the page itself as twitter suggest some available usernames.

var binput = "CODE:";
binput += "SET !ERRORIGNORE YES" + jsLF;
binput += "TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/signup/create_password ATTR=ID:password CONTENT={{password}}" + jsLF;
binput += "TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/signup/create_password ATTR=NAME:commit" + jsLF;
binput += "TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/signup/add_phone/skip ATTR=NAME:commit" + jsLF;
binput += "TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/signup/screen_name ATTR=ID:custom_name EXTRACT=TXT" + jsLF; //makeid() alternative

I've made a commit.makeid() has been removed for both versions.
Thank you.