Mastodon BirdUI Style Override

Changes the style of Mastodon to BirdUI (https://github.com/ronilaukkarinen/mastodon-bird-ui) by Rolle (https://mementomori.social/@rolle)

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Mastodon BirdUI Style Override
// @namespace    https://greasyfork.org/en/scripts/470753-mastodon-birdui-style-override
// @version      0.6
// @description  Changes the style of Mastodon  to BirdUI (https://github.com/ronilaukkarinen/mastodon-bird-ui) by Rolle (https://mementomori.social/@rolle)
// @author       Cragsand - (https://mastodon.social/@cragsand)
// @match        https://universeodon.com/*
// @match        https://mastodon.social/*
// @grant        GM_getResourceText
// @grant        GM_addStyle
// @license      MIT License
// @resource     cssFile  https://raw.githubusercontent.com/ronilaukkarinen/mastodon-bird-ui/master/layout-single-column.css
// ==/UserScript==

// INSTRUCTIONS
// To add support for more instances
// Add another @match followed by the URL to your instance

(function() {
    'use strict';

    // Apply the CSS from Rolles repo
    var cssText = GM_getResourceText('cssFile');
    GM_addStyle(cssText);

    // Change background to black like Twitter - Add two slashes in front to disable
    document.documentElement.style.setProperty('--color-brand-mastodon-bg', 'black');
    document.documentElement.style.setProperty('--color-bg-75', 'black');

    // Fix an error in the CSS by overriding the style for threaded replies and changing the background color to black
    // Comment out or remove this section once it's been fixed
    var customCSS = `
        .status--in-thread .status__content.status__content--with-action  {
            padding-left: 0px !important;
        }
        .columns-area__panels__main {
            background-color: black !important;
        }
    `;
    // Apply the CSS error correction
    GM_addStyle(customCSS);

})();