Greasy Fork is available in English.

Quora: remove sponsored posts

Remove sponsored posts that are shown as relevant answers even if they're not.

  1. // ==UserScript==
  2. // @name Quora: remove sponsored posts
  3. // @namespace StephenP
  4. // @version 1.4
  5. // @description Remove sponsored posts that are shown as relevant answers even if they're not.
  6. // @author StephenP
  7. // @grant none
  8. // @match https://*.quora.com/*
  9. // @match http://*.quora.com/*
  10. // ==/UserScript==
  11. (function(){
  12. sponsorRemover = setInterval(removeSponsor, 1000);
  13. })();
  14. function removeSponsor(){
  15. try{
  16. var questionAds=document.getElementsByClassName("question_page_ad");
  17. if(questionAds.length>0){
  18. for(var ad of questionAds){
  19. ad.parentNode.removeChild(ad);
  20. }
  21. }
  22. }
  23. catch(err){
  24. console.log(err);
  25. }
  26. }