diff options
author | 2019-08-24 19:02:52 +0800 | |
---|---|---|
committer | 2019-08-24 18:02:52 +0700 | |
commit | 3be7ae7ff66065fab8e7494c66b8b66ece3663de (patch) | |
tree | 03fb780497205c48a032eedd0192a1d3cc66b772 | |
parent | 5c19a1e6c13c98f1a830d18b1227b01868f38a96 (diff) | |
download | refined-github-3be7ae7ff66065fab8e7494c66b8b66ece3663de.tar.gz refined-github-3be7ae7ff66065fab8e7494c66b8b66ece3663de.tar.zst refined-github-3be7ae7ff66065fab8e7494c66b8b66ece3663de.zip |
Exclude profile links in `embed-gist-inline` (#2380)19.8.25
-rw-r--r-- | source/features/embed-gist-inline.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/embed-gist-inline.tsx b/source/features/embed-gist-inline.tsx index ebf701e0..45b51f7c 100644 --- a/source/features/embed-gist-inline.tsx +++ b/source/features/embed-gist-inline.tsx @@ -6,7 +6,7 @@ import features from '../libs/features'; const isGist = (link: HTMLAnchorElement): boolean => !link.pathname.includes('.') && // Exclude links to embed files ( - link.hostname.startsWith('gist.') || + (link.hostname.startsWith('gist.') && link.pathname.includes('/', 1)) || // Exclude user links link.pathname.startsWith('gist/') ); |