No shitposting

try to take over the world!

目前為 2016-11-09 提交的版本,檢視 最新版本

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// ==UserScript==
// @name         No shitposting
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://www.taringa.net/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    // Agreguen un nombre abajo entre comillas y separado por comas de lo que quieren borrar
    var nop = ["trump", "cristina", "cfk", "macri", "mugricio", "hilary", "hillary", "clinton", "hilari", "comandante", "maga",
              "presidente", "presidenta"];
    
    $(".list-l__title").each(function(i){
        for(var xd = 0; xd !== nop.length; ) {
            if ( $(this).text().toLowerCase().indexOf(nop[xd]) !== -1) {
                $(this).closest('li').remove();
                break;
            }
            xd++;
        }

    });
})();