Don't color Wikipedia links to other languages

This commit is contained in:
shinigami-eyes 2019-07-28 07:34:48 +02:00
parent 9f190fb1d2
commit cb1925e46b

View File

@ -377,6 +377,8 @@ function getIdentifierFromElementImpl(element: HTMLAnchorElement): string {
if (!content.includes(' ') && content.includes('.'))
return getIdentifier('http://' + content);
}
} else if (domainIs(hostname, 'wikipedia.org')) {
if (element.classList.contains('interlanguage-link-target')) return null;
}
if (element.classList.contains('tumblelog')) return element.textContent.substr(1) + '.tumblr.com';