Skip to content

Instantly share code, notes, and snippets.

@ethertank
Last active December 17, 2015 19:38
Show Gist options
  • Save ethertank/5661410 to your computer and use it in GitHub Desktop.
Save ethertank/5661410 to your computer and use it in GitHub Desktop.
Tumblr のダッシュボードに、いっちゃん上のポストを消すボタンを追加するやつ。後でもうちょいマシなものにして userscript 化。
(function($){
$("body").append('<button id="b">button</button>');
$("#b").css({position:"fixed",bottom:"0",right:"0",height:"5em",width:"5em"});
$("#b").on("click", function() {
$(".post:nth-child(1)+li").remove();
console.clear();
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment