ytFabric is a Chrome extension that captures YouTube video URLs, allows users to enter a filename, and copies a formatted command to the clipboard. These clipboard comments are meant to be used with Fabric and, if set up correctly, will extract wisdom from a YouTube video. It supports various YouTube URL formats and provides a user-friendly modal interface.
- Captures YouTube video URLs.
- Supports various YouTube URL formats (standard, shortened, embed, etc.).
- Provides a modal for entering a filename.
- Copies a formatted command to the clipboard with the provided filename and video ID.
- Displays feedback message showing the copied text.
- Includes a close button to manually close the modal.
- Clone the repository or download the ZIP file and extract it.
- Open Chrome and navigate to
chrome://extensions/
. - Enable "Developer mode" in the top right corner.
- Click "Load unpacked" and select the directory where you have the extension files.
- Open a YouTube video in Chrome.
- Click the ytFabric extension button.
- Enter a filename in the modal and click "Submit".
- The clipboard will be updated with the formatted command.
- Optionally, you can close the modal by clicking the "Close" button.
-
Visit a YouTube video URL: For example,
https://www.youtube.com/watch?v=nQ-WWlfeMmA&t=21s
. -
Click the ytFabric extension button: A modal will appear requesting a filename.
-
Enter a filename: For instance, enter
my_video
. -
Submit the filename: Click the "Submit" button.
-
Clipboard content: The clipboard will now contain the following text:
yt https://www.youtube.com/watch?v=nQ-WWlfeMmA --transcript | fabric --pattern extract_wisdom | obsidian ${filename}_nQ-WWlfeMmA -s -n
-
Feedback: A message showing the copied text will be displayed in the modal.
-
Close the modal: Click the "Close" button to manually close the modal.
Fabric icons created by Smashicons - Flaticon
If you would like to contribute to this project, please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License.