您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
在 Twitter 的主页和列表时间流上删除纯文本 Tweet。当前是 Beta 质量
当前为
Github: https://github.com/UtopicPanther/userscript-twitter-home-media
在我的 Twitter 主页和列表上删除纯文本的 Tweet。
脚本需要一定的时间才能启动。
警告:不存在完全准确的方式探测 Tweet 是否包含图片和其他媒体。此脚本进行了大量冗余处理,出现误删除 Tweet 的情况应该是相当罕见的。但仍然可能出现误删除的情况,如果不能接受,请勿使用此脚本。
工作原理:监听页面元素变动。然后检索不包含图片和其他媒体(如视频)的全部 Tweet,将它们隐藏。
我仅在 Firefox (禁用 CSP)和 Violentmonkey 环境下测试。用户报告也在 Chrome 下工作。
由于 CSP 限制,你可能需要在新版 Firefox 高级首选项 about:config
中将 security.csp.enable
设置为 false
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 兼容。