dragon0rca / AutoTag

// ==UserScript==
// @name         AutoTag
// @namespace    http://tampermonkey.net/
// @updateURL    https://openuserjs.org/meta/dragon0rca/AutoTag.meta.js
// @version      0.3
// @description  try to take over the world!
// @author       You

// @grant        none
// @include      http://9gag.com/gag/*
// ==/UserScript==
var division1 = ["@ascendedcate @general_of_cate @cateowl", "@king_of_cates @queenofthecats @kingofthecats", "@nyan_cate @prof_cate @skeptical_cat",
                 "@cutecate @dem_cate @catecatecatie", "@galbatroix12 @cate_above_all @chubby_kitten", "@fat_cate @sleepingcate @vampire_cate", 
                 "@satancate @cate_warlock @demonesscates", "@cromocate @bartolomew666 @padawan_cat", "@jedimaster_cate @jedicate @darth_cate", 
                 "@cat_demon @archmage_cate @epic_cate", "@xxcatscooperxx @the_god_of_cats @mlgcates", "@senatormlgcate @79728_mlg_cate @rainbow_cate", 
                 "@swampy_cate @cateperry @techmeistercate", "@brain_hacker @coder_cate @miauw666", "@medieval_cate @caramelfurball @vicemarshallcat",
                 "@cate_tank @pharaoh_cate @isacat95", "@bakacat @knight_cate @cate_knight88", "@ser_cate @atrees1246 @cat_with_boots",
                 "@ultimate_cate @sayajin_cat @cate_d_luffy1", "@super_sayincate @pope_of_cates @sacred_cat", "@cateknight @cates_general @fuehrer_kitler", 
                 "@propaganda_cate @catedolf @fascist_cat", "@kitler88 @miss_neebs @the_hidden", "@cat_undercover @undercover_cate @acatindisguise",
                 "@irenenoorman @danny_hajime @cate_joker", "@catscrawl @rape_cate @felineatwar", "@sniper_cate @snipercate7 @nuclear_cat",
                 "@spacelazercat @cate_wmd @da_driving_cat", "@scared_cate @stuck_cate @psycho_cate", "@crazycatman @crazyfapper69 @asiandoctorx",
                 "@medic_cate @ductur_cate @catinapizza", "@pizza_cate @pizzacatekiller @princeofthecats", "@realroyalcat @the_royal_cate @lost_cat_prince",
                 "@princessthecat @hitman_cate @assassin_cate", "@wtf_hooman_cate @happydutchman @cate_of_holland", "@judgement_cate @secretary_cat @attorney_cate", 
                 "@meongindo @vladcatepurrtin @pcmrofcateland", "@VikingCat @officer_cate @samzonite", "@cate_on_weed @thepartycate88 @gaben_the_cate", 
                 "@catain_nova @cateadmiral @rapeydolphin", "@sealwithabucket @chris__cate @miccu", "@o_canada @captain_neko @nemothecate", 
                 "@pirate_cate @captain_cate_ @infiltratorcate"]; //a total of 129 users in this division



var division2 = ["@ragecate @rage_cate @kittyangryface", "@catsoldier_n728 @cat_army @sowjet_cate", "@warlord_cate @cate_overlord @majesty_cate",
                 "@horny_cate @pussythecat @horny_cat", "@cate_ace @_doge_slayer @f16_cate", "@megagrog @amkmkta @mercenary_",
                 "@big_cate @master_catsnake @drakedavinci", "@finnishsnek @scorpion7373 @king_of_pandas", "@propaganda_cat @kappalicious420 @ummimmu", 
                 "@house_cat @urcatsenpai @deutsch_cat", "@music_cate @singing_cate @ant1_k", "@bestbudcat @drogon_17 @sirgregoryii",
                 "@o0mystique0o @purrfect_cate @fluffy_____cat", "@supah_cate @batmans_cat @im_badcate", "@lt_meow @rebel_cate @chief_cate4", 
                 "@cat_rogue @themafiacat @thug_cat", "@cate_beyonder @axllucavi @wtfcate", "@rammstein_1 @nicebelgiumball @harf_schnarf",
                 "@pokke_ryusha @derpy_cate @cattastic", "@cateconstructor @demolition_cate @forging_cate", "@pilot_kitten @nickh1999 @suprised_cate", 
                 "@jackhislam @dphamy @mbk1966", "@anmari20012 @peaceful_cate @pcmasterrazegod", "@grumpy_khan @generalcate @commander_cat",
                 "@1stlt_scotty @hannibal_lecter @cattacker", "@dittmerz @zacjohnsonflint @cates_army", "@baguette_cate @salamandurr @ageofthepussies", 
                 "@ren10ella @reffcate @wooooohoooooo", "@yccb @miauw666 @monsieur_cate", "@hasenpelz @cate_guard @captain_cate_", 
                 "@major_cate @sluggybunbun_dh @lemonhatcate", "@_emoji @hairbandkitty @malay_cate", "@yes_i_am_a_cat @dennorskeviking @innorwaywetrust",
                 "@cate_soldier_76 @gagapumpy @sgt_catee", "@space_katty @madapple_ @the_garcate", "@surprisedcate @cate_paws @detectivekitteh", 
                 "@catesenberg @cartograph @lifestoken", "@ninjassss @nandapradipto @loxmaxcore", "@shut_up_hipstur @jagdtiger038 @spacecatbob", 
                 "@qtipthecate @ket_chup @ironknugen", "@jepemega @sniper_cate360 @bwa_ha_ha_ha_ha", "@the_doge_hunter @kittycatlyn"]; //a total of 125 users in this division


