Git Product home page Git Product logo

obsidian-bookmarklet-maker's Introduction

Obsidian Bookmarklet Maker

A WebApp to make Obsidian Clippers or Bookmarklets - to capture webpages or data from the web.

MIT License

Demo

Demo

Generate Clipper

  1. Visit Obsidian Clipper Maker.
  2. Enter the name of the clipper.
  3. Enter the name of the Obsidian Vault into which the clipped data has to be placed.
  4. Enter the optional folder name and tags.
  5. Click the Generate Button.
  6. Drag and drop the bookmarklet from the right side (light purple colored element) to the favorites/bookmark bar.

Using Clipper

  1. Click the bookmarklets when you are any webpage. The whole page will be converted into markdown and clipped to the Vault.
  2. Select a part of the webpage and click the bookmarklet. The selected content will be converted into markdown and clipped to the Vault.

License

MIT

Acknowledgements


If you like my work, you could consider buying me a coffee. It is unnecessary, but appreciated ๐Ÿ™‚

Buy Me A Coffee

obsidian-bookmarklet-maker's People

Contributors

ganesshkumar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

obsidian-bookmarklet-maker's Issues

[BUG] Content security policies don't allow embed

Describe the bug

With content security policy enforcement in Safari this needs to embed the packages instead of importing them. My gist over here fixes it:

https://gist.github.com/philips/8f4e93cb2be2428344ece63aecca7941

https://github.blog/2013-04-19-content-security-policy/
https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP

[Error] Refused to load https://unpkg.com/[email protected]?module because it does not appear in the script-src directive of the Content Security Policy.
[Error] Refused to load https://unpkg.com/@tehshrike/[email protected] because it does not appear in the script-src directive of the Content Security Policy.

To Reproduce
Steps to reproduce the behavior:

  1. Go to chat.openai.com
  2. Click on the bookmarklet
  3. Open developer panel
  4. See CSP error

[BUG] Failed to fetch turndown 6.0.0 package

Describe the bug
I created a bookmarklet and it doesn't do anything.
The web console shows:

Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: https://unpkg.com/[email protected]?module
Promise.then (async)
(anonymous) @ VM524:1
(anonymous) @ VM524:102

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://obsidian-clipper-maker.ganesshkumar.com/
  2. Enter "Obsidian Clipper", "Zettel", "_inbox" for the first 3 fields
  3. Click Generate
  4. Drag the generated bookmarklet to bookmarks bar
  5. Go to a site and click on bookmarklet
  6. See error in Web Console

Expected behavior
The bookmarklet to do its thing.

Screenshots
screenshot 2022-06-14T185644Z

Desktop (please complete the following information):

Additional context
Add any other context about the problem here.

[Feature Request] a version with the metadata being imported in yaml instead of in frontmatter

I would like to have the metadata under yaml. Its my personal preference. I sadly cant configure the code, because i have no clue (i tried and made the code unusable). Thank you if you provide a option.

What i mean:

(Current Version)

author:: null
source:: Obsidian Clipper
clipped:: [[2023-02-18]]
published::

โ–ผ

(Personal Preference)

  • -- yaml lines
    #- Obsidian Clipper
    author: null
    source: Obsidian Clipper
    clipped: [[2023-02-18]]
    published:
  • -- yaml lines

Another request would be to be able to configure the template by yourself (for non javascript knowers)
So that you could customize the given frontmatter keys.

โ–ผ

Wished version
--- yaml lines
#- Obsidian Clipper
author: null
source: Obsidian Clipper
clipped: [[2023-02-18]]
published:

Own Metadata

Aliases:
Note Type:
....
--- yaml lines

problem with the "Copy HTML Clipper" button

Describe the bug
"Copy HTML Clipper" button copies the exact same code as the "Copy JS Clipper" instead of the code shown in the "Generated HTML Clipper" textarea.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://obsidian-clipper-maker.ganesshkumar.com/
  2. Click on "Copy HTML Clipper"
  3. Clipboard contains the same text as the text in the "Generated Javascript Clipper" textarea

Expected behavior
I expected the clipboard to contain the same text as the text in the "Generated HTML Clipper" textarea

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS Ventura
  • Version 13.5
  • Using latest version of Firefox browser

Smartphone (please complete the following information):
n/a

Additional context
Add any other context about the problem here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.