trendiguru / fzz-plugin

Fazz Javascript Plugin
http://fazz.co
2 stars 0 forks source link

Nice instruction for whitelist/blacklist functionality #274

Open liorsbg opened 7 years ago

liorsbg commented 7 years ago

Maybe with a nice example page? graphics?

┆Issue is synchronized with this Asana task

liorsbg commented 7 years ago

An MVP of this is Critical.

iddan commented 7 years ago
<script
    data-whitelist="<classname>[, <classname>[n]]"
    data-blacklist="<classname>[, <classname>[n]]"
></script>

example: stylebook.de's current blacklist

<script data-blacklist=".videoPlayer, .rotatingTeaser, .OUTBRAIN"></script>
  1. Selects elements by the selectors of the whitelist (default is all the elements a.k.a *)
  2. Eliminates descendants of blacklist selectors