您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide Private or Direct posting from Mastodon timeline
- // ==UserScript==
- // @name Mastodon Streamer Mode
- // @namespace me.nzws.us.mastodon-streamer-mode
- // @version 1.0.0
- // @description Hide Private or Direct posting from Mastodon timeline
- // @author nzws
- // @match https://don.nzws.me/*
- // @match https://mstdn.jp/*
- // @match https://mastodon.cloud/*
- // @match https://pawoo.net/*
- // @match https://best-friends.chat/*
- // @grant none
- // ==/UserScript==
- const css = document.createElement('style');
- css.innerHTML = `
- .status__wrapper-private, .status__wrapper-direct {
- display: none
- }
- `;
- document.head.appendChild(css);
- window.onload = () => {
- 'use strict';
- const mastodon = document.querySelector('.app-body #mastodon');
- if (!mastodon) return;
- const composeForm = document.querySelector('.compose-form');
- const div = document.createElement('div');
- div.textContent = 'Streamer Mode is Enabled';
- div.style.margin = '5px 0';
- div.style.padding = '5px 0';
- div.style.background = 'purple';
- div.style.color = 'white';
- div.style.textAlign = 'center';
- composeForm.appendChild(div);
- };