User:Razzada216/common.js

// Create a function that modifies the page to look like a 90's hacker skin function addHackerSkin { // Change the background color to black document.body.style.backgroundColor = "#000000";

// Change the font color to red document.body.style.color = "#FF0000";

// Change the font family to "Courier New" document.body.style.fontFamily = "Courier New, monospace";

// Change the font size to 14px document.body.style.fontSize = "14px";

// Change the link color to red var links = document.getElementsByTagName("a"); for (var i = 0; i < links.length; i++) { links[i].style.color = "#FF0000"; }

// Change the header font to be bigger and green var headers = document.getElementsByTagName("h1"); for (var i = 0; i < headers.length; i++) { headers[i].style.fontSize = "24px"; headers[i].style.color = "#FF0000"; }

// Change the table borders to be green and have a black background var tables = document.getElementsByTagName("table"); for (var i = 0; i < tables.length; i++) { tables[i].style.border = "1px solid #FF0000"; tables[i].style.backgroundColor = "#000000"; } }

// Call the function to apply the skin addHackerSkin;