stats
This commit is contained in:
parent
31be2668a6
commit
43b4030adc
@ -158,15 +158,20 @@ filterAll: ->
|
|||||||
if value
|
if value
|
||||||
regex[input.name]: new RegExp(value, 'i')
|
regex[input.name]: new RegExp(value, 'i')
|
||||||
|
|
||||||
|
hideCount: 0
|
||||||
tables: $$('form[name="delform"] table')
|
tables: $$('form[name="delform"] table')
|
||||||
tables.pop()
|
tables.pop()
|
||||||
tables.pop()
|
tables.pop()
|
||||||
for table in tables
|
for table in tables
|
||||||
if filterSingle(table, regex)
|
if filterSingle(table, regex)
|
||||||
table.className: 'hide'
|
table.className: 'hide'
|
||||||
|
hideCount++
|
||||||
else
|
else
|
||||||
table.className: ''
|
table.className: ''
|
||||||
|
|
||||||
|
images: $$('img[md5]')
|
||||||
|
filter.firstChild.textContent: "Images: ${images.length} Replies: ${tables.length} / $hideCount"
|
||||||
|
|
||||||
|
|
||||||
keydown: (e) ->
|
keydown: (e) ->
|
||||||
if e.keyCode is 13 #enter
|
if e.keyCode is 13 #enter
|
||||||
@ -195,7 +200,6 @@ filter.className: GM_getValue('className', 'reply')
|
|||||||
position(filter)
|
position(filter)
|
||||||
|
|
||||||
bar: tag('div')
|
bar: tag('div')
|
||||||
bar.textContent: '4chon foltor'
|
|
||||||
bar.className: 'move top'
|
bar.className: 'move top'
|
||||||
bar.addEventListener('mousedown', mousedown, true)
|
bar.addEventListener('mousedown', mousedown, true)
|
||||||
filter.appendChild(bar)
|
filter.appendChild(bar)
|
||||||
|
|||||||
@ -178,7 +178,7 @@ display: none; \
|
|||||||
}}
|
}}
|
||||||
};
|
};
|
||||||
filterAll = function filterAll() {
|
filterAll = function filterAll() {
|
||||||
var _a, _b, _c, _d, _e, _f, _g, input, inputs, regex, table, tables, value;
|
var _a, _b, _c, _d, _e, _f, hideCount, images, input, inputs, regex, table, tables, value;
|
||||||
regex = {};
|
regex = {};
|
||||||
inputs = $$('input', filter);
|
inputs = $$('input', filter);
|
||||||
_b = inputs;
|
_b = inputs;
|
||||||
@ -188,15 +188,23 @@ display: none; \
|
|||||||
GM_setValue(input.name, value);
|
GM_setValue(input.name, value);
|
||||||
value ? (regex[input.name] = new RegExp(value, 'i')) : null;
|
value ? (regex[input.name] = new RegExp(value, 'i')) : null;
|
||||||
}
|
}
|
||||||
|
hideCount = 0;
|
||||||
tables = $$('form[name="delform"] table');
|
tables = $$('form[name="delform"] table');
|
||||||
tables.pop();
|
tables.pop();
|
||||||
tables.pop();
|
tables.pop();
|
||||||
_d = []; _f = tables;
|
_e = tables;
|
||||||
for (_e = 0, _g = _f.length; _e < _g; _e++) {
|
for (_d = 0, _f = _e.length; _d < _f; _d++) {
|
||||||
table = _f[_e];
|
table = _e[_d];
|
||||||
_d.push(filterSingle(table, regex) ? (table.className = 'hide') : (table.className = ''));
|
if (filterSingle(table, regex)) {
|
||||||
|
table.className = 'hide';
|
||||||
|
hideCount++;
|
||||||
|
} else {
|
||||||
|
table.className = '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return _d;
|
images = $$('img[md5]');
|
||||||
|
filter.firstChild.textContent = ("Images: " + (images.length) + " Replies: " + (tables.length) + " / " + hideCount);
|
||||||
|
return filter.firstChild.textContent;
|
||||||
};
|
};
|
||||||
keydown = function keydown(e) {
|
keydown = function keydown(e) {
|
||||||
if (e.keyCode === 13) {
|
if (e.keyCode === 13) {
|
||||||
@ -225,7 +233,6 @@ display: none; \
|
|||||||
filter.className = GM_getValue('className', 'reply');
|
filter.className = GM_getValue('className', 'reply');
|
||||||
position(filter);
|
position(filter);
|
||||||
bar = tag('div');
|
bar = tag('div');
|
||||||
bar.textContent = '4chon foltor';
|
|
||||||
bar.className = 'move top';
|
bar.className = 'move top';
|
||||||
bar.addEventListener('mousedown', mousedown, true);
|
bar.addEventListener('mousedown', mousedown, true);
|
||||||
filter.appendChild(bar);
|
filter.appendChild(bar);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user