Greasy Fork

Greasy Fork is available in English.

StandardUnMusk

Avoid everything Musk on derStandard.at

当前为 2022-05-27 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         StandardUnMusk
// @namespace    https://derstandard.at/
// @version      0.4.5
// @description  Avoid everything Musk on derStandard.at
// @author       dersansard
// @match        *://*.derstandard.at/*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    var articles, art;
    var teasers = [
        'Keine Panik',
        'Nicht aufregen',
        'Intermezzo',
        'Wirklich!',
        'Es ist nichts passiert'
    ]
    var subtitles = [
        'Hier gibt es nichts zu lesen',
        'Bitte scrollen Sie weiter',
        'Genießen Sie diese Auszeit mit einem Welpenbild',
        'Unterstützen Sie gute Welpenbilder',
        'Es gibt keinen guten Feed für Traktorenbilder',
        'Können diese Augen lügen?',
        '(apa) Foto: place-puppy.com, vermutlich nicht Cremer'
    ]
    articles = document.getElementsByTagName('article');
    if (!articles) { return; }
    for (const art of articles) {
        if(art.innerText.match(/elon musk/i) || art.innerHTML.match(/[\-\/]musks?\-/)) {
            art.innerHTML = 
                '<div><figure><picture>' +
                    '<img src=" https://place-puppy.com/270x151?'+Math.random()+'" title="" alt="Lorem Picsum"/>' +
                '</picture></figure>' +
                '<header>' +
                    '<div class="teaser-postingcount">' + Math.floor(Math.random()*9000) + ' <span>Postings</span></div>' +
                    '<p class="teaser-kicker">Alles wird gut</p>' +
                    '<h1 class="teaser-title">' + teasers[Math.floor(Math.random()*teasers.length)] + '</h1>' +
                    '<p class="teaser-subtitle">'+ subtitles[Math.floor(Math.random()*subtitles.length)] + '</p>'
                '</header></div>';
        }
    }
})();