Greasy Fork

StandardUnMusk

Stop losing your IQ by reading Musk News on derStandard.at

目前为 2022-05-27 提交的版本。查看 最新版本

// ==UserScript==
// @name         StandardUnMusk
// @namespace    https://derstandard.at/
// @version      0.1
// @description  Stop losing your IQ by reading Musk News on derStandard.at
// @author       dersansard
// @match        *://*.derstandard.at/*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    var articles, art;
    articles = document.getElementsByTagName('article');
    if (!articles) { return; }
    for (const art of articles) {
        if(art.innerText.match(/elon musk/i)) {
            console.log(art.innerText);
            art.innerHTML = '<div><figure><picture><img src="https://picsum.photos/270/151" title="" alt="Lorem Picsum" style="max-height:151px"/></picture></figure>' +
                '<header><p class="teaser-kicker">Alles wird gut</p><h1 class="teaser-title">Nicht aufregen!</h1></header></div>';
        }
    }
})();