LRED (Like, Reblog, Edit, Delete) is a javascript plugin for your Tumblr that adds Like, Reblog, Edit and Delete buttons under each of your posts. This may be useful when doing mass post editing or to avoid having your visitors click into the permalink page in order to like or reblog your post.
This is what the plugin looks like to the visitors on your blog.

This is what the plugin looks like to you, the owner of the blog.

Add the following code to your Tumblr theme, right before the </head> tag.
<script type="text/javascript" src="http://little-vince.tumblr.com/lred.js"></script>Place the following code somewhere between the {block:Date} and {/block:Date} tags. If you have more than one set of those tags then you will need to work out which one is best to put it in.
<div class="reblogframe">
<iframe class="lred" scrolling="no" width="100%" height="26px" frameborder="0" data-plink="{Permalink}" data-reblog="{ReblogURL}" data-user="{Name}" data-pic="{URLEncodedPortraitURL-64}"></iframe>
</div>That's it! You might need to edit your theme a bit to make it fit in a little more but assuming all things went well, it should look vaguely similar to the screenshots up there.
- Added documentation and a check
- Added support for anonymous users (people who aren't logged in)
- Fixed issue where script was not being executed in Chrome
- Added support for infinite scroll
- Improved performance and simplified installation
- Fixed issue caused by Tumblr update
- Initial release
This script is released "as is" under the MIT License.
Copyright (c) 2014 little-vince