Browse Source

added todo items

main
Steven 1 year ago
parent
commit
f3ce665cac
  1. 5
      README.md
  2. 15
      tampermonkey.js

5
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

15
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;
}

Loading…
Cancel
Save