Skip to content

little-vince/lred

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LRED

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.

Screenshots

Visitors

This is what the plugin looks like to the visitors on your blog. Visitor Screenshot

You

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

Installation

Step 1

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>

Step 2

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>

Step 3

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.

Changelog

0.6 (140204)

  • Added documentation and a check

0.5 (140123)

  • Added support for anonymous users (people who aren't logged in)
  • Fixed issue where script was not being executed in Chrome

0.4 (140122)

  • Added support for infinite scroll

0.3 (140114)

  • Improved performance and simplified installation

0.2 (131222)

  • Fixed issue caused by Tumblr update

0.1 (121019)

  • Initial release

License

This script is released "as is" under the MIT License.

Copyright

Copyright (c) 2014 little-vince

About

Adds a Like, Reblog, Edit and Delete buttons under every Tumblr post

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors