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

右上角大大的头像和用户名能弄小点或者隐藏吗?不想让别人轻易看到啊。

  •  
  •   WinMain · 2018-03-28 15:53:44 +08:00 · 2403 次点击
    这是一个创建于 2214 天前的主题,其中的信息可能已经有所发展或是发生改变。

    RT 在公司的时候经常会刷刷小 V,但是同事在身后走来走去的,不想被轻易的看到头像和用户名啊,现有情况是很容易吧?有概率能解决吗

    第 1 条附言  ·  2018-03-28 17:14:17 +08:00
    哎呀,我去,大神真多
    用的 5L 大神的
    #Rightbar > div:nth-child(2) > div:nth-child(1) > table:nth-child(1) {display: none;}
    Perfect !!!
    15 条回复    2018-03-28 17:20:00 +08:00
    AlwaysBehave
        1
    AlwaysBehave  
       2018-03-28 15:56:08 +08:00
    自己写一个油猴脚本或者做一个客户端
    charadeyouare
        2
    charadeyouare  
       2018-03-28 15:59:54 +08:00
    随便一个 ad block 插件...
    sennes
        3
    sennes  
       2018-03-28 16:32:03 +08:00
    设置支持自定义 CSS
    感觉可以利用一下。
    SingeeKing
        4
    SingeeKing  
       2018-03-28 16:36:55 +08:00
    .avatar {
    display: none;
    }

    https://www.v2ex.com/settings
    SingeeKing
        5
    SingeeKing  
       2018-03-28 16:38:09 +08:00
    #Rightbar .avatar {
    display: none;
    }

    这样吧,修正误伤
    vve2ex
        6
    vve2ex  
       2018-03-28 16:54:58 +08:00
    @SingeeKing 厉害,第一次发现 V 站还有这功能
    sennes
        7
    sennes  
       2018-03-28 16:57:04 +08:00
    #Rightbar div:nth-child(2) div:first-child table:first-child{
    display:none;
    }

    rabbbit
        8
    rabbbit  
       2018-03-28 16:58:10 +08:00
    帮你伪装成别人
    #Rightbar div:nth-of-type(1) table:nth-of-type(1) .bigger a{
    color:#fff;
    }

    #Rightbar div:nth-of-type(1) table:nth-of-type(1) .bigger a:before{
    content: "lalala";
    color: #000;
    }
    #Rightbar div:nth-of-type(1) table:nth-of-type(1) td:nth-of-type(1) {
    position: relative;
    }

    #Rightbar div:nth-of-type(1) table:nth-of-type(1) td:nth-of-type(1):after{
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    display:block;
    width:48px;
    height:48px;
    background: #fff url( https://cdn.v2ex.com/avatar/c8a2/3f84/173108_normal.png?m=1499501276)
    }
    sennes
        9
    sennes  
       2018-03-28 17:00:01 +08:00
    哈哈 我好蠢 写的比较复杂 。好像 @SingeeKing #5 的就够用了。
    SingeeKing
        10
    SingeeKing  
       2018-03-28 17:00:20 +08:00
    @rabbbit #8 😂为什么是我的头像
    SingeeKing
        11
    SingeeKing  
       2018-03-28 17:02:38 +08:00
    @sennes #9 我没注意审题。。。没看到还要隐藏用户名

    #Rightbar .avatar,.bigger {
    display: none;
    }
    rabbbit
        12
    rabbbit  
       2018-03-28 17:03:42 +08:00
    @SingeeKing 看到个帅哥就随手复制了(>▽<)
    SingeeKing
        13
    SingeeKing  
       2018-03-28 17:05:20 +08:00
    #Rightbar > div:nth-child(2) > div:nth-child(1) > table:nth-child(1) {display: none;}

    好了写了个理论无误伤的
    SingeeKing
        14
    SingeeKing  
       2018-03-28 17:07:10 +08:00
    #Top > div > div > table > tbody > tr > td:nth-child(3) > a:nth-child(2) {display: none;}

    要隐藏最上边的用户名可以再加上这个
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2839 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 06:22 · PVG 14:22 · LAX 23:22 · JFK 02:22
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.