|
Welp, I'll think about it. There's currently no logic in place to preserve spoiler tags, indeed. Perhaps add some blurred styling whenever the Spoiler tag is found.
Filtering critical reviews is more doable, but I sense this kind of filtering must be done directly on the website, so I suggest visiting the website source of such reviews; some sources might provide this sort of filtering.
For Goodreads and Hardcover, the plugin queries the book's data feed / cache and sorts extracted reviews in descending order by likeCount (number of likes / helpful votes), taking the top 8 unique entries. For Amazon and other sources, it fetches the default "Top Reviews" / most helpful reviews as returned by the storefront.
Why This Causes Spoilers to Surface: Because top-liked reviews are frequently in-depth analyses written by readers who have finished the book, they are much more likely to discuss major plot points and end-of-book twists.
|