Перейти к содержанию

MediaWiki:Common.js: различия между версиями

нет описания правки
Нет описания правки
Нет описания правки
Строка 18: Строка 18:
   links.forEach(function(link) {
   links.forEach(function(link) {
     // Get the link title
     // Get the link title
     var linkTitle = link.textContent.trim() + ' — ЮУГМУ Вики';
     var linkTitle = link.getAttribute('title').trim() + ' — ЮУГМУ Вики';
     console.log(currentPageTitle + '=' + linkTitle);
     console.log(currentPageTitle + '=' + linkTitle);
     // Check if the link title is equal to the current page title
     // Check if the link title is equal to the current page title