Greasy Fork

Greasy Fork is available in English.

feishu_minutes_single

将飞书妙记转化为单栏

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         feishu_minutes_single
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  将飞书妙记转化为单栏
// @author       Ovler-Young
// @match        https://*.feishu.cn/minutes/*
// @exclude      https://*.feishu.cn/minutes/me
// @icon         https://www.google.com/s2/favicons?sz=64&domain=feishu.cn
// @grant        none
// @license MIT
// ==/UserScript==

(function () {
    "use strict";
    // Create a floating ball
    var ball = document.createElement("div");
    ball.style.backgroundColor = "red";
    ball.style.width = "30px";
    ball.style.height = "30px";
    ball.style.borderRadius = "15px";
    ball.style.position = "fixed";
    ball.style.right = "20px";
    ball.style.bottom = "20px";
    ball.style.cursor = "pointer";
    document.body.appendChild(ball);

    // Add an event listener to run code when the ball is clicked
    ball.addEventListener("click", function () {
        var isHidden = ball.getAttribute("data-hidden") === "true";
        // 1. remove extra-info-wrapper
        var extrainfowrapper =
            document.getElementsByClassName("extra-info-wrapper")[0];
        extrainfowrapper.style.display = "none";

        // 2. remove keywords-comp-inner
        var keywordsCompInner = document.getElementsByClassName(
            "keywords-comp-inner"
        )[0];
        keywordsCompInner.style.display = "none";
        console.log("success")

        // 3. move right-area to left-area
        var rightAreaInner = document.querySelector('.right-area-inner');
        var leftArea = document.querySelector('.left-area');
        var rightArea = document.querySelector('.right-area');
        var collapseCompExpand = document.querySelector('.collapse-comp-expand');
        leftArea.appendChild(rightAreaInner);
        rightArea.style.display = "none";
        collapseCompExpand.style.display = "none";

        // 4 remove header
        var larkwWebHeader = document.querySelector('.larkw-web-header');
        larkwWebHeader.style.display = "none";
    });
})();