Pi.ai Hide auto sidebar

Hide the sidebar on initial load to prevent it from showing up each time you send a message

// ==UserScript==
// @name         Pi.ai Hide auto sidebar
// @namespace    https://github.com/legovader09
// @version      1.1
// @description  Hide the sidebar on initial load to prevent it from showing up each time you send a message
// @author       Doomnik
// @match        https://pi.ai/discover
// @icon         https://www.google.com/s2/favicons?sz=64&domain=pi.ai
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    const interval = setInterval(() => {
        const sidebar = document.getElementsByClassName('lg:border-r')[0];
        if (!sidebar) return;
        sidebar.classList.toggle('hidden', true);
        clearInterval(interval)
    }, 1000);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址