diff --git a/4chan_x.user.js b/4chan_x.user.js
index e1c68b9a2..424e74092 100644
--- a/4chan_x.user.js
+++ b/4chan_x.user.js
@@ -119,11 +119,12 @@
},
filter: {
name: '',
- trip: '',
- mail: '',
- sub: '',
- com: '',
- file: '',
+ tripcode: '',
+ email: '',
+ subject: '',
+ comment: '',
+ filename: '',
+ filesize: '',
md5: ''
},
flavors: ['http://iqdb.org/?url=', 'http://google.com/searchbyimage?image_url=', '#http://tineye.com/search?url=', '#http://saucenao.com/search.php?db=999&url=', '#http://3d.iqdb.org/?url=', '#http://imgur.com/upload?url='].join('\n'),
@@ -560,29 +561,35 @@
name = root.className === 'op' ? $('.postername', root) : $('.commentpostername', root);
return filter.test('name', name.textContent);
},
- trip: function(root) {
+ tripcode: function(root) {
var trip;
if (trip = $('.postertrip', root)) {
- return filter.test('trip', trip.textContent);
+ return filter.test('tripcode', trip.textContent);
}
},
- mail: function(root) {
+ email: function(root) {
var mail;
- if (mail = $('.linkmail', root)) return filter.test('mail', mail.href);
+ if (mail = $('.linkmail', root)) return filter.test('email', mail.href);
},
- sub: function(root) {
+ subject: function(root) {
var sub;
sub = root.className === 'op' ? $('.filetitle', root) : $('.replytitle', root);
- return filter.test('sub', sub.textContent);
+ return filter.test('subject', sub.textContent);
},
- com: function(root) {
- return filter.test('com', ($.el('a', {
+ comment: function(root) {
+ return filter.test('comment', ($.el('a', {
innerHTML: $('blockquote', root).innerHTML.replace(/
/g, '\n')
})).textContent);
},
- file: function(root) {
+ filename: function(root) {
var file;
- if (file = $('.filesize span', root)) return filter.test('file', file.title);
+ if (file = $('.filesize span', root)) {
+ return filter.test('filename', file.title);
+ }
+ },
+ filesize: function(root) {
+ var img;
+ if (img = $('img[md5]', root)) return filter.test('filesize', img.alt);
},
md5: function(root) {
var img;
@@ -1247,11 +1254,12 @@
Use regular expressions, one per line.
\
For example, /weeaboo/i will filter posts containing `weeaboo` case-insensitive.\
Name:
Tripcode:
E-mail:
Subject:
Comment:
Filename:
Tripcode:
E-mail:
Subject:
Comment:
Filename:
Filename:
Image MD5: