diff --git a/README.md b/README.md index 33be742..0bb75b5 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,8 @@ To load the Tampermonkey script: ## Wishlist / Todo ### Functionality For Release -- [ ] Add this link to the settings div: https://leads.needtosellmyhousefast.com/qhrei -- [ ] Add donation/support message to div +- [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) @@ -29,7 +29,7 @@ To load the Tampermonkey script: ``` Options = [General Cap, Row Cap, Highest Cap, Lowest Cap] ``` -- [ ] Apply presidence logic to get true cap +- [X] Apply presidence logic to get true cap ### Feature Requests / Future Releases - [ ] Post stats to API instead of storing in local storage @@ -47,9 +47,9 @@ To load the Tampermonkey script: - [ ] cooloff time (auto drops all bids for a specified amount of time then continues to win again.) - [ ] Add settings option on where to apply the GeneralBidCap - *SettingsBidCap [200] applies to [options🔽] rows* + *General Cap [200] applies to [applyTo] rows. Presidence [presidence🔽]* ``` - Options = [None of the, All, Capped Only, Uncapped Only] + applyTo Options = [None of the, All, Capped Only, Uncapped Only] ``` diff --git a/tampermonkey.js b/tampermonkey.js index c4bd96f..1953df1 100644 --- a/tampermonkey.js +++ b/tampermonkey.js @@ -796,20 +796,29 @@ jQuery(window).on('load',function() { newHtml += ' '; newHtml += ': to seconds
'; - newHtml += ' '; - newHtml += ' per county
'; - newHtml += '
'; - + newHtml += ''; + newHtml += ' '; + newHtml += '
'; newHtml += '
'; + newHtml += '
Note: The bidcap functionality is currently under development is not being applied to any bids at the moment.
'; + newHtml += '
If you got any value out of this tool please feel free to show your support here: https://info.qhrei.com/tools/AlwaysWin-ntsmhf
'; + + newHtml += '
v0.122
'; + newHtml += ''; newDiv.innerHTML = newHtml; - addAlwaysWinStyle('.alwaysWin-ntsmhf {position: fixed; top: 0px; left: 0px; background-color: #DDDDDD; border-radius: 5px; padding:2px; box-shadow: 5px 5px 3px #777777;}'); + addAlwaysWinStyle('.alwaysWin-ntsmhf {position: fixed; width:400px; top: 0px; left: 0px; background-color: #DDDDDD; border-radius: 5px; padding:2px; box-shadow: 5px 5px 3px #777777;}'); addAlwaysWinStyle('.alwaysWin-ntsmhf .alwaysWinLog {float:left; width:100%; overflow-y: auto; height: 100px; font-size: 0.75em; border-style:ridge; background-color:#FEFEFE;}'); - addAlwaysWinStyle('.alwaysWin-ntsmhf .alwaysWinButton { border: none; color: #333333; padding: 1px 2px; text-align: center; text-decoration: none; display: inline-block; font-size: 8x; margin: 1px 1px; cursor: pointer;}'); + addAlwaysWinStyle('.alwaysWin-ntsmhf .alwaysWinButton { border: none; color: #333333; padding: 1px 2px; text-align: center; text-decoration: none; display: inline-block; font-size: 10px; margin: 1px 1px; cursor: pointer;}'); addAlwaysWinStyle('.alwaysWin-ntsmhf .alwaysWinButton:hover {box-shadow: 0 2px 2px 0}'); addAlwaysWinStyle('.alwaysWin-ntsmhf .alwaysWinButton:active {position: relative; top: 1px;}'); + addAlwaysWinStyle('.alwaysWin-ntsmhf .alwaysWinSupport {border: thick double #999999; width:100%; color: #111111; background-color: #44DDDD; padding: 1px 2px; text-align: left; text-decoration: none; display: inline-block; font-size: 12px; margin: 1px 1px; cursor: no-drop;}'); + addAlwaysWinStyle('.alwaysWin-ntsmhf .buildNumber {position: absolute; top: 0; right: 0; text-align: left; color: #111111; font-size: 8px; padding:2px; cursor: context-menu;}'); + addAlwaysWinStyle('.alwaysWin-ntsmhf .alwaysWinThanks {border: thick double #999999; width:100%; color: #CCCCCC; background-color: #444444; text-align: left; text-decoration: none; display: inline-block; font-size: 12px; padding: 2px; border-radius: 5px;}'); + + document.body.appendChild (newDiv); const alwaysWinSave = document.getElementById("alwaysWin-ntsmhf-save"); @@ -878,7 +887,9 @@ jQuery(window).on('load',function() { //Start our ui feedback for the enduser var reloadTimeleft = secondsBetweenReloads; var reloadTimer = setInterval(function() { - document.getElementById("countdown").innerHTML = "("+secondsBetweenReloads+") Next reload will occur in "+ reloadTimeleft +" seconds."; + var countdownElement = document.getElementById("countdown"); + countdownElement.innerHTML = "Next reload will occur in "+ reloadTimeleft +" seconds."; + countdownElement.title = "Refesh timer started at "+secondsBetweenReloads+" seconds"; var progressBarValue = 100 - Math.floor(100 * (reloadTimeleft / secondsBetweenReloads)); //Calculate percent complete document.getElementById("progressBar").value = progressBarValue; if(reloadTimeleft <= 0){