-
-
Notifications
You must be signed in to change notification settings - Fork 784
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: re-add and fix the bookmarklet instructions to docs (#2419)
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
docs/docs/documentation/community-guide/import-recipe-bookmarklet.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!-- prettier-ignore --> | ||
!!! info | ||
This guide was submitted by a community member. Find something wrong? Submit a PR to get it fixed! | ||
|
||
You can use bookmarklets to generate a bookmark that will take your current location, and open a new tab that will try to import that URL into Mealie. | ||
|
||
You can use a [bookmarklet generator site](https://caiorss.github.io/bookmarklet-maker/) and the code below to generate a bookmark for your site. Just change the `http://localhost:8080` to your sites web address and follow the instructions. | ||
|
||
<!-- prettier-ignore --> | ||
!!! note | ||
There is no trailing `/` at the end of the url! | ||
|
||
```js | ||
var url = document.URL; | ||
var mealie = "http://localhost:8080"; | ||
var dest = mealie + "/recipe/create/url?recipe_import_url=" + url; | ||
window.open(dest, "_blank"); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters