{"id":5705,"date":"2011-01-11T19:35:31","date_gmt":"2011-01-11T18:35:31","guid":{"rendered":"http:\/\/www.chipwreck.de\/blog\/?p=5705"},"modified":"2011-05-17T01:21:43","modified_gmt":"2011-05-16T23:21:43","slug":"safari-pinboard-in-extension-2-0","status":"publish","type":"post","link":"https:\/\/www.chipwreck.de\/blog\/2011\/01\/11\/safari-pinboard-in-extension-2-0\/","title":{"rendered":"Safari pinboard.in extension 2.0"},"content":{"rendered":"<p>I&#8217;d call this release feature complete (for now..). New features below. Don&#8217;t hesitate to report bugs or leave comments and suggestions (link at the bottom).<!--more--><\/p>\n<h4>Improved Context menu: Add Link targets<\/h4>\n<p>If you right-click on a link, the context menu changes from <q>Add current page<\/q> to <q>Add link<\/q><\/a>, so you can easily add the target of a link. The same goes for <q>Read later<\/q>.<\/p>\n<p><a href=\"https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2011\/01\/Context-menu-on-links-2.0.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2011\/01\/Context-menu-on-links-2.0-120x85.png\" alt=\"Context menu on links (2.0)\" title=\"Context menu on links (2.0)\" width=\"120\" height=\"85\" class=\"alignnone size-thumbnail wp-image-5750\" srcset=\"https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2011\/01\/Context-menu-on-links-2.0-120x85.png 120w, https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2011\/01\/Context-menu-on-links-2.0-300x213.png 300w, https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2011\/01\/Context-menu-on-links-2.0.png 435w\" sizes=\"auto, (max-width: 120px) 100vw, 120px\" \/><\/a><\/p>\n<h4>Improved Bookmark Search<\/h4>\n<p>If you select a text on a website and press the shortcut for <q>Search Bookmarks<\/q> (Cmd+Shift+F by default), then the selected text is automatically used as search text.<\/p>\n<p><a href=\"https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2011\/01\/Search-with-selection-2.0.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2011\/01\/Search-with-selection-2.0-300x56.png\" alt=\"\" title=\"Search with selection 2.0\" width=\"300\" height=\"56\" class=\"alignnone size-medium wp-image-5732\" srcset=\"https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2011\/01\/Search-with-selection-2.0-300x56.png 300w, https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2011\/01\/Search-with-selection-2.0-120x22.png 120w, https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2011\/01\/Search-with-selection-2.0.png 429w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h4>New: Reuse existing Tabs<\/h4>\n<p><a href=\"https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2011\/01\/Settings-2.0-e1294367947861.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2011\/01\/Settings-2.0-e1294367947861-120x116.png\" alt=\"Pinbar Settings (2.0)\" title=\"Pinbar Settings (2.0)\" width=\"120\" height=\"116\" class=\"alignnone size-thumbnail wp-image-5741\" srcset=\"https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2011\/01\/Settings-2.0-e1294367947861-120x116.png 120w, https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2011\/01\/Settings-2.0-e1294367947861-300x292.png 300w, https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2011\/01\/Settings-2.0-e1294367947861.png 452w\" sizes=\"auto, (max-width: 120px) 100vw, 120px\" \/><\/a><\/p>\n<p>Can be enabled in the settings. It basically opens <q>Open Pinboard<\/q>, <q>Unread Bookmarks<\/q> and <q>Search Pinboard<\/q> always in the same tab\/window if the page is already open &#8211; so you don&#8217;t end up with more tabs than necessary.<\/p>\n<h4>New: Unread Button<\/h4>\n<p><a href=\"https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2011\/01\/Unread-button-badge-2.0.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2011\/01\/Unread-button-badge-2.0.png\" alt=\"Unread button with badge (2.0)\" title=\"Unread button with badge (2.0)\" width=\"132\" height=\"42\" class=\"alignnone size-full wp-image-5747\" srcset=\"https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2011\/01\/Unread-button-badge-2.0.png 132w, https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2011\/01\/Unread-button-badge-2.0-120x38.png 120w\" sizes=\"auto, (max-width: 132px) 100vw, 132px\" \/><\/a><\/p>\n<p>You can add the Unread Button to the address bar &#8211; right click on the bar and choose &#8220;Customize Toolbar&#8230;&#8221;. It takes you straight to your unread bookmarks. So far, so boring.<\/p>\n<p>But if you enable <q>Show number of unread bookmarks<\/q> (in the settings) the button has a red number badge showing the number of your unread bookmarks. The number is being updated every 10 minutes.<\/p>\n<p><em>Please note: This is quite experimental and I tried the very best to handle all possible errors. In case of an error an alert appears and the function is disabled. Report bugs if you hit them, thanks! (Link below)<\/em><\/p>\n<p><small>Implementation detail: Currently this is quite a hack (and it&#8217;s not the first one),  because the pinboard.in-API doesn&#8217;t yet allow to query the number of unread items, so a webpage (=your unread bookmarks) is being loaded in the background and the extension tries to find the number on this page. How? Well, it&#8217;s enclosed in an HTML-Tag with a certain class. As you can imagine this isn&#8217;t what one would call <q>Best Practice<\/q> :) But it works and I&#8217;m looking forward to an update of the pinboard.in-API..<\/small><\/p>\n<h4>Misc other stuff<\/h4>\n<ul>\n<li>Keyboard shortcut to toggle the Toolbar Cmd-Shift-O<\/li>\n<li>Add to pinboard via keyboard or context menu now uses the selection (if present) as description.<\/li>\n<li>Code minified.<\/li>\n<li>Toolbar somewhat reordered.<\/li>\n<li>Search field is cleared when pressing escape.<\/li>\n<li>Alert if you&#8217;re trying to enable  unread badge but the button ain&#8217;t visible.<\/li>\n<li>Code clean up, crazy messaging stuff between the three scripts.<\/li>\n<\/ul>\n<p class=\"warning\" style=\"padding:1em;\"><a href=\"\/blog\/software\/safari-pinboard-extension\/\"><strong style=\"color:white\">Download, comment, report bugs, suggestions, donate&#8230;click here &raquo;<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;d call this release feature complete (for now..). New features below. Don&#8217;t hesitate to report bugs or leave comments and suggestions (link at the bottom).<\/p>\n","protected":false},"author":2,"featured_media":5716,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[38],"tags":[45,11,48,44,43,19,33],"class_list":["post-5705","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-updates","tag-bookmarks","tag-browsers","tag-delicious","tag-pinboard","tag-safari","tag-software","tag-update"],"jetpack_featured_media_url":"https:\/\/www.chipwreck.de\/blog\/wp-content\/uploads\/2011\/01\/Unread-Button-2.0.png","jetpack_shortlink":"https:\/\/wp.me\/paPEN-1u1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.chipwreck.de\/blog\/wp-json\/wp\/v2\/posts\/5705","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chipwreck.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chipwreck.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chipwreck.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chipwreck.de\/blog\/wp-json\/wp\/v2\/comments?post=5705"}],"version-history":[{"count":0,"href":"https:\/\/www.chipwreck.de\/blog\/wp-json\/wp\/v2\/posts\/5705\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.chipwreck.de\/blog\/wp-json\/wp\/v2\/media\/5716"}],"wp:attachment":[{"href":"https:\/\/www.chipwreck.de\/blog\/wp-json\/wp\/v2\/media?parent=5705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chipwreck.de\/blog\/wp-json\/wp\/v2\/categories?post=5705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chipwreck.de\/blog\/wp-json\/wp\/v2\/tags?post=5705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}