Remove Axios "Headers" in News Articles

Remove annnoying headers like "Driving the news", "Zoom in", "Why it matters", etc. on Axios.

  1. // ==UserScript==
  2. // @name Remove Axios "Headers" in News Articles
  3. // @namespace https://x.com/dadadaiyaa/
  4. // @version 0.1.2
  5. // @description Remove annnoying headers like "Driving the news", "Zoom in", "Why it matters", etc. on Axios.
  6. // @author Daiya
  7. // @match https://www.axios.com/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=axios.com
  9. // @grant none
  10. // @license Unlicense
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. let strongElms = document.querySelectorAll('div[data-vars-event-name="story_view"] strong');
  16. strongElms.forEach(element => {
  17. if (element.innerHTML.trim().endsWith(":")) element.remove();
  18. });
  19. })();