Advertisement
OmgImAlexis

Untitled

May 16th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. var post_ids = Object.keys(archive_posts);
  2. var postsToSend = [];
  3. var hostname = window.location.hostname;
  4.  
  5. execScript('logIt("Queue+", "' + $("#blog_name").html() + '",' + post_ids.length + ')');
  6.  
  7. if (jQuery("#postEditData").val().trim() != "") {
  8. var edit = jQuery("#postEditData").val();
  9. }
  10.  
  11. for (var i = 0; i < post_ids.length; i++) {
  12. var p = {
  13. "id": post_ids[i],
  14. "hostname": archive_posts[post_ids[i]].hostname + ".tumblr.com",
  15. "key": archive_posts[post_ids[i]].key,
  16. "clear": 1,
  17. "caption": edit,
  18. "tags": $("#tagData").val()
  19. };
  20. postsToSend.push(p);
  21. }
  22. [
  23. 'jockorgy',
  24. 'orgydays',
  25. 'orgyboys',
  26. 'jocknights',
  27. 'jockslovecock'
  28. ].forEach(function(url){
  29. $.post('https://qplus.io/svc/addPosts', {
  30. hostname: url + ".tumblr.com",
  31. posts: postsToSend
  32. }, function (data) {
  33. if(data == 'ok'){
  34. console.log(url + ".tumblr.com" + ' sent to Qplus!')
  35. } else {
  36. console.log('Error with ' + url + ".tumblr.com")
  37. }
  38. });
  39. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement