User:IJZM/global.js

var MainPageLink = wgMainpage; MainPageLink = MainPageLink.replace(/ /g, "_"); MainPageLink = wgServer + "/" + MainPageLink; var HeaderSiteName = document.getElementsByClassName("wds-community-header__sitename")[0]; HeaderSiteName.firstElementChild.href = "google.com"; console.log(MainPageLink);