589
правок
User (обсуждение | вклад) Нет описания правки |
User (обсуждение | вклад) Нет описания правки |
||
| Строка 19: | Строка 19: | ||
// Get the link title | // Get the link title | ||
var linkTitle = link.textContent.trim() + '— ЮУГМУ Вики'; | var linkTitle = link.textContent.trim() + '— ЮУГМУ Вики'; | ||
console.log(currentPageTitle | 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 | ||
if (linkTitle === currentPageTitle) { | if (linkTitle === currentPageTitle) { | ||