mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
17 lines
506 B
JavaScript
17 lines
506 B
JavaScript
SpinQuery.any(
|
|
() => document.querySelectorAll(".gg-pic"),
|
|
it =>
|
|
{
|
|
it.forEach(element =>
|
|
{
|
|
const a = element.parentElement;
|
|
a.style.display = "none";
|
|
const index = [...a.parentElement.childNodes].indexOf(a) + 1;
|
|
const picture = a.parentElement.parentElement.querySelector(`.pic li:nth-child(${index})`);
|
|
if (picture)
|
|
{
|
|
picture.style.visibility = "hidden";
|
|
}
|
|
});
|
|
}
|
|
); |