(action)
| 2437 | }; |
| 2438 | |
| 2439 | const everChanging = function (action) { |
| 2440 | if (action === true) { |
| 2441 | $(symbol1_selector)?.classList.add("knav"); |
| 2442 | $("body").classList.add("ever-changing"); |
| 2443 | everChanging.startObserver(); |
| 2444 | scheduleEverChangingAttach(undefined, 60); |
| 2445 | } else { |
| 2446 | $(symbol1_selector)?.classList.remove("knav"); |
| 2447 | $("body").classList.remove("ever-changing"); |
| 2448 | everChanging.stopObserver(); |
| 2449 | $$("[data-kcg-everchanging='true']").forEach((el) => el.remove()); |
| 2450 | $$("[data-kcg-original-hidden='true']").forEach((el) => { |
| 2451 | el.style.display = ""; |
| 2452 | el.removeAttribute("data-kcg-original-hidden"); |
| 2453 | }); |
| 2454 | } |
| 2455 | }; |
| 2456 | |
| 2457 | everChanging.observer = null; |
| 2458 |
no test coverage detected