V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
ophl
V2EX  ›  问与答

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

  •  
  •   ophl · 36 天前 · 1463 次点击
    这是一个创建于 36 天前的主题,其中的信息可能已经有所发展或是发生改变。
    左侧这一列头像还是太扎眼了,能不能隐藏起来?
    16 条回复    2024-08-14 16:16:20 +08:00
    sslzjx
        1
    sslzjx  
       36 天前
    block images/video
    gpt5
        2
    gpt5  
       36 天前
    我是直接用广告拦截插件把头像的元素拦截了
    ophl
        3
    ophl  
    OP
       36 天前
    @gpt5 我这个 adblock 好像不能指定一类网址,再研究下
    jifengg
        4
    jifengg  
       36 天前
    右上角,设置,自定义 css ,
    codyfeng
        5
    codyfeng  
       36 天前   ❤️ 4
    刚刚手搓了一个

    ```
    // ==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);

    })()
    ```
    ssgooglg
        6
    ssgooglg  
       36 天前
    @codyfeng v 站上个个都是人才
    busterian
        7
    busterian  
       36 天前   ❤️ 1
    @ophl
    广告过滤插件直接 ##.avatar 又快又好
    你用油猴脚本还会瞬间闪一下原有的头像。
    hero1874
        9
    hero1874  
       36 天前
    @codyfeng #5 感谢 已经用上了
    lambdaq
        10
    lambdaq  
       36 天前
    https://www.v2ex.com/settings 这里就可以自定义 css 吧
    0o0O0o0O0o
        11
    0o0O0o0O0o  
       36 天前
    https://www.v2ex.com/settings 自定义 css 里
    #Main .cell .avatar {
    display: none;
    }
    dreampet
        12
    dreampet  
       36 天前
    Adblock 插件, 高级 -> 我的过滤列表添加一条

    v2ex.com##.avatar

    就可以了
    ophl
        14
    ophl  
    OP
       36 天前
    @codyfeng 多谢,用这个搞定了
    kw8023cn
        15
    kw8023cn  
       36 天前
    没了头像,岂不是少了很多乐趣哈哈哈哈哈哈
    bzw875
        16
    bzw875  
       36 天前
    我用自定义 css 的 Chrome 插件 [Stylebot]
    下面样式全部隐藏,并且把空间空出来
    .cell td:first-child {
    display: none;
    }
    img.avatar {
    display: none;
    }
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2920 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 00:34 · PVG 08:34 · LAX 17:34 · JFK 20:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.