MediaWiki:Common.js: Difference between revisions

correct selector for DisplayTitle hack
(remove injection header; add Adobe Analytics)
(correct selector for DisplayTitle hack)
Line 33: Line 33:
(function(){
(function(){
     var mainTitle = document.querySelector('#firstHeading');
     var mainTitle = document.querySelector('#firstHeading');
     var secondTitle = document.querySelector('#mw-content-text > h1');
     var secondTitle = document.querySelector('.mw-parser-output > h1');
     if(mainTitle && secondTitle){
     if(mainTitle && secondTitle){
         mainTitle.hidden = true;
         mainTitle.hidden = true;
53,890

edits