diff --git a/4chan_x.user.js b/4chan_x.user.js index 02b2a40f8..1a78e95e4 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -116,6 +116,15 @@ 'Indicate OP quote': [true, 'Add \'(OP)\' to OP quotes'] } }, + filter: { + name: '', + trip: '', + mail: '', + sub: '', + com: '', + file: '', + md5: '' + }, flavors: ['http://iqdb.org/?url=', 'http://google.com/searchbyimage?image_url=', '#http://regex.info/exif.cgi?url=', '#http://tineye.com/search?url=', '#http://saucenao.com/search.php?db=999&url=', '#http://imgur.com/upload?url='].join('\n'), time: '%m/%d/%y(%a)%H:%M', backlink: '>>%id', @@ -1127,7 +1136,7 @@ return $.replace(home, a); }, dialog: function() { - var arr, back, checked, description, dialog, flavors, hiddenNum, hiddenThreads, input, key, li, obj, overlay, time, ul, _i, _len, _ref, _ref2; + var arr, back, checked, description, dialog, hiddenNum, hiddenThreads, input, key, li, obj, overlay, ta, time, ul, _i, _j, _len, _len2, _ref, _ref2, _ref3; dialog = $.el('div', { id: 'options', innerHTML: '\ @@ -1141,6 +1150,7 @@ \
\ \ + | \ | \ | \ | \ @@ -1152,6 +1162,18 @@
\ \ \ + \ +
\ + Filters are case-insensitive. One filter per line.
\ + You can use regular expressions, without opening and ending `/`, and without flags.\ +

Name:

\ +

Tripcode:

\ +

E-mail:

\ +

Subject:

\ +

Comment:

\ +

Filename:

\ +

Image MD5:

\ +
\ \
\
+ | | | | @@ -824,6 +833,18 @@ options =
+ +
+ Filters are case-insensitive. One filter per line.
+ You can use regular expressions, without opening and ending `/`, and without flags. +

Name:

+

Tripcode:

+

E-mail:

+

Subject:

+

Comment:

+

Filename:

+

Image MD5:

+
    @@ -891,9 +912,10 @@ options = $.bind $('button', li), 'click', options.clearHidden $.add $('ul:nth-child(2)', dialog), li - #sauce - (flavors = $ '#flavors', dialog).textContent = conf['flavors'] - $.bind flavors, 'change', $.cb.value + #filter & sauce + for ta in $$ 'textarea', dialog + ta.textContent = conf[ta.name] + $.bind ta, 'change', $.cb.value #rice (back = $ '[name=backlink]', dialog).value = conf['backlink'] @@ -2389,6 +2411,8 @@ Main = } #content textarea { margin: 0; + min-height: 100px; + resize: vertical; width: 100%; }