var division3 = ["@andreasswil @catycate @heilkittler", "@_aycaramba_ @johanhimself @kachynski", "@cat_coke_xx @legalize_emojis @doom_cate", 
                 "@morganfreeman45 @a_simplecat @chainfregq", "@ben_spitzer @legoweizmann @__silverlining_", "@categeneral1528 @hassanmoatazm @pixelburst", 
                 "@theungryman @supersjekkie @universalight", "@loutfiena @pusheenthecata @prickly_pear", "@anal_95 @meowtopia @notsocuteme", 
                 "@d_chsn_1 @katloom @anotherboy89", "@betzandyuri @dude3529 @jkittycate", "@cate_legion @mrfractal @splashy_cate", 
                 "@russian_empire @deavon860 @innocentcate", "@chainsawkitteh @boondockduck1 @basic_bob", "@PachReed @skeletongrandma @cate_woman", 
                 "@justthefishh @akkitty @troffolos", "@lenispong1999 @mister_knedliky @tag99", "@kiomyhaunterly @nemorius @connorthesavage", 
                 "@aljazcasar @fey_cate @intenssi0nscate", "@deanmvschalkwyk @juanmi16 @m_ammar_m", "@mr_gj027 @justdetix @gungravex1", 
                 "@rorshackwatchm @xghostboyftwx @zzzzzzzzak", "@stijnskoop @the_death @nicolaiknurvik", "@ultimo244 @_cate_recon_ @_lord_potato_", 
                 "@sleepy_cate @richy_cate @nikku_botto_san", "@meamonster8 @moon_moon_kknd2 @brendu", "@luke_0159 @super_miao @grinch_kat", 
                 "@cate_sphee @joetaco @agdipa", "@simonalfredsson @avlonrosario69 @convexionisk",
                 "@theycallmepang @scumbag_catz @dinkelberry_swe", "@jfanani @therealcate @wisnu93", "@scatz12 @sejilll @_the_cate_", 
                 "@frozun_mojo @davide_a @tychogoedhart", "@chavis @akiroraiden @yashpatil95", "@jolloyd27 @blockswordblock @voiceofthe_dead", 
                 "@sithtraitor @urasianbrother @charliethomas3", "@dwazigfrui @uselessdirt @bizarrewillow", "@normaltabby @themr1266 @frosty_cate", 
                 "@hampus04 @sanaflu @ryensmith", "@ohwellthen @dora_18 @spy_cate", "@dr_honeycake @damnmurican @theopcate", 
                 "@satan__cat "]; //a total of 124 users in this division


var division4 = ["@warhammer40cate @cate_sphee @dacat_", "@chate_dans_lair @stoned_cate @duchess_cate", "@cate_whore @mr_mccate @thegr8catsby",
                 "@summoner_cate @freby @harry_cate", "@dat_cate @supremelordcate @murder_cate74", "@cate_bate @nightcate @boba_catt_", 
                 "@pyromaniac_cate @kitty_the_cate @invisible_cate", "@cate404 @jewish_cate132 @toathegreat", "@dj_cate @zebotmun @enforcer_cate31", 
                 "@mr_pussycat @lethalkittie @saviour_cate", "@lady_cateline @sleepy_cate1 @potatomaster07", "@yesnishx "]; //a total of 34 users in this division
var i = 1;

window.onkeydown = function(e){
   
  if(e.keyCode == 113){ 
    document.getElementsByClassName("post-text-area")[0].value = division1[0];
    document.getElementsByClassName("cmnt-btn")[0].click();
    
    
var repeat = setInterval(function start(){
if(i == division1.length -1)clearInterval(repeat);
document.getElementsByClassName("reply")[0].click();
document.getElementsByClassName("post-text-area")[1].value = division1[i];
document.getElementsByClassName("cmnt-btn")[1].click(); 
i++;
  },2000);}
    else if(e.keyCode == 115){
         /*document.getElementsByClassName("post-text-area")[0].value = names2[0];
    document.getElementsByClassName("cmnt-btn")[0].click();*/
        document.getElementsByClassName("reply")[0].click();
document.getElementsByClassName("post-text-area")[0].value = division2[0];
document.getElementsByClassName("cmnt-btn")[0].click();
    
    
var again = setInterval(function start(){
if(i == division2.length -1)clearInterval(again); 
document.getElementsByClassName("reply")[0].click();
document.getElementsByClassName("post-text-area")[0].value = division2[i];
document.getElementsByClassName("cmnt-btn")[0].click(); 
i++;
  },2000);}
     else if(e.keyCode == 119){
         /*document.getElementsByClassName("post-text-area")[0].value = names2[0];
    document.getElementsByClassName("cmnt-btn")[0].click();*/
        document.getElementsByClassName("reply")[0].click();
document.getElementsByClassName("post-text-area")[0].value = division3[0];
document.getElementsByClassName("cmnt-btn")[0].click();
    
    
var reload = setInterval(function start(){
if(i == division3.length -1)clearInterval(reload); 
document.getElementsByClassName("reply")[0].click();
document.getElementsByClassName("post-text-area")[0].value = division3[i];
document.getElementsByClassName("cmnt-btn")[0].click(); 
i++;
  },2000);}
     else if(e.keyCode == 120){
         /*document.getElementsByClassName("post-text-area")[0].value = names2[0];
    document.getElementsByClassName("cmnt-btn")[0].click();*/
        document.getElementsByClassName("reply")[0].click();
document.getElementsByClassName("post-text-area")[0].value = division4[0];
document.getElementsByClassName("cmnt-btn")[0].click();
    
    
var restart = setInterval(function start(){
if(i == division4.length -1)clearInterval(restart); 
document.getElementsByClassName("reply")[0].click();
document.getElementsByClassName("post-text-area")[0].value = division4[i];
document.getElementsByClassName("cmnt-btn")[0].click(); 
i++;
  },2000);}
    };