mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
24 lines
657 B
JavaScript
24 lines
657 B
JavaScript
(() =>
|
|
{
|
|
return (_, resources) =>
|
|
{
|
|
resources.applyStyle("removeAdsStyle", "remove-promotions-style");
|
|
SpinQuery.any(
|
|
() => $(".gg-pic").parent("a"),
|
|
it =>
|
|
{
|
|
it.css("display", "none");
|
|
it.each((_, element) =>
|
|
{
|
|
const index = $(element).index() + 1;
|
|
const selector = $(element).parent().parent().find(`.pic li:nth-child(${index})`);
|
|
$(selector).css("visibility", "hidden");
|
|
});
|
|
}
|
|
);
|
|
return {
|
|
ajaxReload: false
|
|
};
|
|
};
|
|
})();
|