We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
embed-gist-via-iframe
1 parent 4f5bf43 commit ea63d2bCopy full SHA for ea63d2b
source/index.ts
@@ -328,6 +328,10 @@ export const _isSingleFile = [
328
'https://github.com/sindresorhus/refined-github/blob/fix-narrow-diff/distribution/content.css',
329
'https://github.com/sindresorhus/refined-github/blob/master/edit.txt'
330
];
331
+export const isSingleGist = (): boolean => isGist() && /^\/(gist\/)?[^/]+\/[0-9a-f]{32}$/.test(location.pathname);
332
+export const _isSingleGist = [
333
+ 'https://gist.github.com/sindresorhus/0ea3c2845718a0a0f0beb579ff14f064'
334
+];
335
336
export const isTrending = (): boolean => location.pathname === '/trending' || location.pathname.startsWith('/trending/');
337
export const _isTrending = [
0 commit comments