zenorocha / codecopy Goto Github PK
View Code? Open in Web Editor NEWA browser extension that adds copy to clipboard buttons on every code block
License: MIT License
A browser extension that adds copy to clipboard buttons on every code block
License: MIT License
@zenorocha pragmatic enhancement Zen...thank you. Is there a way to get this to work with Bing?
It's not working on Github.com in Chrome anymore, no button is showing up.
I mean every site. Could it detect code snippet by Markdown grammar on any site?
Installing this add-on on the nightly version is not possible because it is not signed.
https://support.mozilla.org/en-US/kb/add-on-signing-in-firefox?as=u&utm_source=inproduct
README.md contains a link to CodeCopy listed on Chrome Web Store, but it redirects to a 404 page.
Apparently, CodeCopy has been automatically disabled on my browser (Edge Chromium) saying that
This extension has been disabled because it's been marked unsafe by the Chrome Web Store.
Does this relate to the removal of CodeCopy from Chrome Web Store?
Update the extension in firefox as it is not updated recently
Hey @zenorocha. I'd love to drop something like this into electronjs.org. Can it be used as a module? If not, maybe that's a use case worth supporting?
Hi @zenorocha
many thanks for this awesome piece of software. I have embedded codecopy
with my blog and it works well. This is rather a question than an issue though ;)
I embed some Gist snippets in my posts but don't know how to enable codecopy
on those snippets. Would you mind to share some hints?
Btw, I visit Gist site but the code snippets don't have the copy icons (whilst code blocks on the other sites like SO, Github do).
Thanks a lot.
The Chrome Web Store link provided in the README file returning 404 Not Found
Browser: Microsoft Edge - Version 116.0.1938.69 (Official build) (64-bit)
Would be amazing. :)
I have tested this plugin on Edge browser on Ubuntu 20.04. It works as expected without any code changes. I tried this with some custom domains like Python Flask and it works great. Attached screenshots for the same
.
Can this be made to work on GitHub Enterprise instances? I've never investigated how similar they are code-wise, but the front ends are basically identical.
You'd probably have to add an option to specify the domains to run on. The two enterprise instances I use are at github.company_domain.com
As you can see when https://github.com/Mottie/Octopatcher is installed add the collapse only that when I use the copy copy also the text "Block 16 lines" (the icon of copy is on hover on the code).
Thank you for an excellent extension, you 🤘
Can you please add support for css-tricks?
This will be very handy since these git books usually contain code sample.
Thank you!
Great Tool for Devs!!
Please Add support for Safari also.
Thanks.
@zenorocha, could you please explain how to add a site. Tried to just stick my URL to matches
in manifest.json
, that didn't work. I want to use this on a self-hosted TiddlyWiki.
GitHub now has a button natively, so it’s no longer useful to have this button on Markdown pages (and it didn’t show up anyway). Note that #1 is still interesting though, so we may want to keep the domain permission.
the copy icon is show when the mouse is hover on the element, can you add an option to allow show copy icon always in the code element?
Add github.io to the list of websites
The documentation states that custom domains can be added by right-clicking on the extension and choosing "Enable CodeCopy on this domain".
https://github.com/zenorocha/codecopy#custom-domains
I have installed the extension on multiple browsers (Chrome and Brave) on multiple OSes (Linux and OSX), and am unable to get this option to show up. Right-clicking on the extension gives the same context menu as left-clicking, and there is no "Enable CodeCopy on this domain".
I've been digging to find a JS library that will add this natively to a web app, rather than a user having to install an extension in their browser. It would be great if this project also supported that use-case, rather than creating/forking a new project.
Ideally, I would be able to just import this library locally, or from something like CDNJS and load it on any web app. Similar to how highlight.js works:
Context: In some use-cases, users are required to disable all browser extensions before proceeding with a task (ex: taking an exam/certification/etc using an online proctoring service).
Would it be possible to place the button to the left of the code? In all preview examples there is more space between the code and the button, than there is code in the block ;-) Shave off some meters of mouse movement per day?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.