Support for Tumblr mentions
This commit is contained in:
parent
eb95da3dc8
commit
e88ad8cfb4
@ -347,6 +347,9 @@ function getIdentifierFromElementImpl(element: HTMLAnchorElement): string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (dataset && dataset.expandedUrl) return getIdentifierFromURLImpl(tryParseURL(dataset.expandedUrl));
|
if (dataset && dataset.expandedUrl) return getIdentifierFromURLImpl(tryParseURL(dataset.expandedUrl));
|
||||||
|
|
||||||
|
if (element.classList.contains('tumblelog')) return element.textContent.substr(1) + '.tumblr.com';
|
||||||
|
|
||||||
const href = element.href;
|
const href = element.href;
|
||||||
if (href && !href.endsWith('#')) return getIdentifierFromURLImpl(tryParseURL(href));
|
if (href && !href.endsWith('#')) return getIdentifierFromURLImpl(tryParseURL(href));
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user