Shakira123 / Duping tool

// ==UserScript==
// @name Duping tool
// @namespace http://tampermonkey.net/
// @version      3.6
// @description  Tool that dupes a large list.
// @license MIT
// @author       Dopamine
// @match        www.blankmediagames.com/Trial/*
// @include      http://blankmediagames.com/Trial/*
// @include      https://blankmediagames.com/Trial/*
// @downloadURL  https://openuserjs.org/install/Shakira123/Duping_tool.user.js
// @updateURL    https://openuserjs.org/meta/Shakira123/Duping_tool.meta.js

// @grant        none
// ==/UserScript==

//button that copies mafia outing ids to clipboard
$('body').append('<input type="button" value="Dupe spammers aug 29" id="dupeS">')
$("#dupeS").css("position", "fixed").css("top", 35).css("left", 50);

document.getElementById("dupeS").addEventListener(
  "click", dupeSpam, false
);
var drid;
var dp;
var dr;
var dd;
var i = 0;

function dupeSpam() {
  if (i === 0) {
    alert("Duping spamming reports \nTotal reports: "+ (longArray.length / 2) + "\nThis will take " + Math.round(((longArray.length / 2) * 1.1) / 60) + " minutes. ("+Math.round((((longArray.length / 2) * 1.1) / 60)/60)+" hours) \nPress F12 and go to network to see progress \nPress OK to start. There will be a popup when done.");
    countdownTimer();
  }
  if (i < (longArray.length)) {
    drid = longArray[i];
    dp = longArray[i+1];
    dr = 6;
    dd = "";
    dupe(drid, dp, dr, dd);
    i += 2;
    setTimeout(dupeSpam, 1100)
  }
}

function countdownTimer(){
    let text = $('#banner');
    text.css({
        "text-align": "center",
        "line-height":"130px",
        "font-weight":"bold",
        "background-color":"Tomato",
        "color":"black",
        "font-size":"200%"
    })
    var second = 0;
    // Update the count down every 1 second
    var x = setInterval(function() {
    // Find the distance between now and the count down date
    var distance = (1100*longArray.length/2) - second;
    second = second + 1000;
    // Time calculations for days, hours, minutes and seconds
    var days = Math.floor(distance / (1000 * 60 * 60 * 24));
    var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
    var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
    var seconds = Math.floor((distance % (1000 * 60)) / 1000);
    document.getElementById("banner").innerHTML = "Duping done in: "+hours + " hours, "
    + minutes + " minutes and " + seconds + " seconds ";
    // If the count down is over
    if (distance < 0) {
        clearInterval(x);
        document.getElementById("banner").innerHTML = "Done! You helped put "+longArray.length/2+" reports in queue.";
    }
    }, 1000);
}

function dupe(drid, dp, dr, dd) {
  $.ajax({
    type: "POST",
    url: "./duplicateReport.php",
    data: {
      drid: drid,
      dp: dp,
      dr: dr,
      dd: dd
    },
    dataType: "JSON",
    timeout: 30000
  });
}

