NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Busted by Dopamine // @namespace http://tampermonkey.net/ // @version 1 // @description Leaverbuster. // @license MIT // @icon https://pbs.twimg.com/profile_images/648604381307371521/jxoa_qeC_400x400.png // @author Dopamine // @match www.blankmediagames.com/Trial/* // @include http://blankmediagames.com/Trial/* // @include https://blankmediagames.com/Trial/* // @grant none // ==/UserScript== try { var whitelist = ["iAlyFFS", "punjian", "raytrout", "12345brendan", "321olleh", "7Silent", "922hnewm", "a12345698", "Abhiroop", "Ace", "acire", "Aericc", "Agamer86735", "aislin", "ajqwert", "Akaneo", "1ceWizard", "3rdDegreeBurn", "8kristy", "9chainz", "AbadChef", "abizoey", "AcidicBreeze", "AClassyTowny", "Aeternium", "Ahmad991", "ajdotthirtyone", "AJthkidCP", "ALBARICOQUE980", "albinking123", "Alex157990", "AlexaPlayDespacit0", "alexpetal", "alliekittykatt", "Allysonred", "Amiter", "AmNoSK", "Amphymeraxes", "AmyDunnes", "AnderBeamo", "AndrewJuan04", "AlbertoJ", "ALegend", "alexa23102", "alexj203", "Alexpro2015", "allnames", "Alysaria", "AmnesiacQRS", "amoural", "amuritmamisan", "Anclime", "andreiboss50", "andrewm1", "Andyrendon1707", "AngelOfLove1", "Anguishjumps", "Anibear321", "AppleEnergy", "Aquillion", "Arbitrium", "arvontompsa", "atticuswoakes", "auclair3", "aureliaes", "AuthentikkXXlll", "Andvarie", "angeloab", "Angelxmen", "Anibba", "Anissachu", "Aqu30U5HyDRaX1de", "Aranov", "ArgentFacile", "AtomicGaming101178", "auauteru", "Augie279", "AuroraLana", "avadakedrama", "awesomeadda", "Awesomelulu", "ayopunk", "BackwardsInTime", "BananaWalruz", "basedlauren", "Bazzeman", "bbnicefbi", "bearinqs", "beeman1234", "benosob", "beruke", "AVenHurkaTolto", "awesomeboy4924", "AwsomeBeasts", "Aysbekup", "BananaDolphin", "bannini", "BatPear", "bbbityboppityboo", "BearDuck", "BeatByAGirl", "BenadrylCuttlefish", "bentpaperclip", "betaSAV", "bigbangturbo123", "BilboSR", "blackdingodog", "blamb211", "bledking", "BlueDogXL", "BlueRambo3235", "bluexar", "bodacious69", "bosstralia", "briiiiii28", "BroadCade", "BibleGirl420", "BigPapa444", "1", "blackaga", "BladesAndAxes", "BlaseTerror013", "Bluecrest", "Bluejohn123", "Bluetemmie", "Bmarsh513", "Boog2811", "Botax", "brittanoo", "brownbrawno", "BuffMonkey", "Bumblebeelover", "bunyboy", "ButtaToast", "ButtSaggington10", "C3H6", "caitjenner", "CamilleOvercreek", "CaptainBurger1717", "cartoonlover6", "cdv", "Chanon571", "Budderdrag0n", "bukybingo101", "bumboirl", "bunz123", "Buttonz8", "C0deTalker", "C4Navar", "caitlincheer888", "CapnDarko", "Captainographer", "catgrips", "Chancell0r", "ChaosKing002", "chimpfleas", "choey4", "Chyafu", "Cill2000", "clcravey", "CloudNine661", "Codsky", "ColbyBryant", "colorlessfish", "computerhero14", "CookieNinja182", "CorruptEgg", "cheRem", "chippyk2003", "Chrisbenso", "CiceroOfSkyrim", "clausnguyen", "CloudGamer360", "CloudyCloud", "cogitation", "Colik12", "Colton61", "Consigliere0", "CorporalSpoon31", "cosmocitric", "courtneyfromtdi", "CraftyWitch1990", "CrazyPyroEagle", "Cro0ked", "Crystalf96", "CurtisFeng", "DaddyDagoth", "daltonconn99", "DanReviews", "DaPhucPhucMe", "Darkonoid", "Darkspawner", "Costley", "Crack498", "crash0135", "CreatorMystic", "Crowfoxy", "CursedCat", "dabowman316", "Dake", "DannyMac", "danshan", "DarknessSlays", "DarkSoul214", "Daryl17ops", "datide08", "DaveZombee", "DazedCobra", "DBrock01", "Deanny1", "Deifavy", "DerekUng", "devilzfan", "DIProgan", "Djaouida", "dogemaster00", "Doglover2006", "Dashaquavius", "DatOnePotato", "daweilicious", "DaZucc", "Deadmanawesome011006", "Deathvortex1500", "delia1609", "DestinySaber", "dillonmann2001", "dissaboi", "dmags512", "Doggiessss", "dominator111", "DoTPr0", "dragonslayer8204", "Drako739", "Draqonic", "drhappysmile", "DrPyxel", "Dubbz1", "DUDINO", "dyze13", "ebeattie96", "Ecreal", "eevsgames", "DoodleFungus", "DR4G0NH34R7", "DrakeRamoray424", "drapionkiller", "Dremark", "drpetrinko", "dtoborg", "DubTails", "dwoodmanXD", "eaglesfan21", "Ebobloni", "EDoosh", "Effortful", "eggplant321", "ElCondor", "Elelianah", "Elpis1", "emsyhr", "EnchiladaMC", "endersteve1208", "Endroxide", "epicanova", "eraticeradicator", "ernieIzdebski", "ethanent", "eggjuice", "Einserluke1", "ElDiablo21", "ElementNo28", "EmoScumlord", "eNaks", "enderbecki", "EnderTurtle", "EntityOfRage", "EpicariousToS", "ericpg", "EternalDragonWolf", "etkneaf", "evanocho08", "ew2046", "Exylene", "failedparachutes", "FALSIE", "Fencedevin", "FigMan57", "fklisa1", "Flavorable", "FlintBlackwood", "FlyingOstrich", "Folcard", "Eugene168", "EvilSpork65", "ExecutiveLight", "Fabix56", "FairyTailDemigod", "Farley128", "FighterFrog", "FireDeamon56", "Flake", "732", "FlawyDaFcuker", "flowchild", "Fobiuh", "foxforbox", "FranktheTank57", "Freefilly", "FroggytheFirst", "fryinscotsman", "FurryChama", "Gabby900", "Gabrio", "GamerDanger", "Geekin", "gemgame", "GenesithSupernova", "Genu174", "FQuist", "frds628", "Freelance564", "Fruithim", "Furiant", "g0nz0o0o0", "Gabeok", "Gabzz054", "gamez7", "gelrxx", "GenericAndUncreative", "GeniusJedi2310", "GeorgeBonouki", "Gewwonabon", "GiantMidget", "Gman13", "grace806", "GreenDog3", "GrimlockPrimus", "GRZLY", "Gunkiller18", "Haesteinn", "Hallvis", "hannahsayshibye", "hansvokurka", "Getrektpls", "Ghostman01", "gloriagator", "Goodbye9", "Graytsu", "Greycloud7", "GrumpyGoomba", "GuiZaAC", "GuyTwoOne", "Hakureis", "Hamiltrashe", "HansKluger", "hardpp", "Hatrume", "hbn922", "HEDIED", "HellnoRO", "Herter", "HgeanKidNebula", "hjcg", "hmfkztal", "hokages", "hrn97", "humdrums", "HunterxHunter", "harkers", "Haylien", "Heated1030", "Hekaro", "HerrLuxferre", "Heylel", "hha002", "HK50", "hobnob1208", "Hompa", "hsynkas", "HunterFinlay", "Huskydog9988", "iamuncreative", "ianlee521985", "Icexeny", "iggyvolz", "https://www.yingatech.com", "iJasperrr", "ImmaMeme", "IndominousJester", "intykid", "ItsDan18", "itsmeamandabynes", "IWasBannedOnMain", "Jackdopp", "iamlebm", "IAmVeryCreative", "iBlindBat", "iCheese", "iiGeneral", "ImaginationFigment", "imsoanonymous123", "InjectHacks", "ispymate", "ItsJedi", "ItsRumi", "j0ck", "jackiechanny", "Jaff3rN", "Jakinator178", "jane70", "JayChef", "Jirocb", "JoeWoodrufff", "Johnyto67", "JoshuaHx", "JQSHH", "judg3", "junkymonky43", "Justin9430", "jadeisapineapple", "JahMakin", "jambyx", "Jausi", "JeremytheBrony", "jjjj4plus3", "JohnVee", "jolin100", "joshuwaaa", "jrf1973", "JulianDeBeste", "JustGamerBoyNL", "Justmonikammm2", "Kayleigh93", "Keegobro", "kelyra", "kert2712", "Kibbles", "killersneverhurt", "KingofHoundooms", "KingTrololo", "kithc", "klaodrrr", "KneelingDuck", "korhan332", "Kasper0109", "kaylittle6", "KekMudkip", "Kerchoo", "Kew", "Kilk1234", "kingbender1001", "Kingofthekong", "KingZukob", "KiwiSpatula", "Klassux", "KoolAidan", "kreon345", "kyleheckler", "lacholana", "LaffyLaud", "Laneyoungps", "Lazt", "LeCroissantdeBeurre", "Lesterberne", "levent2954", "Lexiam", "LickMaFinger123", "LightYagami3645", "Lineal9", "Kyakh", "KyleSchnell", "ladychelsea", "lalalalulullama", "lauriekyns", "LeadbosTR", "legendschwab", "LetsGetWeird17", "LeviXLS", "lexigraphy", "lightningowl", "lIIuminatiZ", "Linx87", "Liveon", "lizardsquad2", "ljake21", "llTheArchitectll", "LordPenguinOG", "LucasTLoftier", "lukajda33", "m3hgu5t4", "MachoPriestObama", "MaeoruKittie14", "MagicDonut", "Makers", "Listle", "lizardsquad1", "lizz1123", "ll33763", "LogicMayhem", "lordvader85", "LucrusArnda", "Lumos1224", "M3M0RYDIST0RT3D", "Maddietoes", "Magenzo", "MagicNate", "Manacyst", "Maqiican", "Mark9870", "Marx2688", "matthewstevens472", "MaxCrafted", "Maximus2563", "mdsjbwlcrre", "Meggyyymoo", "melpil", "memofang", "MerylGearSolid", "metalgear123", "mani20000", "MarathonMan", "Marsh3557", "MasterBeiber", "Mauio", "MaxDistructo", "mconnoly", "Megamarc9999", "Melliemelliemel", "Memine11", "Mermacurn", "Mesut1991", "Mewderator", "Mickest", "milinko27", "Mineta", "Miser0", "misztsu", "Mo10", "moh199999", "momax007", "moonbird", "394", "Mosae", "MrChicken91", "MrDolfy", "michael19091", "MikeyMak", "mimms", "MintyPingleyBoi", "MissPeneIope", "mm103434", "mobius14", "mokoza1597888", "monnai", "Mordiceius", "MrAdamSW", "MrDiscoNinja", "MrFlovi", "MrSilence", "Muddyring", "Muffiner", "Murphizzle", "MUSKE", "MustafaAkyzGG", "Mx4026", "NateNate60", "nellinator", "nerfstyle322", "ngenim", "Nierprywiczny", "MrPolki101", "mrsmubby", "mudhaf", "Muntas", "MusicNote47", "mustafa2881", "Mwak", "MysticMismagius", "NaticDesigns", "nEONfURY", "nexttrain6", "NibKev", "NigelB", "NightmaresAlone", "nikkiboy1", "Niqso", "Nodfire", "NoneButMe", "noobfromth", "NootNoot12345", "notebook329", "NoTitleRequired", "nriver", "nuanua25", "Nxetrilla", "nightflam", "nikkawii", "NikoIsNotACat", "Nobsyde", "Noguy5", "NonSerena", "noosim", "NoSignalTV", "Nothsen", "NPC112", "NTJCMIN", "nutinatree", "Nyelok", "o18824", "odingill", "offbrandkiller", "OkAycase", "Oliviaplayspokemon", "onlysilverlinings", "OPYoshi", "OreCreeper", "Osqer", "ouiouibaguettes", "OverlordNazo", "Overstew", "nyirib", "OctoEN", "OfekIfargan", "OGPickleRick", "Oldblade51", "onezoa", "Opalizzie", "OrangeMagics", "orionreynolds", "OTPRiven123", "OverlordAtakan", "OverlyPoliteCanadian", "Owen27", "palmmmm", "PancakeGD", "paranj", "parzzivalx", "patrick371213", "Peakachu", "Penguin1016", "Peq", "Petarglio", "PhoenixSword01", "pickledpuddle", "Pikamander2", "Padd3r95", "panaman", "Paprion", "Pargy", "Patatinefritte", "PatrickMSports", "PedoScout", "pennyy", "Pesnapole", "petitchou", "Picasso25", "piggytoot", "PilakBoyDiablo", "pingwu", "Pixies", "PK06", "PLSSSSS", "poodepej", "Pot4toNinj4", "presi12341234", "PrincessVitarah", "ProbablyCD", "ProudSaffa", "Punymario", "purefilth666", "PiLiFe", "pivot5", "pizzahead", "Platypuses", "poisonedhorror", "popeyaho", "Potterhotter", "Pricerocks245", "prixsix", "ProudHoser1", "PumpkinK1ng", "puppycow", "Puribi", "PyroAkane", "Qbags", "Qunara", "qwertyops900", "rachaelmadow", "ramoney", "Ranoom", "Rasangen", "Ratchet9cooper", "rawflecopter", "RazorFire2468", "reallytho", "pwign", "python8u", "Quadra1", "qwatbattery", "RaaiaTheLegend", "RaInBoWpAlAgUy", "randomnessx23", "rares215", "RashPlatinum", "Raven1207", "raytrout", "RbCabbage", "realMandingo", "Rebornss", "RetardRetardson", "rggbnnnnn", "RicoViking9000", "Rippiee", "RobinJ24", "RogueHuckster", "RoyalGuard123", "ruanna", "rushofpower", "Ryebuck", "S5gamerA", "RealTheHunter", "Regablith", "rga89", "Rhinoceroach577", "RikerW", "rob", "Robz5", "Rotlishak", "Rszandy", "rukiakuch", "ryan3613", "Rymasterr", "sabakunao", "sadcookfried", "sakulise", "samantonioli", "Sanchezium", "sasenov457", "saywhut", "ScoreSettler", "SeaniOS", "selimrecep", "SGHOsT14", "ShadNick", "ShadowlockMC", "sac20036", "SaharSwisa", "Sam51423", "SAMRHINE", "santumerino", "Savvy607", "scoobywho89", "sdk345", "SeaOdeEEE", "setas2468", "Shadaoh", "shadowkoishi93", "ShadowPie77", "ShaneBannerz", "Shantigla", "Sheikiller", "shickman", "ShinyAmphy", "Shortty10", "shweta", "SimpilyFrancis", "SirAwesome1", "SirOofington", "Sittin", "SkyKat37", "ShadowUmbra", "shankskarpo", "SheepForges", "shelboo", "shikiplant", "Shitkys4", "shortysux", "Sidaredd", "simpson210", "SirHack3r", "SirPsychedelic", "skipem23", "Sl007", "SlayingCreator", "Smette", "SmokeyTheLion", "SnowyKaida", "Solarbyte", "somewhatperson", "SpaceTwiga", "SpellOfAether", "SpicySauce1", "Splashnccs", "spxrt", "starandsnow", "Slaggarn", "SlimeGarry", "smiteeee", "Snowdrop21918", "Socktopus", "SometimesInnocent", "soytheivan", "Spartan9423", "Spencer64", "spikey32906", "spoonguilder", "stalwartian", "StarOfDay", "Steffo45", "strangeyes666", "sungjam", "supmydad89", "SusySusay94", "sxhsxi", "tacpower1", "TalkingJewel0", "TamaraNutz", "Taronika", "TechnoUser", "TehCoolGuy", "statnut", "stranger24", "Straszak", "SuperOz31", "SupremeStarLord", "Swampy1741", "Synonimous", "Takenaka9", "TallBlondeDude", "Tamo66", "TechnoTrouble", "Tefleon", "TGWaffles", "theawesomemario", "TheDarkQueenDomz", "TheFreeman", "TheHungryBidoof", "TheLastTimeLord11", "TheLegendVip3r", "TheLuigiplayer", "theonets", "therealestsnake", "TheSenate123", "TheSmurgler", "TheYungCaboose", "Thalnose", "Thecheeseburrito", "TheEmeraldAvatar", "TheHString", "TheInvexed", "Thelegendaryblaster", "thelovelybluebird", "TheNexCoolGuy", "ThePigeonPoo", "TheRoyalOwl", "TheSheepMedic", "TheStupidNerd", "ThirstyT1", "tigdug", "TimTimNL", "TooHeard", "touchtonearc433", "TransBeacon", "Treebeast2", "TrollZWA", "Tudpool", "Twogi", "ugurcansayan", "unscsnip3r", "v0idless", "ticklepoot", "tigertank529", "Toastmortem", "TotoCutesie", "TrainerMark", "TraskForge", "trevonmendez", "Truffle100", "TWIY", "TyvianRed", "ujung", "ups2345", "valariiee", "Velzee", "VilladsE", "viperz5", "VivaPinata78", "voidwizard", "vomitive", "Waffleme3", "waltypaincoven", "WeroTheHero", "whackedenforce", "WhatsQuackin", "Wilder", "Vectorious370", "veraduxx", "viospemom", "Vitromo", "VoidPursuit", "voltagefire", "vsayroo", "Waifu", "weatherluvr", "wewhale", "WhalesLoveSmash", "WicketRocket", "WipeoutRyan", "witherhuntress", "WolfyKirby", "xiuchenlaydo", "xM7", "xoScarlett", "xRelty", "xTimuu", "xWyatt", "XxDcoolManxX", "yaxamie", "wiremu2002", "wolf454", "WreckMateBMT", "xADude300x", "xFe", "xKellyx3", "xMJGold", "xrauls", "xSourScreams", "xVoices", "XXBullfrogXX", "xxXBestBardEUNEXxx", "yigitdak", "ylyxa", "yourselvs", "YungShaggy", "zachdan06", "ZePenguin", "zerolightning", "Zeussy", "zlooof", "ZoRaXtEr", "zSnowflake", "yinandyang1736", "Yosh1123", "YuiSnow", "z3ker", "ZenonS", "Zephixia", "Zethexx", "Zindulienedx", "zombieog", "Zse4rffb" ]; var players; var nightLength; var dayLength; var earlyLeaver; var leavingTime; var dayCount = 2; var nightCount = 2; if (sessionStorage.getItem("leaverbust") == "1") { Leaverbust(); } $('body').append('<input type="button" value=" Start " id="startBust">') $("#startBust").css("position", "fixed").css("top", 235).css("right", 150); document.getElementById("startBust").addEventListener( "click", startBust, false ) document.getElementById("startBust").style.backgroundColor = 'lightgreen'; $('body').append('<input type="button" value=" Stop " id="stopBust">') $("#stopBust").css("position", "fixed").css("top", 265).css("right", 150); document.getElementById("stopBust").addEventListener( "click", stopBust, false ) document.getElementById("stopBust").style.backgroundColor = 'red'; function startBust() { sessionStorage.setItem("leaverbust", "1"); Leaverbust(); } function Leaverbust() { players = data.players; nightLength = ($("span.time.night").length - 1) dayLength = ($("span.time.day").length - 1) var myElem = document.getElementById('splash'); if (($(".reportReason").text() != "Leaving") && (myElem === null)) { earlyLeaver = []; leavingTime = []; addNamesToLeavers().then(function () { findLeavers(); }).then(function () { findDayLeavers(); }).then(function () { findNightLeavers(); }).then(function () { dupe(); }) } else { nextReport(); } } function addNamesToLeavers(callback) { return new Promise(function (fulfill, reject) { var namelessNotices = $("span.time.night:contains(Night 1)").prevUntil("span.stage:contains(Players are choosing names)", "span.notice:contains( has left the game.)").filter(function () { return $(this).text().indexOf(" has left the game.") == 0; }).get(); var missingNames = []; var n = 0; if (namelessNotices.length != 0) { for (var i = 0; i < players.length; i++) { var namesWithNotices = $("span.time.night:contains(Night 2)").prevUntil("span.stage:contains(Players are choosing names)", "span.notice:contains(" + players[i].ign + ")"); if ((namesWithNotices.length == 1) && (namesWithNotices[0].textContent == players[i].ign + " has been killed.")) { namelessNotices[n].textContent = players[i].ign + " has left the game."; n++; missingNames.push(players[i].ign); } else {} } } fulfill(); }); } function findLeavers(callback) { return new Promise(function (fulfill, reject) { var i = 0; var leavingNotices = $("span.time.day:contains(Day 2)").prevUntil("span.stage:contains(Players are choosing names)", "span.notice:contains( has left the game.)"); for (; i < leavingNotices.length; i++) { for (var n = 0; n < players.length; n++) { if (leavingNotices[i].textContent == players[n].ign + " has left the game.") { if (whitelist.includes(usernameFromIGN(players[n].ign))) { console.log(usernameFromIGN(players[n].ign) + " found on whitelist") } else { earlyLeaver.push(usernameFromIGN(players[n].ign)); leavingTime.push("Player left before day 2"); } } } } fulfill(); }); } function findDayLeavers(callback) { return new Promise(function (fulfill, reject) { var i = 0; var leavingNotices = $("span.time.night:contains(Night " + dayCount + ")").prevUntil("span.time.day:contains(Day " + dayCount + ")", "span.notice:contains( has left the game.)"); for (; i < leavingNotices.length; i++) { for (var n = 0; n < players.length; n++) { if (leavingNotices[i].textContent == players[n].ign + " has left the game.") { if (whitelist.includes(usernameFromIGN(players[n].ign))) { console.log(usernameFromIGN(players[n].ign) + " found on whitelist") } else { earlyLeaver.push(usernameFromIGN(players[n].ign)); leavingTime.push("Player left day " + dayCount); } } } } if (dayCount < dayLength) { dayCount += 1; findDayLeavers(); } else { fulfill(); } }); } function findNightLeavers() { return new Promise(function (fulfill, reject) { var i = 0; var leavingNotices = $("span.time.day:contains(Day " + (nightCount + 1) + ")").prevUntil("span.time.night:contains(Night " + nightCount + ")", "span.notice:contains( has left the game.)"); for (; i < leavingNotices.length; i++) { for (var n = 0; n < players.length; n++) { if (leavingNotices[i].textContent == players[n].ign + " has left the game.") { if (whitelist.includes(usernameFromIGN(players[n].ign))) { console.log(usernameFromIGN(players[n].ign) + " found on whitelist") } else { earlyLeaver.push(usernameFromIGN(players[n].ign)); leavingTime.push("Player left night " + nightCount); } } } } if (nightCount < nightLength) { nightCount += 1; findNightLeavers(); } else { fulfill(); } }); } function dupe() { console.log("Amount of leavers: " + earlyLeaver.length); var promises = []; for (var i = 0; i < earlyLeaver.length; i++) { var request = $.ajax({ type: "POST", url: "./duplicateReport.php", data: { drid: $('.reportId').text(), dp: earlyLeaver[i], dr: "7", dd: "(。◕‿◕。) Busted by Dopamine • • • " + leavingTime[i], }, dataType: "JSON", timeout: 60000, }) if (earlyLeaver.length > 0) { request.done(function (msg) { console.log(msg); }); } promises.push(request); } $.when.apply(null, promises).done(function () { nextReport(); }) } function usernameFromIGN(ign) { for (var x = 0; x < players.length; x++) { if (players[x].ign == ign) { return players[x].username; } } } function stopBust() { sessionStorage.setItem("leaverbust", "0"); } function nextReport() { var newReport = parseInt($('.reportId').text()) + 1; location.href = "https://www.blankmediagames.com/Trial/viewReport.php?id=" + newReport + "" } } catch (err) { console.log("Reloading in 3 minutes"); setTimeout(window.location.reload.bind(window.location), 180000); }