User:IJZM/global.js

var MainPageLink = wgMainpage; MainPageLink = MainPageLink.replace(/ /g, "_"); MainPageLink = wgServer + "/" + MainPageLink; var HeaderSiteName = document.getElementsByClassName("wds-community-header__sitename"); if(HeaderSiteName !== undefined) { HeaderSiteName[0].firstElementChild.href = MainPageLink; }

var HeaderImage = document.getElementsByClassName("wds-community-header__wordmark"); if(HeaderImage !== undefined) { HeaderImage[0].firstElementChild.href = MainPageLink; }