Greasy Fork

来自缓存

Greasy Fork is available in English.

Twitter 主页上的媒体模式

在 Twitter 的主页和列表时间流上删除纯文本 Tweet。当前是 Beta 质量

当前为 2020-08-06 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
UtopicPanther
评分
0 0 0
版本
0.5.1
创建于
2020-08-05
更新于
2020-08-06
大小
4.6 KB
许可证
暂无
适用于

Twitter 主页面上的媒体模式

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

在我的 Twitter 主页和列表上删除纯文本的 Tweet。

脚本需要一定的时间才能启动。

警告:不存在完全准确的方式探测 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 兼容。