diff --git a/4chan_x.user.js b/4chan_x.user.js
index 1a78e95e4..b5c7ed548 100644
--- a/4chan_x.user.js
+++ b/4chan_x.user.js
@@ -528,11 +528,28 @@
};
filter = {
init: function() {
- return HTMLBlockquoteElement.prototype.toString = function() {
+ var filter, filters, key, m, regx, _i, _len;
+ HTMLBlockquoteElement.prototype.toString = function() {
return ($.el('span', {
innerHTML: this.innerHTML.replace(/
/g, '\n')
})).textContent;
};
+ filters = {};
+ for (key in config.filter) {
+ filters[key] = [];
+ if (!(m = conf[key].match(/(.+)/g))) {
+ continue;
+ }
+ for (_i = 0, _len = m.length; _i < _len; _i++) {
+ filter = m[_i];
+ try {
+ if ((regx = eval(filter)).constructor === RegExp) {
+ filters[key].push(regx);
+ }
+ } catch (_e) {}
+ }
+ }
+ return log(filters);
}
};
expandComment = {
@@ -1164,8 +1181,8 @@
\
\
/weeaboo/i will filter posts containing `weeaboo` case-insensitive.\
Name:
Tripcode:
E-mail:
/weeaboo/i will filter posts containing `weeaboo` case-insensitive.
Name:
Tripcode:
E-mail: