// Use this userscript with Tampermonkey extension // ==UserScript== // @name Remove PLUS articles // @namespace http://tampermonkey.net/ // @version 0.1 // @description Hides Iltalehti PLUS articles from the main news feed // @author Topi Vienonen // @match https://www.iltalehti.fi/ // @icon https://www.google.com/s2/favicons?domain=iltalehti.fi // @grant none // ==/UserScript== (function() { 'use strict'; // Your code here... document.querySelectorAll('.il-plus-svg-logo').forEach(node => { let parent = node.parentNode; while (parent && parent.tagName !== 'A') { parent = parent.parentNode; } if (parent && parent.tagName === 'A') { parent.remove(); } }) })();