Kami's Corner

I made a bookmarklet that lets you quickly edit your blogposts

Update: Apparently this doesn't work on safari. So, if you're using that browser... Well, get a better browser first of all, but if you don't wanna do that then this might not work for you.

A while ago, Herman added the post token into the meta tags of blogposts.

Thanks to this change, I can now make a bookmarklet that you can click to quickly edit the post you're viewing.

Simply add the code below as a bookmark to your browser. If you click it while viewing a blogpost, it will redirect you to the edit page of that post.

javascript:(function(){const blogname=document.querySelectorAll('meta')[2].name;const post_token=document.querySelector('meta[name="token"]').content;window.location.replace(`https://bearblog.dev/${blogname}/dashboard/posts/${post_token}/`);})();