Remove promoted questions and answers on Quora

Removes promoted answers that have nothing to do with the question you're looking up

Author
keyboard-shortcuts
Daily installs
0
Total installs
484
Ratings
3 0 0
Version
0.4
Created
2021-04-28
Updated
2023-03-11
License
MIT
Applies to

Remove "Promoted by" questions and answers on Quora



Every single Quora page with answers to a question also contains one or more posts that were promoted on the site and generally have nothing at all to do with the topic you're reading about. They include an irrelevant question and an answer praising their product, right in the middle of the page and with little to indicate that this is an ad, except for a small "Promoted by …" label.

This script searches for these "Promoted by …" labels and removes the whole promoted question and its answer, without leaving a gap in the page. If more content is loaded as you scroll down the page, new promoted entries will also be removed. It does nothing else, doesn't ask for special permissions, and only runs on quora.com.

The implementation uses XPath for efficient queries and low CPU usage. Set logRemovalsToDevConsole = true on line 16 to log each removal to the developer console.