@mejazbese21/obsidian-clipper-cli 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/api.mjs +5018 -0
- package/dist/cli.cjs +26611 -0
- package/package.json +70 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Obsidian
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
Obsidian Web Clipper helps you highlight and capture the web in your favorite browser. Anything you save is stored as durable Markdown files that you can read offline, and preserve for the long term.
|
|
2
|
+
|
|
3
|
+
- **[Download Web Clipper](https://obsidian.md/clipper)**
|
|
4
|
+
- **[Documentation](https://help.obsidian.md/web-clipper)**
|
|
5
|
+
- **[Troubleshooting](https://help.obsidian.md/web-clipper/troubleshoot)**
|
|
6
|
+
|
|
7
|
+
## Get started
|
|
8
|
+
|
|
9
|
+
Install the extension by downloading it from the official directory for your browser:
|
|
10
|
+
|
|
11
|
+
- **[Chrome Web Store](https://chromewebstore.google.com/detail/obsidian-web-clipper/cnjifjpddelmedmihgijeibhnjfabmlf)** for Chrome, Brave, Arc, Orion, and other Chromium-based browsers.
|
|
12
|
+
- **[Firefox Add-Ons](https://addons.mozilla.org/en-US/firefox/addon/web-clipper-obsidian/)** for Firefox and Firefox Mobile.
|
|
13
|
+
- **[Safari Extensions](https://apps.apple.com/us/app/obsidian-web-clipper/id6720708363)** for macOS, iOS, and iPadOS.
|
|
14
|
+
- **[Edge Add-Ons](https://microsoftedge.microsoft.com/addons/detail/obsidian-web-clipper/eigdjhmgnaaeaonimdklocfekkaanfme)** for Microsoft Edge.
|
|
15
|
+
|
|
16
|
+
## Use the extension
|
|
17
|
+
|
|
18
|
+
Documentation is available on the [Obsidian Help site](https://help.obsidian.md/web-clipper), which covers how to use [highlighting](https://help.obsidian.md/web-clipper/highlight), [templates](https://help.obsidian.md/web-clipper/templates), [variables](https://help.obsidian.md/web-clipper/variables), [filters](https://help.obsidian.md/web-clipper/filters), and more.
|
|
19
|
+
|
|
20
|
+
## Contribute
|
|
21
|
+
|
|
22
|
+
### Translations
|
|
23
|
+
|
|
24
|
+
You can help translate Web Clipper into your language. Submit your translation via pull request using the format found in the [/_locales](/src/_locales) folder.
|
|
25
|
+
|
|
26
|
+
### Features and bug fixes
|
|
27
|
+
|
|
28
|
+
See the [help wanted](https://github.com/obsidianmd/obsidian-clipper/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22) tag for issues where contributions are welcome.
|
|
29
|
+
|
|
30
|
+
## Roadmap
|
|
31
|
+
|
|
32
|
+
In no particular order:
|
|
33
|
+
|
|
34
|
+
- [ ] Annotate highlights
|
|
35
|
+
- [ ] Template directory
|
|
36
|
+
- [ ] Sync settings across browsers
|
|
37
|
+
- [x] A separate icon for Web Clipper (1.6.3)
|
|
38
|
+
- [x] Template validation (1.1.0)
|
|
39
|
+
- [x] Template logic (if/for) (1.1.0)
|
|
40
|
+
- [x] Save images locally ([Obsidian 1.8.0](https://obsidian.md/changelog/2024-12-18-desktop-v1.8.0/))
|
|
41
|
+
- [x] Translate UI into more languages — help is welcomed
|
|
42
|
+
|
|
43
|
+
## Developers
|
|
44
|
+
|
|
45
|
+
To build the extension:
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
npm run build
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
This will create three directories:
|
|
52
|
+
- `dist/` for the Chromium version
|
|
53
|
+
- `dist_firefox/` for the Firefox version
|
|
54
|
+
- `dist_safari/` for the Safari version
|
|
55
|
+
|
|
56
|
+
### Install the extension locally
|
|
57
|
+
|
|
58
|
+
For Chromium browsers, such as Chrome, Brave, Edge, and Arc:
|
|
59
|
+
|
|
60
|
+
1. Open your browser and navigate to `chrome://extensions`
|
|
61
|
+
2. Enable **Developer mode**
|
|
62
|
+
3. Click **Load unpacked** and select the `dist` directory
|
|
63
|
+
|
|
64
|
+
For Firefox:
|
|
65
|
+
|
|
66
|
+
1. Open Firefox and navigate to `about:debugging#/runtime/this-firefox`
|
|
67
|
+
2. Click **Load Temporary Add-on**
|
|
68
|
+
3. Navigate to the `dist_firefox` directory and select the `manifest.json` file
|
|
69
|
+
|
|
70
|
+
If you want to run the extension permanently you can do so with the Nightly or Developer versions of Firefox.
|
|
71
|
+
|
|
72
|
+
1. Type `about:config` in the URL bar
|
|
73
|
+
2. In the Search box type `xpinstall.signatures.required`
|
|
74
|
+
3. Double-click the preference, or right-click and select "Toggle", to set it to `false`.
|
|
75
|
+
4. Go to `about:addons` > gear icon > **Install Add-on From File…**
|
|
76
|
+
|
|
77
|
+
For iOS Simulator testing on macOS:
|
|
78
|
+
|
|
79
|
+
1. Run `npm run build` to build the extension
|
|
80
|
+
2. Open `xcode/Obsidian Web Clipper/Obsidian Web Clipper.xcodeproj` in Xcode
|
|
81
|
+
3. Select the **Obsidian Web Clipper (iOS)** scheme from the scheme selector
|
|
82
|
+
4. Choose an iOS Simulator device and click **Run** to build and launch the app
|
|
83
|
+
5. Once the app is running on the simulator, open **Safari**
|
|
84
|
+
6. Navigate to a webpage and tap the **Extensions** button in Safari to access the Web Clipper extension
|
|
85
|
+
|
|
86
|
+
### Run tests
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
npm test
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Or run in watch mode during development:
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
npm run test:watch
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Third-party libraries
|
|
99
|
+
|
|
100
|
+
- [webextension-polyfill](https://github.com/mozilla/webextension-polyfill) for browser compatibility
|
|
101
|
+
- [defuddle](https://github.com/kepano/defuddle) for content extraction and Markdown conversion
|
|
102
|
+
- [dayjs](https://github.com/iamkun/dayjs) for date parsing and formatting
|
|
103
|
+
- [lz-string](https://github.com/pieroxy/lz-string) to compress templates to reduce storage space
|
|
104
|
+
- [lucide](https://github.com/lucide-icons/lucide) for icons
|
|
105
|
+
- [dompurify](https://github.com/cure53/DOMPurify) for sanitizing HTML
|
|
106
|
+
|
|
107
|
+
## License
|
|
108
|
+
|
|
109
|
+
Obsidian Web Clipper source code is open source under the MIT License. All trademarks, icons, marketing copy, and other marketing assets are excluded from that license.
|