import { clsmin, easyListFilter } from "clsmin";
const minifier = clsmin(
(className) => (
!className.toLowerCase().startsWith("ad") &&
easyListFilter(className)
);
);
minifier("header");
// => a
minifier("footer");
// => b
minifier("header");
// => a
clsmin(filter: (className: string) => boolean = () => true): (className: string) => string;
Class names blocked by adblocking software.
const EasyListClassNames: Set<string>;
function easyListFilter(className: string): boolean;
- Filter interface is now compatible with
Array.prototype.filter()
method.