Goals Script

Discussion in 'Scripts' started by Tjololo, Aug 18, 2013.

  1. Tjololo

    Tjololo Pony
    Staff Member

    Joined:
    Jun 14, 2013
    Messages:
    13,720
    Likes Received:
    105
    Hey all.

    I wrote a goals script!

    What's a goals script you ask? It's an addition to the dashboard page. You can add goals (like the one in my signature), and export them for mturkforums signatures (like my signature). They update automatically, show you a progress bar (based on your current amazon balance).

    It's still a beta script, if there are any problems please let me know.

    Some initial functionality: You can add goals, with or without a timeframe. You can export these goals to store as a signature.

    Future functionality: I want to have capability for daily/weekly/monthly goals based on the daily status pages (recurring goals). I'd also like to do a little more with the goals (have a little more capability built in), and of course stability.

    Take a look, install, let me know if there are issues! http://userscripts.org/scripts/show/176074
     
  2. Tjololo

    Tjololo Pony
    Staff Member

    Joined:
    Jun 14, 2013
    Messages:
    13,720
    Likes Received:
    105
    If anyone is using this/following the thread: I've updated the code to include daily goals now, but only if you have the "today's projected earnings" script installed...I didn't want to copy their script without their permission.

    EDIT: I'm going to start including the changelog in this post. If you're curious, keep an eye here for changes.

    Note: As of version .71b, goals start when defined. You can no longer define a goal you have already started working on. In the near future (possibly v.8), I will add functionality to add custom amounts to your goal, as well as edit goal information (change name, change amount, etc).

    Update for v.3b: Added daily goals

    Update for v.4b: Fixed bug with month rollover for daily goals

    Update for v.5b: Fixed bug that happens occasionally with Projected Earnings...I really have to embed that functionality natively one of these days...

    Update for v.6b: Added preliminary stuff for ordering items...Soon goals will be sequential.

    Update for v.7b: Added functionality to order/reorder non-daily goals. Daily goals are not sequential. Changed the script such that it should no longer need the information retrieved from the "My accounts" page; it now works off of the "Accepted Hits" balance from the dashboard. I have not removed the code in case there's issues...Added logic to convert from old-style save to new-style save.

    Update for v.71b: Oops...minor bug. There may be a few of these in the next few hours/days XD

    Update for v.72b: Worked a little more, fixed a few more bugs with the new method of getting the balance.
     
    #2 Tjololo, Aug 21, 2013
    Last edited by a moderator: Sep 23, 2013
  3. apexpred

    apexpred User

    Joined:
    Aug 19, 2013
    Messages:
    63
    Likes Received:
    0
    The goals sections still says, "Uh-oh, it looks like you haven't set any goals. Click the 'goals' button above to define some!" even after I saved a daily goal.
     
  4. Tjololo

    Tjololo Pony
    Staff Member

    Joined:
    Jun 14, 2013
    Messages:
    13,720
    Likes Received:
    105
    Could you try saving a goal with the console open (F12 key), and let me know what messages get sent there? I'm not seeing the same issue on my end.

    Also, is this in chrome or firefox? I've had massive issues with firefox, can't quite get it working.
     
  5. apexpred

    apexpred User

    Joined:
    Aug 19, 2013
    Messages:
    63
    Likes Received:
    0
    This is in Chrome. In the console when I click save, it says:
    "GM_setValue is not supported
    Uncaught TypeError: Cannot read property 'value' of null"
     
    #5 apexpred, Aug 21, 2013
    Last edited by a moderator: Aug 21, 2013
  6. there

    there User

    Joined:
    Jul 17, 2013
    Messages:
    327
    Likes Received:
    0
    For Chrome get/set support the script needs to define something like

     
    #6 there, Aug 22, 2013
    Last edited by a moderator: Aug 22, 2013
  7. katz840

    katz840 User

    Joined:
    Aug 2, 2013
    Messages:
    349
    Likes Received:
    0
    I am just starting with trying to understand scripts. I have been trying to locate the "today's projected earnings" but haven't found it yet. If you could point me in the right direction, I will gladly download this new script. Also, is there like a Scripts for Dummies site somewhere? The only ones I've found seem to be more advanced than I can follow

    thanks
     
  8. Tjololo

    Tjololo Pony
    Staff Member

    Joined:
    Jun 14, 2013
    Messages:
    13,720
    Likes Received:
    105
    This script was designed for tampermonkey, that's why GM_setValue doesn't work, it's a tampermonkey function. I'll make your changes 412202, probably by today or tomorrow.


    The projected earnings script is here: http://userscripts.org/scripts/show/150796 these are all written in javascript, so that's the language you want to learn. As for a "scripts for dummies" site, unfortunately I don't know of any. What I usually do is search google for "<what I want the script to do> javascript"...for example, "Find text on page javascript". Best of luck!
     
  9. katz840

    katz840 User

    Joined:
    Aug 2, 2013
    Messages:
    349
    Likes Received:
    0
    Thank you so much! I have been driving myself to distraction trying to find the projection script! I downloaded your beta and will let you know how it works for me
     
  10. cmorris14

    cmorris14 User

    Joined:
    May 6, 2013
    Messages:
    224
    Likes Received:
    0
    Every time I withdraw my earnings my goals reset to 0% completion. Is that normal? I know this is still a beta...
     
  11. Tjololo

    Tjololo Pony
    Staff Member

    Joined:
    Jun 14, 2013
    Messages:
    13,720
    Likes Received:
    105
    Yeah, that's one of the problems I've been having. I'm working on a complete rewrite, but other things have taken precedence, sorry! I'll get to it as soon as I can!
     
  12. Dogan

    Dogan User

    Joined:
    Jun 17, 2013
    Messages:
    619
    Likes Received:
    0
    Just a heads up, in my goals display it no longer shows percentage, just NaN%, all day, every day. Let's me set goals and reorder them, but won't communicate or show 0%.
     

Share This Page