diff --git a/README.md b/README.md
index 0bb75b5..9bc6707 100644
--- a/README.md
+++ b/README.md
@@ -9,21 +9,23 @@ To load the Tampermonkey script:
## Wishlist / Todo
### Functionality For Release
+- [X] Expose buildNumber to settings view
+- [ ] Add verbage to settings div that we are happy to JV on creative deals (get verbage from carolina)
- [X] Add this link to the settings div: https://leads.needtosellmyhousefast.com/qhrei (added this instead because it made more sense:https://info.qhrei.com/temp/alwayswin-ntsmhf/index.htm)
- [X] Add donation/support message to div
- [ ] Read from /app/subscriptions to get list of initial counties - if county is missing it automatically gets added.
-- [x] Expose Sitewide bidcap (if any county bid exceeds X only bid up to X for that county)
-- [x] Save button to persist changes (instead of waiting for refresh code to run)
-- [x] Save settings to local storage
-- [x] Retrieve settings from local storage
-- [x] county bidcap - store and read from settings
+- [X] Expose Sitewide bidcap (if any county bid exceeds X only bid up to X for that county)
+- [X] Save button to persist changes (instead of waiting for refresh code to run)
+- [X] Save settings to local storage
+- [X] Retrieve settings from local storage
+- [X] county bidcap - store and read from settings
- [ ] county isBidCapEnabled - store and read from settings
- [ ] use isBidCapEnabled when processing each oversight
- [ ] use bidcap when processing each oversight
- [ ] Implement tieCounty code
- [ ] Implement watchCounty code
-- [x] Add cap presidence setting.
-- [x] Add Presidence option to settings div
+- [X] Add cap presidence setting.
+- [X] Add Presidence option to settings div
*If a row and general cap are enabled then [options🔽] takes presidence.*
```
@@ -61,23 +63,23 @@ To load the Tampermonkey script:
### UI Settings
-- [x] How often should the status check be performed?
-- [x] randomize refresh value to avoid detection
+- [X] How often should the status check be performed?
+- [X] randomize refresh value to avoid detection
### UI Rows
-- [x] "rowAction" dropdown with options:
+- [X] "rowAction" dropdown with options:
```
0 - Ignore/Hide = Make this row invisible.
1 - Win = Ensure I am highest bidder
2 - Tie = Make sure I am Tied
3 - Watch = Dont bid just monitor
```
-- [x] expose countyId, tie, margin/clicksToWin data
+- [X] expose countyId, tie, margin/clicksToWin data
- [ ] enable apply, enableBidcap, bidCap, action inputs and persist values the values at a row level
-- [x] Store tie values for statistical analysis over time.
-- [x] Auto login if on signin page
-- [x] Add verticle scroll overflow to awLog div
-- [x] Refactor injection and alwayswin array code in main
+- [X] Store tie values for statistical analysis over time.
+- [X] Auto login if on signin page
+- [X] Add verticle scroll overflow to awLog div
+- [X] Refactor injection and alwayswin array code in main
- [ ] Bidcap input for row is only visible if cap is checked for row or settings bidcap is enabled.
- [ ] Refactor Row injections layout to be:
diff --git a/tampermonkey.js b/tampermonkey.js
index 1953df1..f9b51d4 100644
--- a/tampermonkey.js
+++ b/tampermonkey.js
@@ -13,6 +13,7 @@
'use strict';
+const buildNumber = 0.125;
//Load our settings
//localStorage.removeItem('alwayswin_settings');
const verboseLevel=0;
@@ -129,7 +130,7 @@ function reload() {
location.reload();
}
-function reloadIsEnabled(){
+function reloadIsEnabled() {
var checkedValue = alwaysWinSettings.isReloadEnabled ?? false;// document.querySelector("[name='isReloadEnabled']").checked;
if(checkedValue == true) {
return true;
@@ -137,7 +138,7 @@ function reloadIsEnabled(){
return false;
}
-function autoLoginIsEnabled(){
+function autoLoginIsEnabled() {
var checkedValue = alwaysWinSettings.isAutoLoginEnabled ?? false;
var retVal = (checkedValue == true);
return retVal;
@@ -162,7 +163,7 @@ function getBidCapForCountyId(countyId) {
////////////////////////////////////////////////////////////////////////////////////
// Always win code to find and take the highest/tie bid
////////////////////////////////////////////////////////////////////////////////////
-function getCountyInfo(countyId){
+function getCountyInfo(countyId) {
var county = document.querySelector('[data-subscription_id="'+ countyId +'"].subscription-status');
if(county === null) {
console.log("county "+ countyId +" row not found");
@@ -278,11 +279,11 @@ function encryptAndStore(encryptionKey, clearText) {
return JSON.stringify(sjcl.encrypt(encryptionKey, clearText));
}
-function unStoreAndDecrypt (encryptionKey, jsonObj) {
+function unStoreAndDecrypt(encryptionKey, jsonObj) {
return sjcl.decrypt(encryptionKey, JSON.parse(jsonObj));
}
-function loginIfNeeded(){
+function loginIfNeeded() {
var div_signin = document.querySelector('.signin-box');
var loginIsNeeded = false;
if(div_signin != undefined && div_signin != null) {
@@ -773,22 +774,12 @@ function injectOversight(countyId, action) {
targetContainer.appendChild(oversightPriceDiv);
}
-
-const sleep = ms => new Promise(res => setTimeout(res, ms))
-
-jQuery(window).on('load',function() {
- console.log("Page loaded at: "+ new Date());
+function injectSettingsDiv() {
let minSecondsBetweenReloads = alwaysWinSettings.minSecondsBetweenReloads ?? 30;
let maxSecondsBetweenReloads = alwaysWinSettings.maxSecondsBetweenReloads ?? 180;
- let isReloadEnabled = alwaysWinSettings.isReloadEnabled ?? false;
- let isAutoLoginEnabled = alwaysWinSettings.isAutoLoginEnabled ?? false;
- let isGeneralCapEnabled = alwaysWinSettings.isGeneralCapEnabled ?? false;
let capPresidence = alwaysWinSettings.capPresidence ?? "row";
let generalCap = alwaysWinSettings.generalCap ?? 500;
- let secondsBetweenReloads = getRandomNumberBetween(minSecondsBetweenReloads, maxSecondsBetweenReloads);
- //console.log("Next reload should occur in "+ secondsBetweenReloads +" seconds");
- //Inject our controls
var newDiv = document.createElement ('div');
var newHtml = '
Note: The bidcap functionality is currently under development is not being applied to any bids at the moment.
';
+ newHtml += '
Note: The bidcap functionality is currently under development and is NOT being applied to any bids at the moment no matter what any messages say. The current bid IS accurate.