{"id":464,"date":"2013-08-13T15:26:04","date_gmt":"2013-08-13T09:56:04","guid":{"rendered":"http:\/\/smritiweb.com\/navin\/?p=464"},"modified":"2013-08-13T15:26:59","modified_gmt":"2013-08-13T09:56:59","slug":"a-delicious-bookmarklet-that-works-with-noscript","status":"publish","type":"post","link":"https:\/\/smritiweb.com\/navin\/technology\/a-delicious-bookmarklet-that-works-with-noscript","title":{"rendered":"A delicious bookmarklet that works with noscript"},"content":{"rendered":"<p>This is technical, so unless you&#8217;re a do-it-yourself programming\/javascript geek, you will not find it interesting.<\/p>\n<p>I was trying to solve this problem:<\/p>\n<ul>\n<li>I like to bookmark interesting links on my <a href=\"http:\/\/delicious.com\">delicious.com<\/a> account<\/li>\n<li>I like to use NoScript with my firefox &#8211; this disables javascript\/flash\/ads\/XSS and other things on a lot of sites, giving me a much more stable experience on various websites.<\/li>\n<\/ul>\n<p>Unfortunately, both of these things don&#8217;t really go well together. NoScript blocks the <a href=\"https:\/\/delicious.com\/tools\">delicious bookmarklet<\/a>, and at this time there doesn&#8217;t seem to be a any easy way to get it to work as it is. <\/p>\n<p>I tried adding <code>https:\/\/delicious\\.com\/save<\/code> to the Anti-XSS Protection Exceptions in NoScript preferences but that did not help. <\/p>\n<p>Of course, I can always copy the URL of the site, go to <code>delicious.com<\/code> and then add the link manually, but that is too much effort. I do this often enough that I needed to automate the process. <\/p>\n<p>After some trial-and-error I decided that the problem was the use of iframes in the delicious bookmarklet. So I wrote this much simplified delicious bookmarklet which works like a charm.<\/p>\n<p>Here is the code for the bookmarklet:<\/p>\n<pre><code>javascript:window.location='https:\/\/delicious.com\/save?url='+encodeURIComponent(window.location.href)+\"&amp;title=\"+encodeURIComponent(window.document.title)+\"&amp;v=1.1\";\n<\/code><\/pre>\n<p>Just add a bookmark to your Bookmarks Toolbar with &#8220;Add to Delicious&#8221; as the name and the above code as the location. Now on any website, click on &#8220;Add to Delicious&#8221; and you get redirected to a page that prompts you for the tags and will then add the delicious bookmark.<\/p>\n<p>Note: if you want to automatically include the current selection as the note\/description in the bookmark, use this code instead (I haven&#8217;t tested it, since I&#8217;m not interested in a note, but I think it should work):<\/p>\n<pre><code>javascript:window.location='https:\/\/delicious.com\/save?url='+encodeURIComponent(window.location.href)+\"&amp;title=\"+encodeURIComponent(window.document.title)+\"&amp;note=\"+encodeURIComponent(\"\"+(window.getSelection?window.getSelection():window.document.getSelection?window.document.getSelection():window.document.selection.createRange().text))+\"&amp;v=1.1\";\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This is technical, so unless you&#8217;re a do-it-yourself programming\/javascript geek, you will not find it interesting. I was trying to solve this problem: I like to bookmark interesting links on my delicious.com account I like to use NoScript with my firefox &#8211; this disables javascript\/flash\/ads\/XSS and other things on a lot of sites, giving me &hellip; <a href=\"https:\/\/smritiweb.com\/navin\/technology\/a-delicious-bookmarklet-that-works-with-noscript\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">A delicious bookmarklet that works with noscript<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[7],"tags":[86,87,85,82,83,84,88],"class_list":["post-464","post","type-post","status-publish","format-standard","hentry","category-technology","tag-browser","tag-code","tag-firefox","tag-hacks","tag-javascript","tag-productivity","tag-programming"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>A delicious bookmarklet that works with noscript - Navin Kabra&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/smritiweb.com\/navin\/technology\/a-delicious-bookmarklet-that-works-with-noscript\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A delicious bookmarklet that works with noscript - Navin Kabra&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"This is technical, so unless you&#8217;re a do-it-yourself programming\/javascript geek, you will not find it interesting. I was trying to solve this problem: I like to bookmark interesting links on my delicious.com account I like to use NoScript with my firefox &#8211; this disables javascript\/flash\/ads\/XSS and other things on a lot of sites, giving me &hellip; Continue reading A delicious bookmarklet that works with noscript\" \/>\n<meta property=\"og:url\" content=\"https:\/\/smritiweb.com\/navin\/technology\/a-delicious-bookmarklet-that-works-with-noscript\" \/>\n<meta property=\"og:site_name\" content=\"Navin Kabra&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2013-08-13T09:56:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-08-13T09:56:59+00:00\" \/>\n<meta name=\"author\" content=\"navin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"navin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/smritiweb.com\\\/navin\\\/technology\\\/a-delicious-bookmarklet-that-works-with-noscript#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smritiweb.com\\\/navin\\\/technology\\\/a-delicious-bookmarklet-that-works-with-noscript\"},\"author\":{\"name\":\"navin\",\"@id\":\"https:\\\/\\\/smritiweb.com\\\/navin\\\/#\\\/schema\\\/person\\\/130f28d38e499f2b9110d0c637721a63\"},\"headline\":\"A delicious bookmarklet that works with noscript\",\"datePublished\":\"2013-08-13T09:56:04+00:00\",\"dateModified\":\"2013-08-13T09:56:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/smritiweb.com\\\/navin\\\/technology\\\/a-delicious-bookmarklet-that-works-with-noscript\"},\"wordCount\":290,\"keywords\":[\"browser\",\"code\",\"firefox\",\"hacks\",\"javascript\",\"productivity\",\"programming\"],\"articleSection\":[\"Technology\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/smritiweb.com\\\/navin\\\/technology\\\/a-delicious-bookmarklet-that-works-with-noscript\",\"url\":\"https:\\\/\\\/smritiweb.com\\\/navin\\\/technology\\\/a-delicious-bookmarklet-that-works-with-noscript\",\"name\":\"A delicious bookmarklet that works with noscript - Navin Kabra&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smritiweb.com\\\/navin\\\/#website\"},\"datePublished\":\"2013-08-13T09:56:04+00:00\",\"dateModified\":\"2013-08-13T09:56:59+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/smritiweb.com\\\/navin\\\/#\\\/schema\\\/person\\\/130f28d38e499f2b9110d0c637721a63\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/smritiweb.com\\\/navin\\\/technology\\\/a-delicious-bookmarklet-that-works-with-noscript#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/smritiweb.com\\\/navin\\\/technology\\\/a-delicious-bookmarklet-that-works-with-noscript\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/smritiweb.com\\\/navin\\\/technology\\\/a-delicious-bookmarklet-that-works-with-noscript#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/smritiweb.com\\\/navin\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"A delicious bookmarklet that works with noscript\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/smritiweb.com\\\/navin\\\/#website\",\"url\":\"https:\\\/\\\/smritiweb.com\\\/navin\\\/\",\"name\":\"Navin Kabra&#039;s Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/smritiweb.com\\\/navin\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/smritiweb.com\\\/navin\\\/#\\\/schema\\\/person\\\/130f28d38e499f2b9110d0c637721a63\",\"name\":\"navin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf5cad72058cee6c6e37f04651d1a0372c44dc1fa7e618be71b8c0e39dc54b15?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf5cad72058cee6c6e37f04651d1a0372c44dc1fa7e618be71b8c0e39dc54b15?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf5cad72058cee6c6e37f04651d1a0372c44dc1fa7e618be71b8c0e39dc54b15?s=96&d=mm&r=g\",\"caption\":\"navin\"},\"sameAs\":[\"http:\\\/\\\/smritiweb.com\\\/navin\"],\"url\":\"https:\\\/\\\/smritiweb.com\\\/navin\\\/author\\\/navin-2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"A delicious bookmarklet that works with noscript - Navin Kabra&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/smritiweb.com\/navin\/technology\/a-delicious-bookmarklet-that-works-with-noscript","og_locale":"en_US","og_type":"article","og_title":"A delicious bookmarklet that works with noscript - Navin Kabra&#039;s Blog","og_description":"This is technical, so unless you&#8217;re a do-it-yourself programming\/javascript geek, you will not find it interesting. I was trying to solve this problem: I like to bookmark interesting links on my delicious.com account I like to use NoScript with my firefox &#8211; this disables javascript\/flash\/ads\/XSS and other things on a lot of sites, giving me &hellip; Continue reading A delicious bookmarklet that works with noscript","og_url":"https:\/\/smritiweb.com\/navin\/technology\/a-delicious-bookmarklet-that-works-with-noscript","og_site_name":"Navin Kabra&#039;s Blog","article_published_time":"2013-08-13T09:56:04+00:00","article_modified_time":"2013-08-13T09:56:59+00:00","author":"navin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"navin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/smritiweb.com\/navin\/technology\/a-delicious-bookmarklet-that-works-with-noscript#article","isPartOf":{"@id":"https:\/\/smritiweb.com\/navin\/technology\/a-delicious-bookmarklet-that-works-with-noscript"},"author":{"name":"navin","@id":"https:\/\/smritiweb.com\/navin\/#\/schema\/person\/130f28d38e499f2b9110d0c637721a63"},"headline":"A delicious bookmarklet that works with noscript","datePublished":"2013-08-13T09:56:04+00:00","dateModified":"2013-08-13T09:56:59+00:00","mainEntityOfPage":{"@id":"https:\/\/smritiweb.com\/navin\/technology\/a-delicious-bookmarklet-that-works-with-noscript"},"wordCount":290,"keywords":["browser","code","firefox","hacks","javascript","productivity","programming"],"articleSection":["Technology"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/smritiweb.com\/navin\/technology\/a-delicious-bookmarklet-that-works-with-noscript","url":"https:\/\/smritiweb.com\/navin\/technology\/a-delicious-bookmarklet-that-works-with-noscript","name":"A delicious bookmarklet that works with noscript - Navin Kabra&#039;s Blog","isPartOf":{"@id":"https:\/\/smritiweb.com\/navin\/#website"},"datePublished":"2013-08-13T09:56:04+00:00","dateModified":"2013-08-13T09:56:59+00:00","author":{"@id":"https:\/\/smritiweb.com\/navin\/#\/schema\/person\/130f28d38e499f2b9110d0c637721a63"},"breadcrumb":{"@id":"https:\/\/smritiweb.com\/navin\/technology\/a-delicious-bookmarklet-that-works-with-noscript#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/smritiweb.com\/navin\/technology\/a-delicious-bookmarklet-that-works-with-noscript"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/smritiweb.com\/navin\/technology\/a-delicious-bookmarklet-that-works-with-noscript#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/smritiweb.com\/navin"},{"@type":"ListItem","position":2,"name":"A delicious bookmarklet that works with noscript"}]},{"@type":"WebSite","@id":"https:\/\/smritiweb.com\/navin\/#website","url":"https:\/\/smritiweb.com\/navin\/","name":"Navin Kabra&#039;s Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/smritiweb.com\/navin\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/smritiweb.com\/navin\/#\/schema\/person\/130f28d38e499f2b9110d0c637721a63","name":"navin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/cf5cad72058cee6c6e37f04651d1a0372c44dc1fa7e618be71b8c0e39dc54b15?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/cf5cad72058cee6c6e37f04651d1a0372c44dc1fa7e618be71b8c0e39dc54b15?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cf5cad72058cee6c6e37f04651d1a0372c44dc1fa7e618be71b8c0e39dc54b15?s=96&d=mm&r=g","caption":"navin"},"sameAs":["http:\/\/smritiweb.com\/navin"],"url":"https:\/\/smritiweb.com\/navin\/author\/navin-2"}]}},"_links":{"self":[{"href":"https:\/\/smritiweb.com\/navin\/wp-json\/wp\/v2\/posts\/464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smritiweb.com\/navin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smritiweb.com\/navin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smritiweb.com\/navin\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/smritiweb.com\/navin\/wp-json\/wp\/v2\/comments?post=464"}],"version-history":[{"count":1,"href":"https:\/\/smritiweb.com\/navin\/wp-json\/wp\/v2\/posts\/464\/revisions"}],"predecessor-version":[{"id":465,"href":"https:\/\/smritiweb.com\/navin\/wp-json\/wp\/v2\/posts\/464\/revisions\/465"}],"wp:attachment":[{"href":"https:\/\/smritiweb.com\/navin\/wp-json\/wp\/v2\/media?parent=464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smritiweb.com\/navin\/wp-json\/wp\/v2\/categories?post=464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smritiweb.com\/navin\/wp-json\/wp\/v2\/tags?post=464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}