Skip to content
Commits on Aug 2, 2011
Commits on Jul 26, 2011
  1. Merge remote branch 'origin/master'

    committed Jul 26, 2011
  2. Reduced the graphLengthLookup for ch_earnings and ch_profit (ultimate…

    …-only graphs) from 15 to 10; Ref: #15 ;
    committed Jul 26, 2011
Commits on Jul 25, 2011
  1. Stop transferring the timePeriods / ad event times to the page scope …

    …using a loop and location.href="javascript;" - instead pass them in as arguments of the anonymous function wrapper;
    committed Jul 26, 2011
Commits on Jul 23, 2011
  1. Amended some of the preference storage code to not treat false defaul…

    …t values as erroneous & replaced by an empty string;
    
    Added a new column (disabled by default, toggled by < greasemonkey.scriptvals.http://kwah.org//Spanghurt.showRefClicks >) to the referral listings pages that displays the difference in total clicks of each day and the stored total previous to it - EXTREMELY unreliable, dependant heavily on when the referral listings pages are viewed. Ref: #17
    committed Jul 23, 2011
  2. Added sorting arrows to the referral listings; added code to remove t…

    …he duplicate sorting arrows; Ref: #13
    committed Jul 23, 2011
Commits on Jul 22, 2011
Commits on Jul 20, 2011
  1. Added projected net income to the statsSidebar (related: issue #7 ) B…

    …UT code style issues remain (its not a 'clean' implementation);
    committed Jul 20, 2011
  2. Changed light blue bar to indicate the mean profit over the last ten …

    …days as opposed to moving average; related: #11 ;
    committed Jul 20, 2011
Commits on Jul 19, 2011
  1. Moved the call to insertProfitGraph() so that it only gets called on …

    …the referralStatistics page;
    committed Jul 19, 2011
Commits on Jul 18, 2011
  1. Added profit graph to the referral statistics page ( related: #11 ); …

    …Fixed goldenCost for golden members;
    committed Jul 19, 2011
  2. Removed tabs at ends of lines for the export text; Whole bunch of rea…

    …rranging the code within the insertSidebar() function; Confirmed that the values created into statsSidebar[] are correct;
    committed Jul 18, 2011
Commits on Jul 16, 2011
  1. Removed the ultimate click values column temporarily until it is func…

    …tioning correctly; Added colours to the netIncome column - red indicates negative netIncome, blue indicates positive netIncome but less than the cost of a recycle; green indicates a positive netIncome above the cost of a recycle; black indicates zero netIncome or a netIncome equal to the cost of a recycle;
    committed Jul 16, 2011
  2. Added functionality to append / prepend / replace referral listings c…

    …olumn contents (so that they're not all simply added as new columns; Added checks in with the ultimate-only click guide code so that it doesn't crash and burn when something goes amiss with detecting the ultimate minigraph data sources;
    committed Jul 16, 2011
Commits on Jul 14, 2011
  1. Rearranged some parts of the code to try and make it more organised..…

    … certainly not the last time moves like this will be done; Switched a bunch of Neobux.accountDefaults to getter functions; Added an escape path if cannot find any graph data on the page; Added how much you've earned from the clicks in the ad counter box in two places - if you hover over the individual counts for specific ad-types, the tooltip text will indicate how much you've earned from that ad-type (useful for double checking what the script believes the values of the clicks to be), and also below the date selector is the sum of how much you've earned from all ad-types for that day; Removed a bunch of try/catch blocks because they're not so useful now that the script is mostly stable;
    committed Jul 14, 2011
  2. Enhanced the logging methods; Changed how the rental bands are define…

    …d to use a new function(); Include the padZeros function within the formatTime() function;
    committed Jul 14, 2011
Commits on Jun 27, 2011
  1. added (due to the quantity, non-modal) 'modalCheckpoint's to help deb…

    …ug for ultimate users
    committed Jun 27, 2011
Commits on Jun 21, 2011
  1. Typo

    committed Jun 21, 2011
  2. Merge branch 'master' of github.com:kwah/Spanghurt

    Conflicts:
    	spanghurt.user.js
    committed Jun 21, 2011
  3. Replaced all getPref() calls to be pr[prefName].getValue() calls;

    Replaced all setPref() calls to be pr[prefName].setValue() calls;
    
    All stored items should be declared in one location (with all the others currently starting at line 253);
    
    Fixed getValue() to use the default value properly;
    
    Added a bunch more translation strings;
    
    Somewhat cleaned up the storage of referral data (incl fixing of referralType for direct referrals / showing the next payment date only on the rented referrals listings) but it definitely still needs more work;
    committed Jun 21, 2011
  4. Replaced all getPref() calls to be pr[prefName].getValue() calls;

    Replaced all setPref() calls to be pr[prefName].setValue() calls;
    
    All stored items should be declared in one location (with all the others currently starting at line 253)
    
    Fixed getValue() to use the default value properly instead of the options
    committed Jun 21, 2011
  5. MASSIVE changes to the code but this is because I'd not had git runni…

    …ng properly for a couple of weeks so regular small commits didn't happen as usual >.<
    
    Added a 'modaCheckpoint' function that can be called and will temporarily halt script execution while giving an indication of where in the script is currently being executed - useful to hunt down which part of a script is freezing for example (find last place alert was called and bug will be just after this..)
    
    Altered code style throughout to have a space following a comma;
    
    Starting to migrate to the new userPreference() interface;
    
    Added a bunch of translation strings;
    
    Source of freezing on the initial setup appears to be when setting the numberOfRentedReferrals - when the setPref('numberOfRentedReferrals', tmp_rentedRefs[1], { prefType: 'integer' }); part line is replaced by a 0 the script setup does not freeze;
    
    throw if setup isn't complete rather than return (return causes issues when being run within the firebug console as it isn't within a function block - greasemonkey automatically wraps scripts within an anonymous function);
    
    added checks to the referral listings functions so that they do not cause issues if the item is not supplied / is null -- eg, on the direct referral listings page the flagIdToColour does not have a flagId to convert thus breaks, similarly for ultimateClickValues;
    
     improved direct referral listings page functionality so that (hopefully) it isn't as broken / it actually works somewhat (eg only try to textify the flag if it is the rented referral listings page / column indexes are distinct for each listings page);
    
     Removed alert()s when pages break - TODO stop catching errors and just let the script fail;
    committed Jun 21, 2011
Commits on May 27, 2011
  1. Fixed 2 instances of prefType: 'text' used instead of prefType: 'stri…

    …ng' - stops my browser from freezing on the direct referral listings page so is believed to be the cause of other pages freezing too;
    committed May 27, 2011
Something went wrong with that request. Please try again.