User:Professor Hershel Theodore Layton/global.js

// Scroll to top button in toolbar var wikiaToolbar = document.getElementsByClassName('toolbar'); [].slice.call(wikiaToolbar).forEach(function (ToolbarTop) { ToolbarTop.innerHTML += ' '; }); function phtlScrollTop { $('html, body').animate({scrollTop: 0 }, 'slow'); }

// Language var phtlsLangPrefix = "de." var phtlsClearCache = "Cache leeren"; var phtlsRecentChanges = "Neue Änderungen";

// Clicking on profile picture in header opens profile page $('#us-h-profilelink').click(function {   window.open('Special:MyPage', '_self'); }); $('.wds-avatar').wrap('');

// Changing the "start a wikia" button to "recent changes" button $('.wds-global-navigation__start-a-wiki-button').attr('href','/wiki/Special:RecentChanges?hidebots=0').text(phtlsRecentChanges);

// FANDOM logo links to community central $('.wds-global-navigation__logo').attr('href', '//' + phtlsLangPrefix + 'community.wikia.com/wiki/');

// Community Deutschland zu Hauptseite ändern $('.wds-global-navigation__link').attr('href','/wiki/').text(       $('.wds-community-header__sitename a').text    );

// Waits until page has loaded $(document).ready(function {   // Add purge option to the action buttons    $('.page-header__contribution-buttons .wds-dropdown__content ul').append('' + phtlsClearCache + '');

// Removing messages without giving a reason $('#WikiaConfirmOk').removeAttr('disabled'); });