forked from kwah/Spanghurt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAPI.txt
188 lines (171 loc) · 3.83 KB
/
API.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
//An attempt at defining some form of API to try and get some structure into the script.
/*ACTUAL*/
currentUser
accountType
cost
isStandard
isUltimate
numerical
showUltimateFeatures
verbose
autopayFee
directReferralClickValue
numberOfReferrals
Rented
Direct
preferences
columnPrefixes
numeriseDates
shortFormatTimer
showColumn
shrinkColumnContents
timePeriods
flag_textify
ownClickValue
recycleFee
rentedReferralClickValue
username
/*DESIRED*/
currentUser
accountType
override_showUltimateFeatures
clickValues
own
extended
regular
mini
fixed
fixedMicro
micro
rented
direct
feesCosts
autopay
expiredReferral
initialRent
recycle
extensions
15
30
60
90
150
240
numberOfReferrals
Direct
Rented
username
accountCache //should use getters to reload value from storage each time it is requested?
ownClicks //According to the view ads page box, user-supplied
{dateTime}
extended
regular
mini
fixed
fixedMicro
micro
graphs
{dateTime}
ownClicks_localTime
ownClicks_serverTime
referralClicks
rented
direct
recycleFees
automaticRecycles
extensions
autopay
transfers
toRentalBalance
toGoldenPackBalance
extensionsDue
referrals
{referralId}
referralType
referralSince
lastSeen
goldenGraphClickData
{dateTime}
creditedClicks
actualClicks
ultimateClickData
{dateTime}
creditedClicks
referralListingsData
{dateTime}
nextPayment
lastClick
totalClicks
average
realAverage
user
registrationDate
{dateTime}
totalClicks
goldenMembershipExpirationDate
goldenPackMembershipExpirationDate
numberOfReferrals
Rented
Direct
seenAdvertisementsTotal
user
referrals
account
accountType
mainBalance
rentalBalance
goldenPackBalance
received
directPurchases
exposureClicks
NeoPoints
preferences
preferredExtensionLength
referralListingsColumns
{columnId}
columnHeader
valuePrefix
valueSuffix
shrinkText
numeriseDates
shortFormat
textify
existingColumn
hide
columnIndex
statisticsSidebar
alignment
timePeriods
startDate
endDate
actualOrIdealExtensions
widenAllPages
referralListings()
{
extractDataFromPage()
cacheDataToStorage()
hideAllColumns(){
//hide all columns from the table that are referenced in preferences.referralListingsColumns so that they can be
// shown/added in the correct order
// -> nb: currently undecided between remove & hide
}
addColumns(){
//go through each column in preferences.referralListingsColumns according to
// preferences.referralListingsColumns.{columnId}.columnIndex where the smallest index(es) are added first
//
//insert {prefix}{value}{suffix} into cell
//act upon:: hide = true; shrinkText = true; numeriseDates = true (and shortFormatTimer = true); textify = true;
}
addGoldenGraphHandlers(){
//overwrite the blue (i) button to trigger:
// storage of referral's clicks, display of graph data bars
}
init(){
//call extractDataFromPage() and cacheDataToStorage()
//go through (preferences.referralListingsColumns) and add ID values to each <td> for the existing columns
//
//Trigger the call of hideAllColumns() and addColumns() and addGoldenGraphHandlers() ??
// -> init() function not expected to actually trigger the actions??
// For now: no, methods much be called separately.
}
}