<commit_before>// TODO: find a cleaner way to load this
window.BetterDGG.settings.init();
window.BetterDGG.emoticons.init();
window.BetterDGG.stalk.init();
window.BetterDGG.theme.init();

// deleted messages
destiny.chat.gui.removeUserMessages = function(username) {
    this.lines.children('div[data-username="'+username.toLowerCase()+'"]').each(function() {
        $(this).find('.msg').css('color', '#555');
        $(this).find('.greentext').css('color', '#286100');
        $(this).find('div.chat-emote').css('opacity', 0.25);
        $(this).find('a.externallink').each(function() {
            var rawLink = "<span style=\"text-decoration: line-through;\">" + $(this).attr("href").replace(/</g,"&lt;").replace(/>/g,"&gt;") + "</span>";
            $(this).replaceWith(rawLink);
        });
    }); 
};

// >greentext
var BDGGGreenTextFormatter = {
    format: function(str, user) {
        var loc = str.indexOf("&gt;")
        if(loc === 0){
            str = '<span class="greentext">'+str+'</span>';
        }
        return str;
    }
}

destiny.chat.gui.formatters.push(BDGGGreenTextFormatter);

console.log("Better destiny.gg v0.4.2 loaded");<commit_msg>remove console log to resolve #29<commit_after>// TODO: find a cleaner way to load this
window.BetterDGG.settings.init();
window.BetterDGG.emoticons.init();
window.BetterDGG.stalk.init();
window.BetterDGG.theme.init();

// deleted messages
destiny.chat.gui.removeUserMessages = function(username) {
    this.lines.children('div[data-username="'+username.toLowerCase()+'"]').each(function() {
        $(this).find('.msg').css('color', '#555');
        $(this).find('.greentext').css('color', '#286100');
        $(this).find('div.chat-emote').css('opacity', 0.25);
        $(this).find('a.externallink').each(function() {
            var rawLink = "<span style=\"text-decoration: line-through;\">" + $(this).attr("href").replace(/</g,"&lt;").replace(/>/g,"&gt;") + "</span>";
            $(this).replaceWith(rawLink);
        });
    }); 
};

// >greentext
var BDGGGreenTextFormatter = {
    format: function(str, user) {
        var loc = str.indexOf("&gt;")
        if(loc === 0){
            str = '<span class="greentext">'+str+'</span>';
        }
        return str;
    }
}

destiny.chat.gui.formatters.push(BDGGGreenTextFormatter);

//console.log("Better destiny.gg v0.4.2 loaded");
{'fraction_non_alphanumeric': 0.22198641765704585, 'fraction_numerical': 0.014431239388794566, 'mean_word_length': 3.3648148148148147, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3672659', 'n_tokens_mistral': 801, 'n_tokens_neox': 765, 'n_words': 112}