AdguardTeam / AdguardTeam/CoreLibs

Add block large size elements

Open
#1,919 0 comments 0 reactions 1 assignee Claimed by @sfionov View on GitHub
Feature request needs tech clarification Priority: P4
Dominant language
No language data
Stars
52
Forks
10
PR merge metrics
No merged PRs in 30d

Description

### Issue Details

Some websites fail to optimize large size loading causing long loading time

### Proposed solution

Add block large media element like [uBlock Origin ](https://github.com/gorhill/uBlock/wiki/Per-site-switches#no-large-media-elements) based on content-length. Currently, uBO only has a global setting and there's no way to set per-site thresholds for different pages.

Since AdGuard already has content type modifiers such as `$image $media $font ` , can we have a size option to more precisely control what to block or not.
syntax can be like
`$media>50MB $image>300KB $font>1MB $other>5M`

### Alternative solution

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.