mirror of
https://github.com/arfct/itty-bitty.git
synced 2026-03-11 08:54:33 +00:00
Fix favicons and titles
This commit is contained in:
parent
6c4f31baae
commit
8a202650be
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
Loading…
Reference in a new issue