Created
July 31, 2019 15:05
-
-
Save thekarel/4b6a9f06ddf346d87d766815071c6b25 to your computer and use it in GitHub Desktop.
Bookmarklet: Copy nutrition information from Ocado
This file contains hidden or 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
javascript:var vals = window.getSelection().toString().split('\n').map(row => {const cells = row.split('\t'); return cells[1]}).map(val => val.replace(/(g|kcal)$/, '')).join('\t');navigator.clipboard.readText(vals).then(() => alert(vals)).catch(err => alert(err)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment