Przyjazny Sadistic

Ukryj posty od niechcianych użytkowników sadistica.

目前为 2021-01-23 提交的版本,查看 最新版本

// ==UserScript==
// @name         Przyjazny Sadistic
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Ukryj posty od niechcianych użytkowników sadistica.
// @author       M.W
// @match        http://*/*
// @include        https://www.sadistic.pl/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var names = ['Lodzia', 'Halman'];
    var matches = document.getElementsByClassName('images');
    for (var i = 0; i <= matches.length; i++) {
      if (names.some(v => matches[i].innerHTML.includes(v))) {
          matches[i].parentNode.removeChild(matches[i]);
          i = i - 1;
      }
   }
})();