Skip to content

Commit 3d2f63e

Browse files
committed
feat: 清理更多的按钮和全尺寸显示照片
1 parent ee0e780 commit 3d2f63e

File tree

3 files changed

+42
-5
lines changed

3 files changed

+42
-5
lines changed

twitter(X)-plus/AUTHORS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!--474877,545417,567371,568421-->
1+
<!--474877,545417,567371,568421,526565,527908-->
22
<!--AUTHORS-->
33
## 💖 脚本参考或使用了以下脚本:
44
[🧑‍💻 **@dmtri**](https://greasyfork.org/users/1168813) ⇒ 📜 _[Stop videos looping](https://greasyfork.org/scripts/474877)_<br>

twitter(X)-plus/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# **🛠️ twitter(X)-plus 更新日志**
22

3+
### **📅 2026.3.20.1**
4+
5+
**新增**: 清理更多的按钮和全尺寸显示照片<br>
6+
7+
---
8+
39
### **📅 2026.3.16.1**
410

511
**新增**: •初始版本

twitter(X)-plus/twitter(X)-plus.user.js

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,21 +363,22 @@
363363
// @compatible qq
364364
// @compatible via
365365
// @compatible brave
366-
// @version 2026.3.16.1
366+
// @version 2026.3.20.1
367367
// @created 2026-03-16 13:09:27
368368
// @downloadURL https://raw.githubusercontent.com/ChinaGodMan/UserScripts/main/twitter(X)-plus/twitter(X)-plus.user.js
369369
// @updateURL https://raw.githubusercontent.com/ChinaGodMan/UserScripts/main/twitter(X)-plus/twitter(X)-plus.user.js
370370
// ==/UserScript==
371371

372-
//LINK - 隐藏按钮
372+
const fullView = true
373+
374+
//LINK - 隐藏一些元素
373375
const style = document.createElement('style')
374376
style.id = 'x-btn-hider-styles'
375377
style.textContent = `
376378
/* 右上角Grok 暂时只测试了 中文页面 后续待添加 */
377379
button[aria-label="Grok 操作"] {
378380
display: none !important;
379381
}
380-
381382
/* 转发 */
382383
[data-testid="retweet"] {
383384
display: none !important;
@@ -386,8 +387,38 @@ button[aria-label="Grok 操作"] {
386387
/* 浏览量 */
387388
a[href*="/analytics"] {
388389
display: none !important;
389-
390+
}
391+
/*按地区国家屏蔽选项*/
392+
#x-country-blocker-link {
393+
display: none !important;
394+
}
395+
/*其他*/
396+
[data-testid="GrokDrawer"],
397+
/*jb 关注请求 */
398+
a[href="/follower_requests"],
399+
/*设置广告*/
400+
a[href="https://ads.x.com/?ref=gl-tw-tw-twitter-ads-rweb"],
401+
/* Grok */
402+
a[href="/i/grok"],
403+
/* 创作者工作室 */
404+
a[href="/i/jf/creators/studio"],
405+
a[href="/i/verified-orgs-signup"],
406+
a[href="/i/premium_sign_up"],
407+
/*页面右边订阅*/
408+
aside[aria-label="订阅 Premium"],
409+
aside[aria-label="Subscribe to Premium"],
410+
/*其他*/
411+
[data-testid="grokImgGen"],
412+
.r-18u37iz.r-1h0z5md button[aria-label="Grok actions"] {
413+
display: none !important;
414+
}
390415
`
416+
// 全尺寸预览图片
417+
if (fullView) {
418+
style.textContent += `
419+
* div[data-testid="tweetPhoto"]:has(div+img) > div {background-size: contain;}
420+
`
421+
}
391422
document.head.appendChild(style)
392423

393424
//SECTION - 拉黑

0 commit comments

Comments
 (0)