Jump to content

User:Max.nordlund/common.js: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
No edit summary
Line 1: Line 1:
if ( mw.config.get( "wgPageName" ) == "Main_Page" ) {
if ( mw.config.get( "wgPageName" ) == "Main_Page" ) {
var href = mw.util.getUrl( "Wikipedia_talk:Main_Page_(2016_redesign)" );
var href = mw.util.getUrl( "Wikipedia_talk:Main_Page_(2016_redesign)" );
console.log(href)
window.location = href + "?withCSS=MediaWiki:User:Main_Page/NewMainPage.css";
// window.location = href + "?withCSS=MediaWiki:User:Main_Page/NewMainPage.css";
}
}

Revision as of 10:15, 24 August 2016

if ( mw.config.get( "wgPageName" ) == "Main_Page" ) {
  var href = mw.util.getUrl( "Wikipedia_talk:Main_Page_(2016_redesign)" );
  console.log(href)
  // window.location = href + "?withCSS=MediaWiki:User:Main_Page/NewMainPage.css";
}