ophl
V2EX  ›  问与答

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

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

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

    v2ex.com##.avatar

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