span[data-content="S"]
+ span[data-content="p"]
+ span[data-content="o"]
+ span[data-content="n"]
+ span[data-content="s"]
+ span[data-content="o"]
+ span[data-content="r"]
+ span[data-content="e"]
+ span[data-content="d"] {
display: none;
}
This only hides the "d", right? You generally can't hide a higher-level element based on drill-down selectors, so pure CSS wouldn't be enough. But of course, finding the appropriate parent by scripting would be trivial from here.Apart of that, why can't one just accumulate all visible text by filtering out all `display: none` elements? Of course, this could be attacked again by e.g. shrinking the "noise" characters to width 0.