FuryZen / Auto Claim

// ==UserScript==
// @name         Auto Claim
// @version      0.1
// @description  Automatically claims coins & opens potions
// @author       Fury Zenblade#1337
// @match        http*://agar.io/*
// @icon         https://agar.io/favicon.ico
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    setInterval(function(){

        let freeCoinsButton = document.getElementById("freeCoins");
        if(freeCoinsButton != undefined) {
            if (!(freeCoinsButton.classList.contains("wait"))) {
                freeCoinsButton.click();
                console.log("Claimed Coins!");
            }
        }

        let potionButtons = document.getElementsByClassName("btn potion-slot-button blue bigger")
        if (potionButtons.length != 0) {
            potionButtons[0].click();
            console.log("Started Potion!");
        }

    }, 10000);
})();