snippet of the day

js tumblr dashboard parser

photoはパス。 HTML変わると思うとやる気でない var extractor = { quote: function (context) { var q = $x(".//div[@class='post_info']/following-sibling::node()[following-sibling::div[not(contains(@style,'none'))]]", context).map ( function (e)…

delete all posts shown in tumblr dashboard

$x('//ol[@id="posts"]/li[@id]').map ( function (n) { var id = $x('.//form//input[@name="id"]/@value', n).pop().nodeValue; var k = $x('.//form//input[@name="form_key"]/@value', n).pop().nodeValue; var q = "id=" + id + "&form_key=" + k; with…