请问有没有隐藏本站头像的油猴脚本?

2024-08-14 11:45:47 +08:00
 ophl
左侧这一列头像还是太扎眼了,能不能隐藏起来?
1900 次点击
所在节点    问与答
16 条回复
sslzjx
2024-08-14 11:48:04 +08:00
block images/video
gpt5
2024-08-14 11:52:54 +08:00
我是直接用广告拦截插件把头像的元素拦截了
ophl
2024-08-14 12:11:10 +08:00
@gpt5 我这个 adblock 好像不能指定一类网址,再研究下
jifengg
2024-08-14 12:59:47 +08:00
右上角,设置,自定义 css ,
codyfeng
2024-08-14 13:03:14 +08:00
刚刚手搓了一个

```
// ==UserScript==
// @name Hide avatars from v2ex.com
// @namespace Violentmonkey Scripts
// @match https://*.v2ex.com/*
// @match https://v2ex.com/*
// @grant none
// @version 1.0
// @author -
// @description 14/08/2024, 13:00:17
// ==/UserScript==


(()=>{
'use strict';

const css = `.avatar { display: none !important; }`;

let customStyle = document.createElement('style');
customStyle.innerHTML = css;
document.head.appendChild(customStyle);

})()
```
gzldc
2024-08-14 13:06:09 +08:00
@codyfeng v 站上个个都是人才
busterian
2024-08-14 13:13:52 +08:00
@ophl
广告过滤插件直接 ##.avatar 又快又好
你用油猴脚本还会瞬间闪一下原有的头像。
totoro625
2024-08-14 13:15:39 +08:00
hero1874
2024-08-14 13:20:43 +08:00
@codyfeng #5 感谢 已经用上了
lambdaq
2024-08-14 13:27:08 +08:00
https://www.v2ex.com/settings 这里就可以自定义 css 吧
0o0O0o0O0o
2024-08-14 13:38:56 +08:00
https://www.v2ex.com/settings 自定义 css 里
#Main .cell .avatar {
display: none;
}
dreampet
2024-08-14 13:42:30 +08:00
Adblock 插件, 高级 -> 我的过滤列表添加一条

v2ex.com##.avatar

就可以了
tyrone2333
2024-08-14 13:53:47 +08:00
ophl
2024-08-14 14:42:04 +08:00
@codyfeng 多谢,用这个搞定了
9pr7im4IjQ9u0806
2024-08-14 15:56:25 +08:00
没了头像,岂不是少了很多乐趣哈哈哈哈哈哈
bzw875
2024-08-14 16:16:20 +08:00
我用自定义 css 的 Chrome 插件 [Stylebot]
下面样式全部隐藏,并且把空间空出来
.cell td:first-child {
display: none;
}
img.avatar {
display: none;
}

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1064868

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX