Twitter 主頁上的媒體模式

在 Twitter 的主頁和列表時間流上刪除純文字 Tweet。當前是 Beta 質量

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
UtopicPanther
今日安裝
0
安裝總數
1,089
評價
11 1 0
版本
0.7.1
建立日期
2020-08-05
更新日期
2020-08-07
尺寸
5.4 KB
授權條款
GPL-3.0-or-later
腳本執行於

Twitter 主頁面上的媒體模式

Github: https://github.com/UtopicPanther/userscript-twitter-home-media

在我的 Twitter 主頁和列表上刪除純文字的 Tweet。

指令碼需要一定的時間才能啟動。

工作原理:監聽頁面元素變動。然後檢索不包含圖片和其他媒體(如視訊)的全部 Tweet,將它們隱藏。然後檢索之前隱藏但媒體被新增的 Tweet,將它們重新顯示。

我僅在 Firefox (禁用 CSP)和 Violentmonkey 環境下測試。使用者報告也在 Chrome 下工作。

Firefox 注意事項

由於 CSP 限制,你可能需要在新版 Firefox 高階首選項 about:config 中將 security.csp.enable 設定為 false

COPYING

Copyright (C) 2020 UtopicPanther

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

This script contains an additional exemption. When this script is injected into the site with the original setting of @match, other user scripts running in the same space are not required to be compatible with GPL 3.

這個指令碼包含一個附加豁免。當此指令碼被注入到原有設定 @match 的 站點時,不要求同一空間中執行的其他使用者指令碼與 GPL 3 相容。