Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
olejorgenb
2y ago
0 comments
Share
Ah, 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`
0 comments
default
newest
oldest
madacol
2y ago
No, 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
j
/
k
navigate · click thread line to collapse