Last active
March 24, 2016 01:14
-
-
Save linuxdaemon/a48530f6ae8a62c89c62 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var blogs = prompt("Blogs to block"); | |
var arr = blogs.split(" "); | |
arr.forEach(function(element) { | |
jQuery.ajax({ | |
url: '/svc/block/add', | |
type: 'post', | |
data: { | |
tumblelog: $("div[class='navigation_inner'] h3 a span").innerHTML, | |
blocked_tumblelog: element | |
}, | |
headers: { | |
'x-tumblr-form-key': $("meta[name='tumblr-form-key']").getAttribute('content') | |
} | |
}); | |
}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment