-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a browser bookmarklet for quick-adding recipes #431
Comments
You mean as an alternative to #288? So please be a bit more specific, what this issue is about. Is it a suggestion? Is it a question if you can open a PR 😄? |
I'm not a coder per se, so I guess this is a suggestion/feature request. I don't mean that a browser bookmarklet would replace the suggested "batch add" functionality in. Rather, it would streamline the saving of a recipe. Perhaps a use-case scenario would help: If I'm browsing, say NY Times recipes and I see one I want to add to my NC Cookbook, while I'm on that recipe page, I click the bookmarklet (saved conveniently to my browser's bookmarks toolbar) and it's added without having to copy the URL, open a new tab, go to Cookbook, paste the URL, and click the button to save it to Cookbook. Again, I'm not up on all of the security/architectural implications of this, but I do know that the Nextcloud Bookmarks app has a bookmarklet that works similar to my scenario above (i.e. when you're on a page that you want to save to your Nextcloud bookmarks app, you execute the bookmarklet while on that page and it "just does it"). |
It has been many years since I have used bookmarklets. At the time, I found them super useful. As @paulburton0 mentioned, the Bookmark app has a bookmarklet. F̶o̶r̶ ̶s̶o̶m̶e̶ ̶r̶e̶a̶s̶o̶n̶,̶ ̶I̶ ̶c̶a̶n̶'̶t̶ ̶s̶e̶e̶m̶ ̶t̶o̶ ̶a̶d̶d̶ ̶i̶t̶ ̶t̶o̶ ̶a̶n̶y̶ ̶b̶r̶o̶w̶s̶e̶r̶.̶ This bookmarklet creates a add bookmark page popup that has some fields prepopulated. I wonder if the popup approach could be used with the 'Recipe URL' field prepopulated. 🤔 |
The News app used to have a bookmarklet which was generated in its settings area. The user dragged it to their bookmarks toolbar, and then clicking on it would add the URL to the News app itself. The exact same thing would be amazing (you could even almost straight steal the code!) just putting the URL into the Cookbook app instead. From memory, the way it dealt with the security side was that you had to currently be logged in to Nextcloud using that browser for it to work. |
You are right and I see another benefit for this: Pages loading parts of their content in a lazy fashion could be parsed better. We would let the client browser do the loading and heavy lifting and just parse the DOM and forward the result to the cookbook app. So, this is for sure on the task list. |
A bookmarklet would make saving recipes to Cookbook easy without the "heavyweight" development overhead of creating a full-blown API or a browser extension.
The text was updated successfully, but these errors were encountered: