Hide Baseball Notifications

Hide baseball results from the notifications page so that more important notifications are not concealed.

  1. // ==UserScript==
  2. // @name Hide Baseball Notifications
  3. // @namespace http://knightsradiant.pw/
  4. // @version 0.11
  5. // @description Hide baseball results from the notifications page so that more important notifications are not concealed.
  6. // @author Talus
  7. // @match https://politicsandwar.com/nation/notifications/
  8. // @require https://code.jquery.com/jquery-3.6.0.min.js
  9. // @license GPL-3.0-or-later
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. var notificationsTablesPath = '#rightcolumn > div > table > tbody > tr';
  15. var oblGameMatch = ':contains("Your OBL team")';
  16.  
  17. var $ = window.jQuery;
  18.  
  19. $(notificationsTablesPath).each(function(){
  20. console.log('yay');
  21. if ($(this).is(oblGameMatch)){
  22. $(this).hide();
  23. }
  24. });
  25.  
  26. })();