Don't recommend a smartphone reddit app

Hide the smartphone app popup when opening the reddit mobile site.

  1. // ==UserScript==
  2. // @name Don't recommend a smartphone reddit app
  3. // @match https://www.reddit.com/*
  4. // @require https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js
  5. // @description Hide the smartphone app popup when opening the reddit mobile site.
  6. // @version 0.2
  7. // @grant GM_setValue
  8. // @grant GM_getValue
  9. // @namespace https://greasyfork.org/users/83168
  10. // ==/UserScript==
  11.  
  12. $(function(){
  13.  
  14. setInterval(function(){
  15. $('.XPromoPopupRpl__actionButton').click();
  16. $('.XPromoBottomBar__closeButton').click();
  17. },50);
  18. $('.TopButton').hide();
  19.  
  20. })(jQuery);