User Controls

NIS thread edit for privacy.

  1. #1
    filtration African Astronaut


    // main
    var edit = function() {
    $('.post').each(function(){
    console.log(this.id)
    var post = getPost(this.id)
    var csrf = getCSRF()
    data = {
    csrfmiddlewaretoken: csrf,
    content: "This post has been edited by a bot I made to preserve my privacy.",
    preview_action: "edit-post",
    post: post
    };

    $.post("https://niggasin.space/post/" + post + "/edit", data)
    })

    setTimeout(function() {
    nextPage()
    }, 5000);
    }

    // Get the token
    var getCSRF = function() {
    return $('input[name=csrfmiddlewaretoken]').val()
    }

    // Get the total pages
    var nextPage = function() {
    var next = $('a.next-page')[0]
    if(next) {
    next.click();
    }

    return
    }

    // Get the id of the post
    var getPost = function(post) {
    var id = post.split("-")
    return id[1]
    }

    edit()
  2. #2
    filtration African Astronaut
    This post has been edited by a bot I made to preserve my privacy.
  3. #3
    Dregs African Astronaut [that freakishly double-edged allmouth]
    i won't be doing shit. i don't trust YOU.
  4. #4
    itybit African Astronaut [daze my amino pe-tsai]
    Sure, I'll get right on that
  5. #5
    filtration African Astronaut
    This post has been edited by a bot I made to preserve my privacy.
  6. #6
    aldra JIDF Controlled Opposition
    autism.js
Jump to Top