UVU Computer Science Department

How to Modify the Page

In the “Change Code” box, the commands are lines of javascript. This page will execute any valid javascript commands you send.

The easiest: Change what comes after the equal sign. For example, change "white" to "yellow", "12pt" to "50pt", 10 to 100. Keep in quotes anything that is already in quotes. A little harder: mix and match what comes after the . from one command to another.

Commands starting with “document” apply to the whole page.
Commands starting with “madlib” change words in the bubble.
Commands starting with “bubble” change the bubble itself.
Commands starting with “game” change the moving circle at the bottom.

Here are some fun commands you could add:

document.body.style.textDecoration = "underline"; document.body.style.fontStyle = "italic"; document.body.style.color = "red"; bubble.style.backgroundColor = "purple"; bubble.style.border = "dashed 10px red"; bubble.style.display = "none"; mainimg.style.maxWidth = 400;

How to Modify Any Page

The commands starting with "document" can be used on most webpages. On Google Chrome, there is a javascript console where you can add them. Open up “Developer Tools” and go to “Console” as follows:

Windows:

Mac:

Then enter the commands. Google how to do it on other browsers.