16 lines
413 B
JavaScript
16 lines
413 B
JavaScript
/** @param {NS} ns */
|
|
export async function main(ns) {
|
|
const doc = eval("document");
|
|
|
|
// Find the background div by its ID
|
|
let backgroundDiv = doc.getElementById("terminal-background");
|
|
|
|
if (backgroundDiv) {
|
|
// Remove the background element
|
|
backgroundDiv.remove();
|
|
ns.tprint("Background removed.");
|
|
} else {
|
|
ns.tprint("No background found to remove.");
|
|
}
|
|
}
|