adblocker_manager 1.0.0 copy "adblocker_manager: ^1.0.0" to clipboard
adblocker_manager: ^1.0.0 copied to clipboard

Manager package for handling multiple ad-blocking filters

Adblocker Manager #

A Flutter package that manages multiple ad-blocking filters for the adblocker_webview package.

Features #

  • Support for multiple filter types (EasyList, AdGuard)
  • Aggregates blocking decisions from multiple filters
  • Combines CSS rules from all active filters
  • Easy configuration and initialization

Usage #

// Create configuration
final config = FilterConfig(
  filterTypes: [FilterType.easyList, FilterType.adGuard],
);

// Initialize manager
final manager = AdblockFilterManager();
await manager.init(config);

// Check if resource should be blocked
final shouldBlock = manager.shouldBlockResource('https://example.com/ad.js');

// Get CSS rules for a website
final cssRules = manager.getCSSRulesForWebsite('example.com');

Additional information #

This package is part of the adblocker_webview_flutter project and works in conjunction with the adblocker_core package.

1
likes
140
points
58
downloads

Publisher

verified publisherislamdidarmd.dev

Weekly Downloads

Manager package for handling multiple ad-blocking filters

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

adblocker_core, flutter

More

Packages that depend on adblocker_manager