diff --git a/docs/index.js b/docs/index.js index ebd29c6..dbf9ba5 100644 --- a/docs/index.js +++ b/docs/index.js @@ -95,9 +95,10 @@ } info.d = info.d?.replace(/-/g, " ").replace(/–/g, "-"); + if (info.f) setFavicon(info.f); var slashIndex = fragment.indexOf("/"); - var title = fragment.substring(0, slashIndex) || info.t; + var title = fragment.substring(0, slashIndex) || info.title; if (title) title = decodeURIComponent(title.replace(/_/g, " ")) var type = undefined; var description = undefined; diff --git a/docs/bookmarklet.url.js b/docs/render/bookmarklet.url.js similarity index 83% rename from docs/bookmarklet.url.js rename to docs/render/bookmarklet.url.js index 08e9dcb..06a4850 100644 --- a/docs/bookmarklet.url.js +++ b/docs/render/bookmarklet.url.js @@ -1,5 +1,4 @@ -https://itty.bitty.app/Recipe_Bookmarklet/Simplify_recipes_with_a_click./%F0%9F%8D%B4#itty.bitty.recipe/ - +// https://itty.bitty.app/itty-bitty-recipes/d/Clean-your-recipes-with-itty-bitty/f/%F0%9F%8D%B3/#Send_to_itty.bitty/javascript:f=new%20FileReader();f.onload=function(e){top.location.href=('https://itty.bitty.app/#/'+e.target.result)};f.readAsDataURL(new%20Blob([document.documentElement.outerHTML],{type:'text/raw+html;render=parse;encode=none;charset=utf-8'})); // JSON extraction