User Controls
NIS thread edit for privacy.
-
2019-06-19 at 6:18 PM UTC
// 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() -
2019-06-19 at 6:40 PM UTCThis post has been edited by a bot I made to preserve my privacy.
-
2019-06-19 at 7:53 PM UTCi won't be doing shit. i don't trust YOU.
-
2019-06-19 at 8:01 PM UTCSure, I'll get right on that
-
2019-06-19 at 8:13 PM UTCThis post has been edited by a bot I made to preserve my privacy.
-
2019-06-19 at 8:14 PM UTCautism.js