To deliver a clean, organic, and fluid UX that captivates readers and drives engagement to maximize ad revenue, Marfeel filters the extraneous elements from a publisher's article on their desktop site, and optimizes it for their Marfeel Progressive WebApp (PWA).
Boilerpipe is the clever algorithm that Marfeel engineered to parse a customer's articles. The whitelist and blacklist are what direct Boilerpipe to omit or extract the elements to be replicated in a publisher's Marfeelized mobile site to deliver an enhanced UX that boosts engagement.
The elements in both are identified by Marfeel when developing a customer's Marfeel PWA to optimize UX, however they can always be configured and modified according to customer request.
Both the whitelist and blacklist are defined in a tenant's definition.json inside "configuration".
The elements themselves can be classes, ids, or HTML tags. In the case of HTML tags, they have to all be in capital letters.
They are listed without any class or id mark (. or #) and separated by a comma without a space.
Adding "==" to the beginning of a class will either blacklist or whitelist the elements that only have that specific item. Elements that have the same class besides others will not be affected. For example, if we had these two elements:
- Element 1: <div class=“a”>A</div>
- Element 2: <div class “a b c”>A B C</div>
The following line would only remove the first element because the second one has more classes other than “a”:
Whitelist identifies elements or characteristics for Boilerpipe to extract and use within the Marfeel mobile website.
Examples might include author name, publishing date, etc.
Blacklist identifies the elements or characteristics that a Marfeel PWA replicates from a publisher's desktop site.
Defined items might include a publisher's sharing bar, which would be excluded because the Marfeel solution provides a native auto-hiding social sharing bar. The Marfeel social sharing bar promotes readability and optimizes the space available while encouraging sharing on the reader's social networks.
Image Gallery Blacklist
The following can be inserted in configuration of definition.json to prevent an image from being processed as an image. It is instead treated as part of the article's textual content. This is especially useful for images under tags such as buttons.
Collapsed Gallery Blacklist
The following can be inserted in configuration of definition.json to prevent an image from being part of a collapsed gallery. This is especially useful for small images as the author avatar:
Next page whitelist and blacklist
The next page whitelist and blacklist define the elements to include or omit from subsequent pages of an article: