where is the source code brother
document.querySelectorAll(css_selector).remove()
the hard part would be maintaining the css selectors. This is probably and arms race situation, where websites will obfuscate their elements in such a way where identifying the elements you want is nigh impossible, but that would probably take more engineering than it's worth. What's really interesting is that facebook does not scrub their `data-testid` attributes, so you can basically key on that since they probably test that part of the application extensively, and probably run smoke tests/chaos engineering on their live app so removing them might be impossible in their current implementation.right now on facebook the appropriate js code would be:
document.querySelectorAll('*[data-testid="fbFeedStoryUFI/feedbackSummary"]').forEach(element => element.remove()) [data-testid="fbFeedStoryUFI/feedbackSummary"] {
display: none
}
It's not clear why the developer chose to inject the stylesheets dynamically and magnify the footprint 10x by including a polyfill library, rather than using the manifest to specify them declaratively, but whatever.