+ Reply to Thread
Results 1 to 10 of 10

Thread: Count Clan Members Script

Hybrid View

  1. #1
    Senior Member swampy will become famous soon enough swampy will become famous soon enough swampy's Avatar
    Join Date
    Aug 2010
    Location
    The Bar at Drunk Clan
    Posts
    2,666

    Count Clan Members Script

    I forgot who posted this. I did a search but couldn't find it. Kudos to who ever made it..

    It's a simple java script you paste into your browsers bookmarks toolbar.

    Then open up a clan in clan center and click it.. Instant count of clan members..

    javascript:alert($(".clanroster%20tr").length-1);
    Drunk Clan Motto--- "Have Fun, Everyone is Welcome"
    drunk clan

    Stay drunk, Play drunk and chill

  2. #2
    Senior Member Ph4nt0m is on a distinguished road Ph4nt0m's Avatar
    Join Date
    Jan 2012
    Posts
    215
    Sweet! Can this script be tweaked to count the number of friends you have? I can imagine some crazy bragging rights there :P
    The mighty oak was once a little nut that stood it's ground

  3. #3
    Senior Member swampy will become famous soon enough swampy will become famous soon enough swampy's Avatar
    Join Date
    Aug 2010
    Location
    The Bar at Drunk Clan
    Posts
    2,666
    Quote Originally Posted by Ph4nt0m View Post
    Sweet! Can this script be tweaked to count the number of friends you have? I can imagine some crazy bragging rights there :P

    I didn't make the script.. I'd like to see a Friends counter also. My friends list is huge because of people looking for invites to my clan..
    Drunk Clan Motto--- "Have Fun, Everyone is Welcome"
    drunk clan

    Stay drunk, Play drunk and chill

  4. #4
    Senior Member pikaluva13 will become famous soon enough pikaluva13's Avatar
    Join Date
    Aug 2010
    Location
    East Lansing, MI
    Posts
    6,206
    Quote Originally Posted by Ph4nt0m View Post
    Sweet! Can this script be tweaked to count the number of friends you have? I can imagine some crazy bragging rights there :P
    sponge posted one in IRC a long time ago to count how many friends you had, but I didn't keep it anywhere to use later.

    (I just checked mine through a different method (That I'm not going to bother explaining) and I've got 251 according to it)

    swampy has 311
    Ph4nt0m has 170
    Last edited by pikaluva13; 11-26-2012 at 05:19 PM.

  5. #5
    Senior Member swampy will become famous soon enough swampy will become famous soon enough swampy's Avatar
    Join Date
    Aug 2010
    Location
    The Bar at Drunk Clan
    Posts
    2,666
    Damn you Pika.. lmao.. You know I want to know how to do this.. 311? No wonder I lag..

    Oh..Thank you very much for your input..
    Last edited by swampy; 11-26-2012 at 08:00 PM.
    Drunk Clan Motto--- "Have Fun, Everyone is Welcome"
    drunk clan

    Stay drunk, Play drunk and chill

  6. #6
    Senior Member pikaluva13 will become famous soon enough pikaluva13's Avatar
    Join Date
    Aug 2010
    Location
    East Lansing, MI
    Posts
    6,206
    I used Firebug and found where the friends were.
    Then I noticed they all had "prf_friend" in the code, so I copied every single friend, stuck it in word, and then searched for "prf_friend" :P

  7. #7
    Senior Member swampy will become famous soon enough swampy will become famous soon enough swampy's Avatar
    Join Date
    Aug 2010
    Location
    The Bar at Drunk Clan
    Posts
    2,666
    Quote Originally Posted by pikaluva13 View Post
    I used Firebug and found where the friends were.
    Then I noticed they all had "prf_friend" in the code, so I copied every single friend, stuck it in word, and then searched for "prf_friend" :P
    This is Obtuse coding to me..(means I don't understand) But you've giving me something to learn...
    Drunk Clan Motto--- "Have Fun, Everyone is Welcome"
    drunk clan

    Stay drunk, Play drunk and chill

  8. #8
    Senior Member pikaluva13 will become famous soon enough pikaluva13's Avatar
    Join Date
    Aug 2010
    Location
    East Lansing, MI
    Posts
    6,206
    It's
    Code:
    javascript:alert($(".prf_friend").length);
    to do it for the Friends List. There's a way to be able to enter it in the URL as well, but I don't know that one offhand :P

    (I figured it out by trial and error lol)

    EDIT: You can do that in Chrome, but it doesn't appear you can do it in Firefox in the URL (You do have to reenter "javascript:" into Chrome though
    Last edited by pikaluva13; 11-26-2012 at 08:34 PM.

  9. #9
    Senior Member swampy will become famous soon enough swampy will become famous soon enough swampy's Avatar
    Join Date
    Aug 2010
    Location
    The Bar at Drunk Clan
    Posts
    2,666
    Works perfect. Great work.. Thank you.. I'll put on the drunk clan board for the kids that like this stuff.. ;0
    Drunk Clan Motto--- "Have Fun, Everyone is Welcome"
    drunk clan

    Stay drunk, Play drunk and chill

  10. #10
    Senior Member pikaluva13 will become famous soon enough pikaluva13's Avatar
    Join Date
    Aug 2010
    Location
    East Lansing, MI
    Posts
    6,206
    Alternatively, if you don't want to make a new bookmark to do it, just press Ctrl+Shift+K for the js console.
    http://puu.sh/1uKTV <-- Picture of the Javascript console with where to enter the info

    I'm now attempting to figure out how to make it a usersrcipt to make it accessible to others (Something like this
    but since I don't know any javascript, this isn't exactly easy :P (I used Firebug again to edit the visible text)

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts