Pi-hole Autologin

Autologin to Pi-hole

// ==UserScript==
// @name         Pi-hole Autologin
// @namespace    http://tampermonkey.net/
// @version      0.1
// @license      GPLv3
// @description  Autologin to Pi-hole
// @author       xdpirate
// @match        http://pi.hole/admin/login.php
// @icon         https://www.google.com/s2/favicons?sz=64&domain=pi-hole.net
// @run-at       document-end
// @grant        none
// ==/UserScript==
document.getElementById("loginpw").value = "your password here";
document.getElementById("logincookie").checked = true;
document.querySelector(".btn-primary").click();