I have always been interested in Chrome's extended development. before the Spring Festival, I customized an extended development plan for myself. The extended topic is to enhance the replication function. I have referred to the copy fixer and autocopy extensions. I have recorded this plan on the note, and have been thinking about how to write this extension for a while. I think this method is quite good. There are goals in the writing process.
Copybetter extension | copybetter source code browsing.
The purpose of this extension is to enhance the native Extension function. Currently, the following features are available:
- The selected text is automatically copied;
- Copy the HTML of the selected contentSource code;
- Copy the page title and URL;
- You can choose to save the last n copies;
- And so on ..
Functions to be completed:
- Remove the right-click Copy restriction;
- Clear hidden text during copy;
If no text is selected, press Ctrl + C to copy it in text format.ArticleThe default format is:
Http://kodango.com/copy-extension for enhanced replication with chrome Extension
When no text is selected, press SHIFT + C to copy the title and address of the article in HTML format. The default format is:
<A href = "http://kodango.com/copy-extension" target = "_ blank"> chrome extension-enhanced replication </a>
Click the icon on the toolbar again, and the copied content is displayed. Click copy in the list. If it is currently in the input box, the selected content is automatically inserted to the cursor position.