MCPcopy
hub / github.com/xcanwin/KeepChatGPT / everChanging

Function everChanging

KeepChatGPT.user.js:2439–2455  ·  view source on GitHub ↗
(action)

Source from the content-addressed store, hash-verified

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

Callers 2

loadMenuFunction · 0.85
setUserOptionsFunction · 0.85

Calls 4

$Function · 0.85
$$Function · 0.85
addMethod · 0.80

Tested by

no test coverage detected