User:Stumblean/common.js: Difference between revisions
No edit summary Tags: Mobile edit Mobile web edit Advanced mobile edit |
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)"); | ||
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. | if (ytContainer.parentNode) ytContainer.remove(); | ||
}); | }); | ||