/    Sign up×
Community /Pin to ProfileBookmark

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()[/CODE]

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@roccksteadyauthorJun 21.2012 — [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()[/CODE]
Copy linkTweet thisAlerts:
@roccksteadyauthorJun 21.2012 — for some reasons the code tags arn't working. here it is on a different page.

http://pastebin.com/j2KreSeg
×

Success!

Help @roccksteady spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...