Jump to content

Wikipedia:Tip of the day/November 4, 2006

From Wikipedia, the free encyclopedia
How to change your default Main Page

Wikipedia has many variations of the Main Page, listed at Main Page alternatives. If you are logged in to Wikipedia, you can set one of these as your default Main Page. It will be displayed instead of the regular Main Page.

Copy the following code, then go to the special page User:username/monobook.js (where username is your account name). Edit the page and paste the code in. This will change the main page to the Classic 2006 main page alternative. You can also change the url ("http://...") to any of the other main page alternatives.

var mpTitle = "Main Page";
var isMainPage = (document.title.substr(0, document.title.lastIndexOf(" - ")) == mpTitle)
if (isMainPage)
{window.location="http://en.wikipedia.org/wiki/Main_Page_alternative_%28Classic_2006%29";}

Prior tip - Next tip