Support for Medium subdomains
This commit is contained in:
parent
be906ee77a
commit
64a10cdb19
@ -396,7 +396,7 @@ function createContextMenu(text: string, id: ContextMenuCommand) {
|
||||
"*://*.reddit.com/*",
|
||||
"*://*.twitter.com/*",
|
||||
"*://*.t.co/*",
|
||||
"*://medium.com/*",
|
||||
"*://*.medium.com/*",
|
||||
"*://disqus.com/*",
|
||||
"*://*.tumblr.com/*",
|
||||
"*://*.wikipedia.org/*",
|
||||
|
@ -518,6 +518,10 @@ function getIdentifierFromURLImpl(url: URL): string {
|
||||
} else if (domainIs(host, 'disqus.com') && url.pathname.startsWith('/by/')) {
|
||||
return 'disqus.com' + getPartialPath(url.pathname, 2);
|
||||
} else if (domainIs(host, 'medium.com')) {
|
||||
const hostParts = host.split('.');
|
||||
if (hostParts.length == 3 && hostParts[0] != 'www') {
|
||||
return host;
|
||||
}
|
||||
return 'medium.com' + getPartialPath(url.pathname.replace('/t/', '/'), 1);
|
||||
} else if (domainIs(host, 'tumblr.com')) {
|
||||
if (url.pathname.startsWith('/register/follow/')) {
|
||||
|
@ -17,7 +17,7 @@
|
||||
"*://*.youtube.com/*",
|
||||
"*://*.reddit.com/*",
|
||||
"*://*.twitter.com/*",
|
||||
"*://medium.com/*",
|
||||
"*://*.medium.com/*",
|
||||
"*://disqus.com/*",
|
||||
"*://*.tumblr.com/*",
|
||||
"*://*.wikipedia.org/*",
|
||||
|
Loading…
x
Reference in New Issue
Block a user