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 133: | Line 133: | ||
}); | }); | ||
const btnYujify = makeButton("YUJIFY", () => { | |||
const | 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 (minimizedIcon.parentNode) minimizedIcon.parentNode.removeChild(minimizedIcon); | |||
if (ytContainer.parentNode) ytContainer.parentNode.removeChild(ytContainer); | |||
// Optional: Remove any other intervals or listeners if you added some | |||
}); | }); | ||
Line 178: | Line 173: | ||
menu.appendChild(btnExplain); | menu.appendChild(btnExplain); | ||
menu.appendChild(btnEncouragement); | menu.appendChild(btnEncouragement); | ||
menu.appendChild( | menu.appendChild(btnYujify); | ||
document.body.appendChild(menu); | document.body.appendChild(menu); | ||
document.body.appendChild(minimizedIcon); | document.body.appendChild(minimizedIcon); | ||
document.body.appendChild(ytContainer); | document.body.appendChild(ytContainer); | ||
})(); | })(); |