3 ms·
How do you "compile" the bookmarklets? I know of https://bookmarkl.ink/ https://bookmarkl.ink/ but then we're back trusting some third-party service again. I ge
by olejorgenb 3y ago
How do you "compile" the bookmarklets? I know of https://bookmarkl.ink/ https://bookmarkl.ink/ but then we're back trusting some third-party service again. I get that it's not rocket science, but this is definitively a small hurdle to overcome.
- account-5 3y agoI don't compile them. I just write the JavaScript and wrap it in an anonymous function then save the code as a bookmark.
- olejorgenb 3y agoAh, I thought it didn't work to simply paste the javascript directly into the bookmark. Don't you have to minimally URI encode it? `javascript:URI_ENCODED_CODE`
- madacol 3y agoNo, Firefox automatically encodes it, but it does have other gotchas because line-breaks are removed - You have to put `;` on each statement - You cannot use inline comments, // you cannot do this