Remove Axios "Headers" in News Articles

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

Pada tanggal 13 Agustus 2024. Lihat %(latest_version_link).

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Remove Axios "Headers" in News Articles
// @namespace    https://x.com/dadadaiyaa/
// @version      0.1.2
// @description  Remove annnoying headers like "Driving the news", "Zoom in", "Why it matters", etc. on Axios.
// @author       Daiya
// @match        https://www.axios.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=axios.com
// @grant        none
// @license      Unlicense
// ==/UserScript==

(function() {
    'use strict';
    let strongElms = document.querySelectorAll('div[data-vars-event-name="story_view"] strong');
    strongElms.forEach(element => {
        if (element.innerHTML.trim().endsWith(":")) element.remove();
    });
})();