https://github.com/kevlened/foodmarklet
Bookmarklet version of plainoldrecipe
https://github.com/kevlened/foodmarklet
Last synced: 3 months ago
JSON representation
Bookmarklet version of plainoldrecipe
- Host: GitHub
- URL: https://github.com/kevlened/foodmarklet
- Owner: kevlened
- License: agpl-3.0
- Created: 2020-12-18T03:58:52.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-23T21:13:51.000Z (over 4 years ago)
- Last Synced: 2024-11-06T08:55:42.757Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 65.4 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# foodmarklet
This is a bookmarklet-only version of the awesome [plainoldrecipe](https://github.com/poundifdef/plainoldrecipe). It's compatible with more websites, because the server version needs a whitelist of domains for security reasons, while this bookmarklet doesn't.
## Install
1. Drag this bookmark to your bookmarks bar: [foodmarklet](https://example.com/REPLACE_SOURCE_WITH_CODE_IN_README)
2. Right-click the bookmark and change the url to this code:
```
javascript:void((()=>{let js=document.createElement('script');js.src="//unpkg.com/foodmarklet";document.head.appendChild(js)})());
```
## Usage1. Navigate to a recipe. Example
2. Click the `foodmarklet` bookmark## Standalone
The normal bookmarklet loads js from a CDN so you automatically get updates. If you'd like to run it completely locally instead, create a bookmarklet with the contents of the [standalone file](https://github.com/kevlened/foodmarklet/blob/master/standalone).
## Troubleshooting
If you have trouble with a recipe:
1. Ensure you have the latest version.
2. File an issue or submit a PR.## Contributing
If you'd like to contribute:
1. `index.js` is probably all you need
2. Run `yarn standalone` to create a standalone version to test your changes