{"id":617,"date":"2021-08-07T13:29:16","date_gmt":"2021-08-07T12:29:16","guid":{"rendered":"https:\/\/eocanha.org\/blog\/?p=617"},"modified":"2021-09-08T13:06:12","modified_gmt":"2021-09-08T12:06:12","slug":"beyond-google-bookmarks","status":"publish","type":"post","link":"https:\/\/eocanha.org\/blog\/2021\/08\/07\/beyond-google-bookmarks\/","title":{"rendered":"Beyond Google Bookmarks"},"content":{"rendered":"\n<p>I was a happy user of Del.icio.us for many years until the service closed. Then I moved my links to <a href=\"https:\/\/www.google.com\/bookmarks\">Google Bookmarks<\/a>, which offered basically the same functionality (at least for my needs): link storage with title, tags and comments. I&#8217;ve carefully tagged and filed more than 2500 links since I started, and I&#8217;ve learnt to appreciate the usefulness of searching by tag to find again some precious information that was valuable to me in the past.<\/p>\n\n\n\n<p>Google Bookmarks is a very old and simple service that &#8220;just works&#8221;. Sometimes it looked as if Google had just forgotten about it and let it run for years without anybody noticing&#8230; until now. It&#8217;s closing on September 2021.<\/p>\n\n\n\n<p>I didn&#8217;t want to lose all my links, still need a link database searchable by tags and don&#8217;t want to be locked-in again in a similar service that might close in some years, so I wrote <a href=\"https:\/\/github.com\/eocanha\/bookmark-search\" data-type=\"URL\" data-id=\"https:\/\/github.com\/eocanha\/bookmark-search\">my own super-simple alternative to it<\/a>. It&#8217;s called <code><a href=\"https:\/\/github.com\/eocanha\/bookmark-search\/blob\/main\/bs\" data-type=\"URL\" data-id=\"https:\/\/github.com\/eocanha\/bookmark-search\/blob\/main\/bs\">bs<\/a><\/code>, sort of bookmark search.<\/p>\n\n\n\n<p>The usage can&#8217;t be simpler, just add the tag you want to look for and it will print a list of links that have that tag:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ bs webassembly\n &nbsp;title = Canvas filled three ways: JS, WebAssembly and WebGL | Compile \n &nbsp;&nbsp;&nbsp;url = https:\/\/compile.fi\/canvas-filled-three-ways-js-webassembly-and-webgl\/ \n &nbsp;&nbsp;tags = canvas,graphics,html5,wasm,webassembly,webgl \n &nbsp;&nbsp;date = 2020-02-18 16:48:56 \ncomment = &nbsp;\n \n &nbsp;title = Compiling to WebAssembly: It\u2019s Happening! \u2605 Mozilla Hacks \u2013 the Web developer blog \n &nbsp;&nbsp;&nbsp;url = https:\/\/hacks.mozilla.org\/2015\/12\/compiling-to-webassembly-its-happening\/ \n &nbsp;&nbsp;tags = asm.js,asmjs,emscripten,llvm,toolchain,web,webassembly \n &nbsp;&nbsp;date = 2015-12-18 09:14:35 \ncomment = <\/pre>\n\n\n\n<p>If you call the tools without parameters, it will prompt data to insert a new link or edit it if the entered url matches a preexisting one:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ bs \nurl: https:\/\/compile.fi\/canvas-filled-three-ways-js-webassembly-and-webgl\/ \ntitle: Canvas filled three ways: JS, WebAssembly and WebGL | Compile \ntags: canvas,graphics,html5,wasm,webassembly,webgl \ncomment: \n<\/pre>\n\n\n\n<p>The data is stored in an sqlite database and I&#8217;ve written some JavaScript snippets to <a href=\"https:\/\/github.com\/eocanha\/bookmark-search\/blob\/main\/import\/delicious-bookmarks-to-sqlite.txt\">import the Delicious exported bookmarks file<\/a> and the <a href=\"https:\/\/github.com\/eocanha\/bookmark-search\/blob\/main\/import\/google-bookmarks-to-sqlite.txt\" data-type=\"URL\" data-id=\"https:\/\/github.com\/eocanha\/bookmark-search\/blob\/main\/import\/google-bookmarks-to-sqlite.txt\">Google Bookmarks exported bookmarks file<\/a>. Those snippets are meant to be copypasted in the JavaScript console of your browser while you have the exported bookmarks html file open on it. They&#8217;ll generate SQL sentences that will populate the database for the first time with your preexisting data.<\/p>\n\n\n\n<p>By now the tool doesn&#8217;t allow to delete bookmarks (I haven&#8217;t had the need yet) and I still need to find a way to simplify its usage through the browser with a bookmarklet to ease adding new bookmarks automatically. But that&#8217;s a task for other day. By now I have enough just by knowing that my bookmarks are now safe.<\/p>\n\n\n\n<p>Enjoy!<\/p>\n\n\n\n<p>[UPDATE: 2020-09-08]<\/p>\n\n\n\n<p>I&#8217;ve now coded an <a href=\"https:\/\/github.com\/eocanha\/bookmark-search\/blob\/main\/bs.php\" data-type=\"URL\" data-id=\"https:\/\/github.com\/eocanha\/bookmark-search\/blob\/main\/bs.php\">alternate variant of the database client<\/a> that can be hosted on any web server with PHP and SQLite3. The bookmarks can now be managed from a browser in a centralized way, in a similar fashion as you could before with Google Bookmarks and Delicious. As you can see in the screenshot, the style resembles Google Bookmarks in some way.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/eocanha.org\/blog\/wp-content\/uploads\/2021\/09\/image.png\"><img loading=\"lazy\" width=\"800\" height=\"400\" src=\"https:\/\/eocanha.org\/blog\/wp-content\/uploads\/2021\/09\/image.png\" alt=\"\" class=\"wp-image-626\" srcset=\"https:\/\/eocanha.org\/blog\/wp-content\/uploads\/2021\/09\/image.png 800w, https:\/\/eocanha.org\/blog\/wp-content\/uploads\/2021\/09\/image-300x150.png 300w, https:\/\/eocanha.org\/blog\/wp-content\/uploads\/2021\/09\/image-768x384.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>You can easily create a quick search \/ search engine link in Firefox and Chrome (I use &#8220;d&#8221; as keyword, a tradition from the Delicious days, so that if I type &#8220;d debug&#8221; in the browser search bar it will look for that tag in the bookmark search page). Also, the \ud83d\udd16 button opens a popup that shows a bookmarklet code that you can add to your browser bookmark bar. When you click on that bookmarklet, the edit page prefilled with the current page info is opened, so you can insert or edit a new entry.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/eocanha.org\/blog\/wp-content\/uploads\/2021\/09\/image-1.png\"><img loading=\"lazy\" width=\"500\" height=\"300\" src=\"https:\/\/eocanha.org\/blog\/wp-content\/uploads\/2021\/09\/image-1.png\" alt=\"\" class=\"wp-image-627\" srcset=\"https:\/\/eocanha.org\/blog\/wp-content\/uploads\/2021\/09\/image-1.png 500w, https:\/\/eocanha.org\/blog\/wp-content\/uploads\/2021\/09\/image-1-300x180.png 300w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>There&#8217;s a trick to use the bookmarklet on Android Chrome: Use a rare enough name for the bookmarklet (I used &#8220;+ Bookmark \ud83d\udd16&#8221;). Then, when you want to add the current page to the webapp, just start typing &#8220;+ book&#8221;&#8230; in the search bar and the saved bookmarklet link will appear as an autocomplete option. Click on it and that&#8217;s it.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/eocanha.org\/blog\/wp-content\/uploads\/2021\/09\/bs-android.jpg\"><img loading=\"lazy\" width=\"338\" height=\"600\" src=\"https:\/\/eocanha.org\/blog\/wp-content\/uploads\/2021\/09\/bs-android.jpg\" alt=\"\" class=\"wp-image-628\" srcset=\"https:\/\/eocanha.org\/blog\/wp-content\/uploads\/2021\/09\/bs-android.jpg 338w, https:\/\/eocanha.org\/blog\/wp-content\/uploads\/2021\/09\/bs-android-169x300.jpg 169w\" sizes=\"(max-width: 338px) 100vw, 338px\" \/><\/a><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>Enjoy++!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was a happy user of Del.icio.us for many years until the service closed. Then I moved my links to Google Bookmarks, which offered basically the same functionality (at least for my needs): link storage with title, tags and comments. I&#8217;ve carefully tagged and filed more than 2500 links since I started, and I&#8217;ve learnt &hellip; <a href=\"https:\/\/eocanha.org\/blog\/2021\/08\/07\/beyond-google-bookmarks\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Beyond Google Bookmarks<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,1],"tags":[],"_links":{"self":[{"href":"https:\/\/eocanha.org\/blog\/wp-json\/wp\/v2\/posts\/617"}],"collection":[{"href":"https:\/\/eocanha.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eocanha.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eocanha.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eocanha.org\/blog\/wp-json\/wp\/v2\/comments?post=617"}],"version-history":[{"count":6,"href":"https:\/\/eocanha.org\/blog\/wp-json\/wp\/v2\/posts\/617\/revisions"}],"predecessor-version":[{"id":629,"href":"https:\/\/eocanha.org\/blog\/wp-json\/wp\/v2\/posts\/617\/revisions\/629"}],"wp:attachment":[{"href":"https:\/\/eocanha.org\/blog\/wp-json\/wp\/v2\/media?parent=617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eocanha.org\/blog\/wp-json\/wp\/v2\/categories?post=617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eocanha.org\/blog\/wp-json\/wp\/v2\/tags?post=617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}