{"id":23,"date":"2014-02-14T12:00:00","date_gmt":"2014-02-14T12:00:00","guid":{"rendered":"https:\/\/eric.tedjamulia.com\/blog\/bookmarklet-maker\/"},"modified":"2014-02-14T12:00:00","modified_gmt":"2014-02-14T12:00:00","slug":"bookmarklet-maker","status":"publish","type":"post","link":"https:\/\/eric.tedjamulia.com\/blog\/bookmarklet-maker\/","title":{"rendered":"A little bookmarklet maker"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I keep making little bookmarklets and then forgetting the annoying part of turning JavaScript into a usable Favorites link. So I made a page to do that part for me.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Paste in the script and it builds a link with the <code>javascript:<\/code> prefix, along with the address text to copy. The code squeezes out some whitespace and escapes quotation marks for the generated link. It is a small convenience tool, not a full JavaScript minifier; regular expressions do not suddenly make it a compiler.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I also put some useful examples and instructions there for desktop IE10 and Windows Phone 8. A couple of the examples deal with touch behavior, including making hover menus usable and changing <code>msTouchAction<\/code> for panning and zooming. These are tiny fixes, but it is handy to carry them around in a bookmark instead of rewriting them every time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/etedj.com\/projects\/bookmarklets.html\">Open the bookmarklet maker<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I keep making little bookmarklets and then forgetting the annoying part of turning JavaScript into a usable Favorites link. So I made a page to do that part for me. Paste in the script and it builds a link with the javascript: prefix, along with the address text to copy. The code squeezes out some [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":24,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[14,10,3,23],"class_list":["post-23","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tools","tag-bookmarklets","tag-ie10","tag-javascript","tag-windows-phone"],"_links":{"self":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":0,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts\/23\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/media\/24"}],"wp:attachment":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/media?parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/categories?post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/tags?post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}