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 - 隐藏一些元素
373375const style = document . createElement ( 'style' )
374376style . id = 'x-btn-hider-styles'
375377style . textContent = `
376378/* 右上角Grok 暂时只测试了 中文页面 后续待添加 */
377379button[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/* 浏览量 */
387388a[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+ }
391422document . head . appendChild ( style )
392423
393424//SECTION - 拉黑
0 commit comments