User:Stumblean/common.js: Difference between revisions

Stumblean (talk | contribs)
No edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
Stumblean (talk | contribs)
No edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
Line 134: Line 134:


   const btnYujify = makeButton("YUJIFY", () => {
   const btnYujify = makeButton("YUJIFY", () => {
    const confirmKill = confirm("Are you sure you want to YUJIFY this menu? This will kill the script.");
    if (!confirmKill) return;
     console.log("I'll admit it, mahito, I am you. (script killed)");
     console.log("I'll admit it, mahito, I am you. (script killed)");
    // Remove the menu and other UI elements:
     if (menu.parentNode) menu.parentNode.removeChild(menu);
     if (menu.parentNode) menu.parentNode.removeChild(menu);
     if (minimizedIcon.parentNode) minimizedIcon.parentNode.removeChild(minimizedIcon);
     if (minimizedIcon.parentNode) minimizedIcon.parentNode.removeChild(minimizedIcon);
     if (ytContainer.parentNode) ytContainer.parentNode.removeChild(ytContainer);
     if (ytContainer.parentNode) ytContainer.remove();
    // Optional: Remove any other intervals or listeners if you added some
   });
   });