Orbánfilter

orbanfilter

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         Orbánfilter
// @license      MIT
// @namespace    http://tampermonkey.net/
// @version      0.4
// @description  orbanfilter
// @author       otamata
// @match        https://24.hu/*
// @match        https://444.hu/*
// @match        https://444hsz.com/*
// @match        https://hvg.hu/*
// @grant        none
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
// ==/UserScript==
(function() {
    'use strict';
    const regex = /(orbán|szijjártó|rogán|migráns|fidesz|brüsszel|novák|mészáros)/;
    setInterval(function(){
        //444hsz.com
        $('h1.site span').each(function(){
            if ($(this).text().toLowerCase().match(regex)){
                $(this).closest('app-article-card').hide()
            }
        });
        $('.title').each(function(){
            if ($(this).text().toLowerCase().match(regex)){
                $(this).closest('.mat-row').hide()
            }
        });
        //24.hu
        $('article a').each(function(){
            if ($(this).text().toLowerCase().match(regex)){
                $(this).closest('article').hide()
            }
        });
        //444.hu
        $('article h1 a').each(function(){
            if ($(this).text().toLowerCase().match(regex)){
                $(this).closest('article').hide()
            }
        });
        $('.item h1 a').each(function(){
            if ($(this).text().toLowerCase().match(regex)){
                $(this).closest('.item').hide()
            }
        });
        $('li h3 a').each(function(){
            if ($(this).text().toLowerCase().match(regex)){
                $(this).closest('li').hide()
            }
        });
        //hvg.hu
        $('article a').each(function(){
            if ($(this).text().toLowerCase().match(regex)){
                $(this).closest('article').hide()
            }
        });
    },2000);
})();