Increase minimum check interval to 60 seconds

PokemonCenter's Imperva bot protection bans IPs that hit
too frequently. 10 seconds was too aggressive.

- New minimum: 60 seconds
- New default: 90 seconds
- Updated popup UI to reflect safer limits

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-03-24 18:39:08 -04:00
parent 072bc246fa
commit ef2ff0c58c
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
const DEFAULT_CONFIG = { const DEFAULT_CONFIG = {
discordWebhook: "", discordWebhook: "",
checkIntervalSeconds: 15, // Now in SECONDS, not minutes! checkIntervalSeconds: 90, // Minimum 60 to avoid PokemonCenter bot detection
enabled: true, enabled: true,
urls: [ urls: [
"https://www.pokemoncenter.com/category/tcg-cards?sort=relevance" "https://www.pokemoncenter.com/category/tcg-cards?sort=relevance"
@@ -55,7 +55,7 @@ function scheduleNextCheck() {
return; return;
} }
const intervalMs = Math.max(10, config.checkIntervalSeconds) * 1000; // Min 10 seconds const intervalMs = Math.max(60, config.checkIntervalSeconds) * 1000; // Min 60 seconds to avoid bot detection
setTimeout(async () => { setTimeout(async () => {
if (!isChecking && config.enabled) { if (!isChecking && config.enabled) {
+2 -2
View File
@@ -215,8 +215,8 @@
<div class="row"> <div class="row">
<div> <div>
<label>Check Interval (seconds)</label> <label>Check Interval (seconds)</label>
<input type="number" id="interval" min="10" max="300" value="15"> <input type="number" id="interval" min="60" max="300" value="90">
<small>Min 10 sec. Recommended: 15-30 sec</small> <small>Min 60 sec to avoid bans. Recommended: 90 sec</small>
</div> </div>
</div> </div>