diff --git a/dist/manifest.json b/dist/manifest.json index 77944ea..5595bf4 100644 --- a/dist/manifest.json +++ b/dist/manifest.json @@ -23,6 +23,7 @@ "https://medium.com/*", "https://www.npmjs.com/*", "https://github.com/*", + "https://gist.github.com/*", "http://stackexchange.com/*", "https://stackexchange.com/*", "http://*.stackexchange.com/*", diff --git a/dist/scripts/main.js b/dist/scripts/main.js index 65a03c0..4560665 100644 --- a/dist/scripts/main.js +++ b/dist/scripts/main.js @@ -787,7 +787,7 @@ var snippets = document.querySelectorAll('pre'); wrapper.classList.add('codecopy'); wrapper.firstChild.insertAdjacentHTML('beforebegin', ''); - var sites = /^(github.com|medium.com|www.npmjs.com|developer.mozilla.org)$/; + var sites = /^(github.com|gist.github.com|medium.com|www.npmjs.com|developer.mozilla.org)$/; if (sites.exec(document.location.hostname)) { wrapper.classList.add('codecopy-lg'); diff --git a/src/scripts/main.js b/src/scripts/main.js index 73b5573..750ca3a 100644 --- a/src/scripts/main.js +++ b/src/scripts/main.js @@ -12,7 +12,7 @@ let snippets = document.querySelectorAll('pre'); wrapper.classList.add('codecopy'); wrapper.firstChild.insertAdjacentHTML('beforebegin', ''); - let sites = /^(github.com|medium.com|www.npmjs.com|developer.mozilla.org)$/; + let sites = /^(github.com|gist.github.com|medium.com|www.npmjs.com|developer.mozilla.org)$/; if (sites.exec(document.location.hostname)) { wrapper.classList.add('codecopy-lg');