Adding code to check if the parent node is a spoiler too - I want to avoid traversing the whole DOM every time anybody clicks on the page.
Adding code to check if the parent node is a spoiler too - I want to avoid traversing the whole DOM every time anybody clicks on the page.

trustrachel/tvtropes-spoilers