Changes

Jump to: navigation, search

DPS909/OSD600 Fall 2017 Lab 2

18 bytes added, 11:41, 13 September 2017
Make a Change to the Source
The following suggestions were given to me by Mozilla's [https://twitter.com/bwinton Blake Winton (@bwinton)], and I think that one ore more of these would be fun to try:
1. In <code>browser/base/content/browser.js</code> change the function <code>OpenBrowserWindow</code> to automatically open cat GIFs or a random picture from [https://unsplash.com/ Unsplash]. You can alter the code like so:
<codepre>
function OpenBrowserWindow(options) {
window.open("http://www.chilloutandwatchsomecatgifs.com"); return;
}
</codepre>
or:
<codepre>
function OpenBrowserWindow(options) {
window.open("https://unsplash.it/800/600?random"); return;
}
</codepre>
Can you fix the code above to use the full width of the current window, so it always fills the page?

Navigation menu