var longArray = ["1655710",
"bot011",
"1655708",
"shnooby",
"1655643",
"OpazCrabs",
"1655640",
"townofsuicide",
"1655633",
"GetBent666",
"1655630",
"riyabhatt",
"1655628",
"ehughes",
"1655625",
"BlueOrchid498",
"1655622",
"FattyKinz",
"1655618",
"FartKnocker69",
"1655615",
"FartKnocker69",
"1655612",
"IrishFootballer4",
"1655605",
"DarkBoraCS",
"1655602",
"EvoThunder",
"1655548",
"robloxtryhardgod",
"1655540",
"the4dort",
"1655514",
"BlueOrchid498",
"1655498",
"imaaccident",
"1655497",
"Dakkea",
"1655491",
"burak7447",
"1655490",
"CrayolaNipplesAnna",
"1655489",
"thenerferboy",
"1655477",
"XxGreatGamerGirlXx",
"1655902",
"sandro69696996",
"1655441",
"ShutUpExeNoU",
"1655401",
"RichTheHospitalized",
"1655398",
"ishaimaster",
"1655382",
"BlueOrchid498",
"1655375",
"LesionMainBTW",
"1655371",
"ihateallblacksbruh",
"1655363",
"XxGreatGamerGirlXx",
"1655329",
"BlueOrchid498",
"1655328",
"ILoveTheTown",
"1655297",
"BlueOrchid498",
"1655289",
"ChiliCheeseDog42",
"1655271",
"snoob2016",
"1655245",
"Failure121",
"1655243",
"spiciestginger",
"1655242",
"Salem888",
"1655240",
"Telly123",
"1655208",
"BlueOrchid498",
"1655192",
"robloxtryhardgod",
"1655182",
"emory93",
"1655168",
"robloxtryhardgod",
"1655163",
"Bokumuye123",
"1655130",
"trapador36",
"1655078",
"CrayolaNipplesAnna",
"1655066",
"Pulpmaniac",
"1655061",
"BlueOrchid498",
"1655056",
"ainsleybiggy",
"1654986",
"Slumpinz",
"1654970",
"BlueOrchid498",
"1654965",
"BlueOrchid498",
"1654960",
"cooldawg82",
"1654921",
"BlueOrchid498",
"1654919",
"Abdurrahman70",
"1654909",
"BlueOrchid498",
"1654832",
"BlueOrchid498",
"1654831",
"dizzykahooza",
"1654830",
"Aimlesborte",
"1654807",
"Naru2oo8HasHerpes",
"1654806",
"DamusaNotBlock",
"1654805",
"damusan",
"1654739",
"BlueOrchid498",
"1654732",
"Aimlesborte",
"1654731",
"fivebang",
"1654730",
"zlatanibra10",
"1654664",
"leventoner",
"1654627",
"BumbleBlaster",
"1654618",
"destroyershadow9",
"1654575",
"LilAngelUv",
"1654543",
"buggedmessgaming",
"1654526",
"EllenDeGenres",
"1654496",
"Dou13leFeature",
"1654495",
"LilBeefCake",
"1654493",
"lucky2832",
"1654438",
"zeromoodex",
"1654418",
"robloxtryhardgod",
"1654353",
"anadol",
"1654349",
"sexyswaggers",
"1654344",
"Troods",
"1654343",
"andreicira1012",
"1654341",
"maybegreat",
"1654303",
"Delucia",
"1654291",
"petejames694",
"1654285",
"OverHeaten",
"1654239",
"Trolax",
"1654234",
"porkyfucker69",
"1654154",
"dalmanovic",
"1654066",
"damamoot",
"1654049",
"laxposin",
"1654033",
"miracaral5",
"1653930",
"papitochulo99",
"1653838",
"Troods",
"1653836",
"jailoriam",
"1653781",
"nihha",
"1653400",
"awattey",
"1653245",
"salaksinki",
"1653231",
"gendry",
"1655917",
"DarkBoraCS",
"1653125",
"enes154",
"1653017",
"WariorChild",
"1652882",
"gammag8",
"1652876",
"xXStarCookieXx",
"1652825",
"CrayolaNipplesAnna",
"1652793",
"PotatoTheCat",
"1652739",
"BongoBill77",
"1652730",
"LuluMakesMeHuge",
"1652710",
"kriswihall",
"1652679",
"BIackLivesBot9",
"1652659",
"Brokoliciak",
"1652658",
"Polacikkolacik",
"1652632",
"ehughes",
"1652612",
"Woofalot",
"1652596",
"TheOtherFriend",
"1652587",
"Samuuu3",
"1652500",
"PresidentGalaxy",
"1652496",
"dizzykahooza",
"1652476",
"PresidentGalaxy",
"1652464",
"LivelyPig8334",
"1652451",
"PresidentGalaxy",
"1652416",
"septiconnor",
"1652410",
"LivelyPig8334",
"1652367",
"LivelyPig8334",
"1652342",
"AndaPharata",
"1652217",
"Ulutroll",
"1652172",
"FirestyleBro",
"1652154",
"Ulutroll",
"1652139",
"AndaPharata",
"1652106",
"ChesireLoom",
"1652051",
"animecity",
"1651999",
"Sneablies",
"1651955",
"ravibandaru14",
"1651919",
"hades06",
"1651902",
"ciyoto",
"1651883",
"Hainbaba24",
"1651866",
"StratejiUzmani",
"1651863",
"CutePenguinNN",
"1651839",
"WeiWeiWei",
"1651596",
"OguzCS",
"1651515",
"samet121",
"1651505",
"ibignoob4",
"1651471",
"themanwiththegetaway",
"1651443",
"buse12",
"1651435",
"EdgarRak",
"1651425",
"BugraSA",
"1651421",
"Flepew",
"1651367",
"MainOrion",
"1651361",
"xEri7",
"1651360",
"ErenSahan",
"1651351",
"orangeslices",
"1651350",
"ZookyUK",
"1651333",
"derbythedonkey3",
"1651300",
"ZookyUK",
"1651258",
"UNTOPIC",
"1651242",
"Hamball",
"1651238",
"pagpaw",
"1651214",
"Simabilak",
"1651182",
"EjDirst",
"1651177",
"xHighs",
"1651170",
"porkyfucker69",
"1651143",
"Benzelelele",
"1651123",
"porkyfucker69",
"1651122",
"spurga",
"1651110",
"Ahmet4848s",
"1651093",
"xHighs",
"1651073",
"drsnowball",
"1651017",
"Keepo7",
"1650970",
"Jarayne",
"1655936",
"ayyocelmao",
"1650959",
"wubman535",
"1650958",
"moonmanandthekkk",
"1650911",
"otarik",
"1650890",
"SHALERR",
"1650872",
"TheTarnationGuy",
"1650868",
"robertitoxd",
"1650848",
"TaeNy4ever",
"1650823",
"cumayagittimgelicm",
"1650795",
"Jaiden2411",
"1650777",
"doomlands577",
"1650757",
"aBadPlayer57",
"1650753",
"WitchoWitchee",
"1650685",
"WitchoWitchee",
"1650679",
"Mqmre20100",
"1650594",
"ShutUpExeNoU",
"1650552",
"fluffycute",
"1650506",
"lilsquirrelyoshi",
"1650496",
"awwtistic",
"1650483",
"Crippdex74",
"1650472",
"fluffycute",
"1650441",
"CmoreButts",
"1650427",
"tellemoff",
"1650424",
"brazilianfan1",
"1650410",
"zeromoodex",
"1650402",
"FalconH20",
"1650399",
"Ronpolano",
"1650375",
"FartKnocker69",
"1650320",
"FartKnocker69",
"1650290",
"ErickLikesGiantMen",
"1650261",
"ieatass456lmao",
"1650123",
"nike123456789",
"1650120",
"kuhren",
"1650099",
"JibilyJanks11",
"1650082",
"ShulianKsablanK",
"1650081",
"IlyaVonEinzbern",
"1650072",
"ibignoob4",
"1650070",
"ajitsenpai",
"1650057",
"ibignoob4",
"1650047",
"ibignoob4",
"1650030",
"falloutdeath",
"1650013",
"ravibandaru14",
"1649959",
"xPenguino",
"1649920",
"Prodishyy",
"1649905",
"Pulpmaniac",
"1649904",
"xpcalibur",
"1649900",
"Jckiru",
"1649894",
"Jckiru",
"1649884",
"xpcalibur",
"1649873",
"skyofslash",
"1649864",
"Pulpmaniac",
"1649863",
"xpcalibur",
"1649833",
"Pulpmaniac",
"1649818",
"BlazerB",
"1649816",
"TheNoteBoy",
"1649814",
"MightyDouche",
"1649783",
"ibignoob4",
"1649773",
"freak00",
"1649771",
"ibignoob4",
"1649738",
"Egemenbartu06",
"1649736",
"alahuakbra",
"1649730",
"ibignoob4",
"1649729",
"ChubbyBunny6112",
"1649728",
"kakaho345",
"1649724",
"princessthecatmeow",
"1649705",
"meladele10",
"1649697",
"WandamBoy",
"1649690",
"ChubbyBunny6112",
"1649666",
"ChubbyBunny6112",
"1649663",
"eveyoneisugly",
"1649628",
"ibignoob4",
"1649612",
"atisatidiz1",
"1649608",
"ikrima130",
"1649592",
"mseemektar",
"1649550",
"jesus2003",
"1649542",
"Beni7mi",
"1649435",
"danielmcl",
"1649405",
"NaranjuZ",
"1649388",
"tellemoff",
"1649384",
"sexguvensadakat",
"1649383",
"canaj147",
"1649363",
"xHaibara",
"1649354",
"alexegycsicska2",
"1649322",
"lacaquitasensualxd",
"1649275",
"Wetwek",
"1649232",
"krajina4life",
"1649154",
"YummyTreats",
"1649152",
"ravibandaru14",
"1649061",
"flakboy",
"1648990",
"iconicwig",
"1648987",
"Cigocien",
"1648949",
"lacaquitasensualxd",
"1648942",
"cygnus1423",
"1648907",
"mseemektar",
"1648887",
"Troods",
"1648775",
"lacaquitasensualxd",
"1648698",
"aBadPlayer58",
"1648542",
"alpsteinn",
"1648532",
"FancyPig9953",
"1648513",
"FancyPig9953",
"1648495",
"hangstr",
"1648492",
"FancyPig9953",
"1648485",
"MisterAssLover",
"1648480",
"FancyPig9953",
"1648476",
"FancyPig9953",
"1648450",
"zeromoodex",
"1648371",
"atom9998",
"1648343",
"WarrenIvr",
"1648307",
"diegoben2002",
"1648298",
"forskruetj",
"1648278",
"forskruetj",
"1648274",
"Boga12XD",
"1648159",
"NaranjuZ",
"1648158",
"lacaquitasensualxd",
"1655991",
"negro12"];