L1lith / Juice DB No Age Gate

// ==UserScript==
// @name         Juice DB No Age Gate
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Disable the age prompt when viewing juicedb.com
// @author       L1lith
// @match        https://www.juicedb.com/*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    const ageGateDiv = document.getElementById("age-gate")
    if (ageGateDiv) {
         const date = new Date();
         date.setTime(date.getTime() + 20*365*24*60*60*1000);
         document.cookie = `isAnAdult=true; path=/; expires={d.toUTCString()};`;
         document.body.classList.remove("age-gate-body")
         ageGateDiv.parentNode.removeChild(ageGateDiv)
    }
})();