1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-28 15:27:43 +00:00

Blocking a couple link domains by default.

This commit is contained in:
SirStendec 2015-08-09 01:29:06 -04:00
parent 771e290197
commit 315a91ab5c
5 changed files with 9 additions and 14 deletions

View file

@ -4589,7 +4589,7 @@ FFZ.get_capitalization = function(name, callback) {
// ---------------------
FFZ.prototype._remove_banned = function(tokens) {
var banned_words = this.settings.banned_words;
var banned_words = _.union(['j.mp', 'bit.ly'], this.settings.banned_words);
if ( ! banned_words || ! banned_words.length )
return tokens;
@ -4612,10 +4612,6 @@ FFZ.prototype._remove_banned = function(tokens) {
isLong: false,
censoredHref: token.href.replace(regex, "$1***")
});
/*{
mentionedUser: '</span><a class="deleted-link" title="' + utils.quote_attr(token.href.replace(regex, "$1***")) + '" data-url="' + utils.quote_attr(token.href) + '" href="#">&lt;banned link&gt;</a><span class="mentioning">',
own: true
});*/
else
new_tokens.push(token);
@ -7574,7 +7570,7 @@ FFZ.get = function() { return FFZ.instance; }
// Version
var VER = FFZ.version_info = {
major: 3, minor: 5, revision: 12,
major: 3, minor: 5, revision: 13,
toString: function() {
return [VER.major, VER.minor, VER.revision].join(".") + (VER.extra || "");
}