.avatar, #my-recent-topics > div > div > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(1) > a:nth-child(1) {display: none}
填入 https://v2ex.com/settings 自定义 CSS ,选中启用开关,保存即可
缺点是正常头像也会被隐藏,但至少比显示丑丑头像好
.avatar, #my-recent-topics > div > div > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(1) > td:nth-child(1) > a:nth-child(1) {display: none}
填入 https://v2ex.com/settings 自定义 CSS ,选中启用开关,保存即可
缺点是正常头像也会被隐藏,但至少比显示丑丑头像好
|
beetlerxMay 17, 2024
101
来了来了
|
|
justfunMay 17, 2024
102
|
|
KristdMay 17, 2024
103
有被歧视到
|
|
JoryJoestarMay 17, 2024
104
丑头人出击!
|
|
EJWMay 17, 2024
105
这头像怎么你了
|
|
15855pmMay 17, 2024
106
哪里丑了,有时候多找找自己的原因好吧,这么多年有变帅吗?
|
|
garipanMay 17, 2024
107
怎么这么多丑人头啊笑死
|
|
YuanComeMay 17, 2024
108
集合了兄弟们
|
|
Lamlam147May 17, 2024
110
为什么要隐藏起来?
|
|
ysicingMay 17, 2024
111
我觉得我的头像还行啊
|
|
yrhhhMay 17, 2024
112
请求出战🤣
|
|
cutehaloMay 17, 2024
113
我是像素人
|
|
Sanshi4396May 17, 2024
114
我来看看怎么个事
|
|
PoorBeMay 17, 2024
116
你嫌我丑?
|
|
binaryifyMay 17, 2024 via iPhone
117
啊
|
|
duron600May 17, 2024
118
多谢楼主
|
|
ZzdexMay 17, 2024
119
哪里丑了
|
|
V2SeanMay 17, 2024
123
丑丑头像人集合
|
|
kaishi123May 17, 2024
124
我是来看丑头像的
|
|
jspatrickMay 17, 2024
125
这个头像有特征的,脸的颜色都是 rgb(255,201,169),占比总像素在第二或第三,屏蔽脚本要解决读取图片像素跨域问题,就不放出来了
|
|
elechiMay 17, 2024
126
我的丑吗?
|
|
davidqwMay 18, 2024
127
有老哥已经开发出丑丑 NFT 薄荷工具了,抢注中
https://uglyface.lol/ |
|
happybabysMay 18, 2024 via iPhone
128
lol
|
|
banlinkMay 20, 2024
130
来个 js 的,好像还有点问题
```js // ==UserScript== // @name New Userscript // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match https://v2ex.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=v2ex.com // @grant GM_xmlhttpRequest // ==/UserScript== (function () { "use strict"; let avatar = document.getElementsByClassName("avatar"); for (let index = 0; index < avatar.length; index++) { let item = avatar[index]; GM_xmlhttpRequest({ method: "GET", responseType: "blob", url: item.src, onload: function (response) { if (response.status === 200) { new Promise((resolve, reject) => { let reader = new FileReader(); reader.addEventListener("load", () => { let img = new Image(); img.setAttribute("crossOrigin", "anonymous"); img.src = reader.result; img.addEventListener("load", () => resolve(img)); }); reader.readAsDataURL(response.response); }).then((img) => getImageData(item, img)); } }, }); } function getImageData(item, img) { let canvas = document.createElement("canvas"); canvas.setAttribute("width", `${item.width}px`); canvas.setAttribute("height", `${item.height}px`); var ctx = canvas.getContext("2d"); ctx.drawImage(img, 0, 0, item.width, item.height); let imgData = ctx.getImageData( item.width / 4, item.height / 4, item.width / 2, item.height / 2 ); let map = new Map(); for (let i = 0; i < imgData.data.length; i += 4) { let r = imgData.data[i]; let g = imgData.data[i + 1]; let b = imgData.data[i + 2]; // let a let rgb = `${r},${g},${b}`; if (!map.has(rgb)) { map.set(rgb, 1); } else { map.set(rgb, map.get(rgb) + 1); } } // 寻找最大值 let maxValue = 0; let color = ""; map.forEach((value, key) => { if (value > maxValue) { maxValue = value; color = key; } }); if (color == "255,201,169") { console.log("隐藏丑丑头像!"); item.style.display = "none"; } } })(); ``` |