MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 285: Line 285:
   $('.region-map img[alt="About this image"]').attr('src', 'https://elwiki.net/wiki/images/1/1f/UI_-_Help.png').show();
   $('.region-map img[alt="About this image"]').attr('src', 'https://elwiki.net/wiki/images/1/1f/UI_-_Help.png').show();
   $('.boss-timer-section .tabber-tab:contains('+localStorage.getItem('current-server')+')').click();
   $('.boss-timer-section .tabber-tab:contains('+localStorage.getItem('current-server')+')').click();
  $('.tabber-tab').click(function(e) {
      if (e.screenX && e.screenX != 0 && e.screenY && e.screenY != 0) {
        localStorage.setItem('current-server', this.innerText);
      }
  });
});
});