Last active
December 2, 2020 19:53
-
-
Save aksHITa47/66b5181ad7f140b9b190273710501569 to your computer and use it in GitHub Desktop.
Comment spam a GitHub Gist
This file contains 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
// spam the comments of a github gist with spomment.js | |
// This is inspired by @scriptnull's thirugram.js (https://gist.github.com/scriptnull/7877b404f33de2b7445a) | |
// open GitHub and browse to the gist you want to comment spam | |
// open console ( Ctrl + Shift + J ) | |
// execute the code | |
var message = ""; //text you want to spam the comments with | |
var interval = 1000 ; // in milliseconds | |
var count = 10 ; //number of comments to be send | |
var i = 0 ; | |
var timer = setInterval(function(){ | |
document.getElementById("new_comment_field").innerHTML = message; | |
document.querySelector('#partial-new-comment-form-actions>.btn').click(); | |
i++; | |
if(i==count) | |
{ | |
clearInterval(timer); | |
} | |
} , interval) ; | |
// This is how I spammed my senior (@vchrombie's) gist which he specifically created for me to spam as a part | |
//of @amfoss tasks. Here's the spammed gist(https://gist.github.com/vchrombie/40c8c28ff8c8bcf207c563e939304726) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment