NOMarmelos

Sem Filtros para chans

目前為 2014-10-24 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        NOMarmelos
// @namespace   SemMarmelos
// @description Sem Filtros para chans
// @include     http://55ch.org/b/*
// @include     http://77chan.org/b/*
// @include     http://1500chan.org/b/*
// @version     2.1.13
// @homepage    https://greasyfork.org/scripts/5986-nomarmelos/code/NOMarmelos.user.js
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js


// ==/UserScript==
     
    var words = ['>mcq', '4chan', 'anime', 'ateu', 'ateia', 'ateísmo', 'ateísta', 'BRchan', 'cristã', 'cristão', 'cristianismo', 'Dilma', 'ENEM', 'filtro', 'filtros', 'fio', 'foda', 'foda-se', 'fode', 'hétero', 'holocausto', 'Lula', 'mara', 'melhor horário', 'minha namorada', 'minha pitanga', 'mulher', 'mulheres', 'namorada', 'negra', 'negro', 'negros', 'Olavo', 'Olavo de Carvalho', 'Orkut', 'perguntem qualquer coisa', 'preto', 'punk', 'rateiem', 'Sakura', 'sentimento', 'Serra', 'sexo', 'sexo anal', 'sexo oral', 'skinhead', 'suicidio', 'trap', 'travesti', 'underage', 'VT', 'peka.cc', 'Hello from Russia', 'T0OOY', 'menes', 'https://www.facebook.com', 'https://www.facebook.com/', 'http://www.facebook.com/', 'http://www.facebook.com', 'www.facebook.com', 'www.facebook.com/', 'facebook.com', 'facebook.com/', 'https://fbcdn-sphotos-a-a.akamaihd.net/', 'https://scontent.xx.fbcdn.net/', 'https://twitter.com/', 'https://twitter.com', 'http://twitter.com/', 'http://twitter.com', 'www.twitter.com/', 'www.twitter.com', 'twitter.com', 'twitter.com/', 'omegle', 'tinychat', 'pequenochat', 'cfml.us', 'akela', 'dogola', 'd-o-g-o-l-a', 'dogol-a', 'dogo-la', 'dog-ola', 'do-gola', 'd-ogola', 'd-ogol-a', 'd-ogo-la', 'd-og-ola', 'd-o-gola', 'd0gola', 'dog0la', 'd0g0la', 'imperador cão', 'fakul', 'comidademacaco+', 'comidademacaco<i>+</i>', '6Vb5cND6', 'basinga', 'bazinga', 'bazim', 'basin', 'zimbabwe', 'bozzano', 'bisnaga', 'birulei', 'basimgan', 'basengan', 'basengam', 'bosneta', 'homemdebem', 'homensdebem', 'rainha do b', 'rainha do /b', 'rainha do chan', 'rei do b', 'rei do /b', 'rei do chan', 'duplos decidem', 'triplos decidem', 'chequem meus duplos', 'chequem meus triplos', 'flarechan', 'wtchan', 'ajudandoanoespordinheiro', 'epic-rewards', 'epicfreeprizes', '55chan.net', '7xp24woty3lxiqrk', 'd\'us', 'virjões', 'virjão', '0816adadf99018d0544f1d036fe45fa1', 'existe algo mais retardado que viajar?', 'vai chora', 'vai chora?', 'Vai chora', 'Vai chora?', 'sfchan.org', 'vem brincar comigo, onii-chan', 'pthc', 'r@ygold', 'hussyfan', '2ch.hk', 'peka.cc', 'peka', 'miltin', 'miltim', 'http://plug.dj/55channel/', 'plug.dj/55channel/', 'dj/55chann', '8chan.co/magali', 'D3751DC1BA', 'chan.tk', '8chan.co', 'mene', 'dilma', 'aécio', 'pt', 'psdb', 'capitalismo', 'socialismo', 'socialistas', 'capitalistas', 'captalistas', 'comunistas', 'comuna', 'esquerdista'];
     
    $(document).ready(function() {
        hook_form();
        display_enabled();
    });
     
    // Exibe mensagem informando que filtro está habilitado abaixo do nome da board
    function display_enabled()
    {
        var css = {
            'display': 'block',
            'font-size': '12px',
        }
        var msg = $('<span>Burlador de filtros habilitado.<br/>Desenvolvido por: anão.</span>')
        $('.logo').append(msg);
        msg.css(css);
    }
     
    // Hook no submit do form
    function hook_form()
    {
        var form = $('#postform');
     
        form.submit(function(e) {
            replace_words();
        });
    }
     
    // Substituir palavras
    function replace_words()
    {
        var new_word,
            length,
            re,
            textarea = $('textarea[name="message"]'),
            text = textarea.val();
     
        $.each(words, function(index, value) {
            re = new RegExp(value, 'gi');
            matches = text.match(re, new_word);
            if (matches)
            {
                $.each(matches, function(index, v) {
                    length = v.length;
                    new_word = v.substring(0, length-1) + '\u200b' + v.substring(length-1, length);
                    text = text.replace(v, new_word);
                });
            }
        });
        textarea.val(text);
    }