diff --git a/README.md b/README.md index 3f70752..75247dc 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,11 @@ To load the Tampermonkey script: [x] Add verticle scroll overflow to awLog div [] Figure out session timout/no longer refreshing/ not loaded issue (screensaver?, tab no focus?, os?, browser?) [x] Refactor injection and alwayswin array code in main + [] if oversight div exists for county dont inject a new one + []] read from /app/subscriptions to get list of initial counties - if county is missing it automatically gets added. + [] if county action is ignore then hide the tr and dont inject oversight + [] expose toggle to hide/show ignored counties in settings + diff --git a/tampermonkey.js b/tampermonkey.js index 021e3a1..951b7e7 100644 --- a/tampermonkey.js +++ b/tampermonkey.js @@ -244,6 +244,12 @@ function watchCounty(countyJson, saveChanges) { awLog(countyInfo +" watchCounty code not yet implemented"); } +function ignoreCounty(countyJson, saveChanges) { + //TODO: implemnt me + let countyInfo = countyJson.id + " "+ countyJson.name; + awLog(countyInfo +" ignoreCounty code not yet implemented"); +} + function awLog(message) { console.log(message); const currentContent = document.getElementById("awLog").innerHTML; @@ -438,6 +444,8 @@ jQuery(window).on('load',function() { //console.log(window.location.pathname); switch (window.location.pathname) { case "/app": + case "/app/subscriptions": + break; case "/signin": break; default: @@ -456,8 +464,10 @@ jQuery(window).on('load',function() { //injectOversight("84035","win"); //washington, OR //injectOversight("87833","win"); //marion, OR //injectOversight("84034","tie"); //cascade, MT - //injectOversight("84037","watch"); //clackamas, OR + //injectOversight("84037","win"); //clackamas, OR //injectOversight("84038","watch"); //benton, OR + //injectOversight("87835","watch"); //multnomah, OR + //injectOversight("91976","win"); //CLARK, WA //// Now do the work let newStats = []; @@ -478,6 +488,9 @@ jQuery(window).on('load',function() { case "watch": watchCounty(countyInfoJson,false); break; + case "ignore": + ignoreCounty(countyInfoJson, false); + break; default: break; }