www.webdeveloper.com
Results 1 to 3 of 3

Thread: Javascript for Fitocracy

  1. #1
    Join Date
    Jun 2012
    Posts
    3

    Javascript for Fitocracy

    I've run across this script for propping people in fitocracy. the problem is that it props people down the list in the "everyone" catagory, which, I don't want to do. I don't want this to prop people just for propping, i want it just to make my life easier to return props to my friends category or to individual people who have propped me.

    so anyways, this the code, but i dont' know to much about javascript, so i can't find anything to segregate "everyone" from "friends" or just one person.

    Code:
    javascript:function updateNotificationCount(){var a=document.implementation.createHTMLDocument("temp");$.get("/home/",function(b){a.body.innerHTML=b;$("#global_notification_bubble").html(a.getElementById("global_notification_bubble").innerHTML)})}function g(){$("#activity_stream_content").html(buffer);bind_props();$(".give_prop").each(function(){$(this).click()});lastRun=$(".give_prop").length;total+=lastRun;document.title="AUTOPROP - Total: "+total+" Last Run: "+lastRun+" - Fitocracy";updateNotificationCount()}function w(){if(d<u){setTimeout(w,500)}else{d=0;g();setTimeout(f,delay*1e3)}}function f(){if(running){d=0;buffer="";for(var a=0;a<u;a++){$.get("/activity_stream/"+a*stream_increment+"/?firehose=1",function(a){buffer+=a;d++})}w()}}function r(){if(running==true){running=false;alert("Stopped! Total count: "+total);document.title="Fitocracy"}else{running=true;total=0;lastRun=0;buffer="";$("#firehose_view").click();setTimeout(f,1500)}}var delay=30;var u=5;var total;var lastRun;var buffer;var running;var d;document.title="AUTOPROP - Fitocracy";r()

  2. #2
    Join Date
    Jun 2012
    Posts
    3
    Code:
    javascript:function updateNotificationCount(){var a=document.implementation.createHTMLDocument("temp");$.get("/home/",function(b){a.body.innerHTML=b;$("#global_notification_bubble").html(a.getElementById("global_notification_bubble").innerHTML)})}function g(){$("#activity_stream_content").html(buffer);bind_props();$(".give_prop").each(function(){$(this).click()});lastRun=$(".give_prop").length;total+=lastRun;document.title="AUTOPROP - Total: "+total+" Last Run: "+lastRun+" - Fitocracy";updateNotificationCount()}function w(){if(d<u){setTimeout(w,500)}else{d=0;g();setTimeout(f,delay*1e3)}}function f(){if(running){d=0;buffer="";for(var a=0;a<u;a++){$.get("/activity_stream/"+a*stream_increment+"/?firehose=1",function(a){buffer+=a;d++})}w()}}function r(){if(running==true){running=false;alert("Stopped! Total count: "+total);document.title="Fitocracy"}else{running=true;total=0;lastRun=0;buffer="";$("#firehose_view").click();setTimeout(f,1500)}}var delay=30;var u=5;var total;var lastRun;var buffer;var running;var d;document.title="AUTOPROP - Fitocracy";r()

  3. #3
    Join Date
    Jun 2012
    Posts
    3
    for some reasons the code tags arn't working. here it is on a different page.

    http://pastebin.com/j2KreSeg

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles