Skip to content

Mankurj05/chrome-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clipboard to Word Chrome Extension

This Chrome extension records clipboard history by automatically capturing text copied using the Ctrl + C shortcut across webpages. It allows users to view previously copied text, clear the stored history, and export all captured content into a single Word (.docx) document on demand.

The extension addresses Chrome’s default limitation of storing only the most recent clipboard entry by maintaining a persistent local history.


Working of the Extension

The extension operates using three main components:

  1. A content script runs on all webpages and listens for copy events. Whenever the user copies text, the selected content, along with the timestamp and source URL, is captured.

  2. A background service worker receives the copied data and stores it persistently using Chrome’s local storage API.

  3. A popup interface allows the user to interact with the stored clipboard history. From the popup, the user can view all copied entries, clear the stored data, or generate a Word document containing the entire clipboard history.

The Word document is created locally in the browser using a JavaScript library and is downloaded only when the user explicitly requests it.


How to Use

  1. Load the extension into Chrome using Developer Mode.
  2. Browse any webpage and copy text using Ctrl + C.
  3. The copied text is automatically saved by the extension.
  4. Click the extension icon to open the popup.
  5. Use the available options:
    • Show Clipboard: Displays all copied text stored so far.
    • Download Word: Exports the entire clipboard history into a single Word (.docx) file and prompts the user to choose a save location.
    • Clear History: Deletes all stored clipboard data.

The extension continues recording copied text until the history is cleared.


Installation (Local)

  1. Download or clone the project folder.
  2. Open Google Chrome and navigate to: chrome://extensions
  3. Enable Developer Mode.
  4. Click Load unpacked and select the project folder.
  5. The extension will be activated and ready for use.

Privacy and Data Handling

All copied data is stored locally within the browser. No external servers are used, and no data is transmitted outside the user’s system. The Word document is generated only at the time of download.


Technologies Used

  • Chrome Extension (Manifest V3)
  • JavaScript
  • HTML and CSS
  • Chrome Storage and Downloads APIs
  • docx.js library for Word document generation

Author

Mayank Singh

About

chrome extension for clipboard and get it as a word document .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors