前端框架选型是企业提升开发效率与用户体验的关键因素
542
2022-10-29
一个Chrome扩展程序可将“新标签页”变成记事本工具
My Notes is a note-taking app directly in Chrome. Available on Web Store.
Features
Quickly accessible (see How to open) Saved automatically Updated in every open window HTML (bold, italic, underline, etc.) Transfer text to another computer (see Context menu) Google Drive Sync, to backup, share, and sync the notes between computers (see Google Drive Sync) Themes (Light, Dark, Custom) Hotkeys Works offline
How to open
My Notes:
Click on My Notes icon in Chrome toolbarIn every new tab (see Options)Hotkey (see Options)
Options:
Click on the gear iconRight-click on My Notes icon in Chrome toolbar and select OptionsHotkey (see Options)
Options
Font type (Serif, Sans Serif, Monospace, Google Fonts)Font sizeTheme (Light, Dark, Custom)HotkeysOpen My Notes in every New TabEnable Google Drive SyncIndent text on Tab
Context menu
Allows you to quickly save the selected text to My Notes Clipboard (a special note in My Notes).
Save selection — Saves the selected text to My Notes Clipboard in your current computer.
Save selection to other devices — Saves the selected text to My Notes Clipboard in your other computer(s). Condition: My Notes needs to be open, same Google Account needs to be used.
Google Drive Sync
Google Drive Sync automatically syncs your notes between My Notes and your Google Drive, in both directions (from Google Drive, to Google Drive).
This gives you:
a backup (notes can be restored in the future)can modify the notes in Google Drive, My Notes, and vice versacan modify the notes from other computers (by installing My Notes and using the same Google Account)
Location
Notes are uploaded to your Google Drive to the folder My Notes. This folder is created automatically. If the folder exists from a previous installation, it is restored, notes are downloaded and uploaded, and the synchronization continues.
Synchronization
Notes are synchronized immediately after you enable Google Drive Sync. Then on every My Notes Open/Close/Refresh, or with the "Sync Now" button. Synchronization works in both ways — to Google Drive, from Google Drive.
Access
My Notes can only access the files it created. It cannot see the other files in your Google Drive.
Folder structure
background/ google-drive/ # Everything related to Google Drive Sync # - File operations (List, Create, Get, Update, Delete) # - Synchronization (to Google Drive, from Google Drive) # - Queries (find My Notes folder, list files in My Notes folder) # - Multipart bodies (create My Notes folder, create file, update file) # - Tests init/ # Run when My Notes is installed/updated # - Sets a Unique ID for My Notes installation (used by Context menu), if not already set # - Migrates notes and options # - Creates Context menu and attaches the events # - Creates a Notification when My Notes is installed/updated # - Registers the ways to open My Notes (icon click, in every New Tab) # - Registers events to trigger Google Drive Sync from My Notesimages/ # Images and icons used in My Notes or READMEthemes/ # Light, Dark, Customnotes/ # Everything related to Notes # - Create/Rename/Delete notes; Note editing, Note saving # - Toolbar # - Every UI init and update when data changes # - Registers commands (Toggle Focus mode - can be enabled in Options)options/ # Everything related to Options # - Font type, Font size, Theme, etc. # - Every UI init and update when data changesshared/ # Everything common (used at more places) # - Date formatting (Last sync) # - Managing the permissions (Requesting, Removing, Checking) # - Helpers for Chrome Storage # - Default values (Notes, Options)tests/ # Entrypoint for tests # - Runs every __tests__/index.html in the project # - Prints "net::ERR_FILE_NOT_FOUND" if the test file is not found # - Prints "Assertion failed: console.assert" if any assertion failed.eslintrc # To enforce code quality and same coding style.gitignore # To exclude any generated files (only .DS_Store at this point)LICENSE # MITmanifest.json # Main extension filebackground.html # Entrypoint for background scriptbackground.jsnotes.html # Entrypoint for notesnotes.cssnotes.jsoptions.html # Entrypoint for optionsoptions.cssoptions.jsREADME.md
Permissions
Required:
"storage" — used to save the notes and options to Chrome Storage"contextMenus" — used to create My Notes Context menu
Optional:
"tabs" — used by Open My Notes in every New Tab (see Options)"identity" — used by Enable Google Drive Sync (see Options)
"tabs" is a more powerful permission — the displayed warning may contain an unrelated message — It can: Read your Browsing history.
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~