Greasy Fork is available in English.

湖北高中生网登录时自动删除Cookie

能够让你在登录时不用再管之前的账号是否退出

// ==UserScript==
// @name         湖北高中生网登录时自动删除Cookie
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  能够让你在登录时不用再管之前的账号是否退出
// @author       Tinyblack
// @license      GNU
// @match        http://gzkg.e21.cn/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=e21.cn
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    setInterval(function () {
        for (let t of document.getElementsByTagName("iframe"))
        {
            console.log(t);
            for (let i of t.contentDocument.getElementsByTagName("input")) {
                console.log("added eventListener.");
                i.addEventListener("onclick",function () {document.cookie = ""});
            }
        }
        for (let i of document.getElementsByClassName("submit")) {
            console.log("added eventListener.")
            i.addEventListener("onclick",function () {document.cookie = ""})
        }}, 1000);
})();