As Chrome mangles Bookmarklets to a partially escaped form (I think using Percent encoding), I first tried to document my Bookmarklets in Markdown so I could easier edit them and copy these JavaScript links to various browsers. That failed, because the html rendered from the Markdown didn't contain the links any more. So I now use plain html for documenting them which is a pain to edit but works.
[Wayback/Archive] Some bookmarklets hosted as [Wayback/Archive] Some bookmarklets - cached 1 minute - throttled and [Wayback/Archive] Some bookmarklets - cached 1 year - CDN.
This is why:
- Technically you can include JavaScript for Bookmarklets in Markdown documents both as Markdown links (either with escapes or by splitting reference and link in two pieces) and html links (as embedding html in Markdown is allowed): [Wayback/Archive] Bookmarklet link in Markdown document - Stack Overflow (thanks [Wayback/Archive] Adam Haile, [Wayback/Archive] Zombo and [Wayback/Archive] stevemegson)
- Because of security reasons, many hosters will filter out JavaScript when transforming Markdown in html [Wayback/Archive] Embed JavaScript in GitHub README.md - Stack Overflow (thanks [Wayback/Archive] Matt Smith and [Wayback/Archive] coyotte508)
Searches: [Wayback/Archive] markdown javascript in link - Google Search and [Wayback/Archive] "embed javascript" in markdown - Google Search.
--jeroen
No comments:
Post a Comment