某html>body>table>tbody>tr*>td*
在第二tr中,除了第四td之外,其它全display:none或remove
某html>body>table>tbody>tr*>td*
在第二tr中,除了第四td之外,其它全display:none或remove
已自行得解。thx
这应该用 stylish 吧
html>body>table>tbody>tr:nth-of-type(2)>td:not(:nth-of-type(4)) {
display:none;
}
我的方法是:
javascript:
let handle2tr = document.querySelectorAll("body table tr");
handle2tr[0].style.display = "none";
handle2tr[2].style.display = "none";
let handle4td = handle2tr[1].querySelectorAll("td");
for (let i = 0; i < handle4td.length; i++) {
if (i != 3) {
handle4td[i].style.display = "none";
}
}
void(0);
stylish如何使用?
Stylish Stylus Stylebot 都可以,就是加一段样式,不需要用 js。用 bookmarklet 也行,create 一个 style,append 到 head 里去就行。