ophl
V2EX  ›  问与答

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

  •  
  •   ophl · Aug 14, 2024 · 2318 views
    This topic created in 644 days ago, the information mentioned may be changed or developed.
    左侧这一列头像还是太扎眼了,能不能隐藏起来?
    16 replies    2024-08-14 16:16:20 +08:00
    sslzjx
        1
    sslzjx  
       Aug 14, 2024
    block images/video
    gpt5
        2
    gpt5  
       Aug 14, 2024
    我是直接用广告拦截插件把头像的元素拦截了
    ophl
        3
    ophl  
    OP
       Aug 14, 2024
    @gpt5 我这个 adblock 好像不能指定一类网址,再研究下
    jifengg
        4
    jifengg  
       Aug 14, 2024
    右上角,设置,自定义 css ,
    codyfeng
        5
    codyfeng  
       Aug 14, 2024   ❤️ 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);

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

    v2ex.com##.avatar

    就可以了
    ophl
        14
    ophl  
    OP
       Aug 14, 2024
    @codyfeng 多谢,用这个搞定了
    9pr7im4IjQ9u0806
        15
    9pr7im4IjQ9u0806  
       Aug 14, 2024
    没了头像,岂不是少了很多乐趣哈哈哈哈哈哈
    bzw875
        16
    bzw875  
       Aug 14, 2024
    我用自定义 css 的 Chrome 插件 [Stylebot]
    下面样式全部隐藏,并且把空间空出来
    .cell td:first-child {
    display: none;
    }
    img.avatar {
    display: none;
    }
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   992 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 77ms · UTC 20:23 · PVG 04:23 · LAX 13:23 · JFK 16:23
    ♥ Do have faith in what you're doing.