wingman_jr icon indicating copy to clipboard operation
wingman_jr copied to clipboard

Get Blocked Count for current page?

Open uhtmilkshake opened this issue 3 years ago • 3 comments
trafficstars

Hi,

is there anyway to access the current page's blocked count using JS? Thanks in advance.

uhtmilkshake avatar Apr 21 '22 01:04 uhtmilkshake

Currently, no. Possible, I think so.

The way this addon works isn't naturally "page-based" as it just sees all the requests. However, the filtering request has this thing called documentUrl that could be used for this purpose. It's one of those things I've kicked around but have never done anything with - there's a stub over at #59 with this intent.

What is your intent here? Have the badge show only the blocked images for the given page rather than overall?

wingman-jr-addon avatar Apr 23 '22 06:04 wingman-jr-addon

Yep, precisely that.

uhtmilkshake avatar Apr 23 '22 10:04 uhtmilkshake

Hmm, one more followup question. Would you naturally expect that the blocked image count should be for that page specifically, or the domain as a whole during your current browsing session?

wingman-jr-addon avatar Apr 26 '22 01:04 wingman-jr-addon