Small reordering.
This commit is contained in:
parent
6b88b14c7d
commit
54dbf09d86
@ -2428,46 +2428,46 @@
|
|||||||
filter: function() {
|
filter: function() {
|
||||||
var el, name, ta;
|
var el, name, ta;
|
||||||
el = this.nextSibling;
|
el = this.nextSibling;
|
||||||
|
if ((name = this.value) !== 'guide') {
|
||||||
|
ta = $.el('textarea', {
|
||||||
|
name: name,
|
||||||
|
className: 'field',
|
||||||
|
value: $.get(name, Conf[name])
|
||||||
|
});
|
||||||
|
$.on(ta, 'change', $.cb.value);
|
||||||
|
$.replace(el, ta);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (el) {
|
if (el) {
|
||||||
$.rm(el);
|
$.rm(el);
|
||||||
}
|
}
|
||||||
if ((name = this.value) === 'guide') {
|
return $.after(this, $.el('article', {
|
||||||
$.after(this, $.el('article', {
|
innerHTML: '<p>Use <a href=https://developer.mozilla.org/en/JavaScript/Guide/Regular_Expressions>regular expressions</a>, one per line.<br>\
|
||||||
innerHTML: '<p>Use <a href=https://developer.mozilla.org/en/JavaScript/Guide/Regular_Expressions>regular expressions</a>, one per line.<br>\
|
Lines starting with a <code>#</code> will be ignored.<br>\
|
||||||
Lines starting with a <code>#</code> will be ignored.<br>\
|
For example, <code>/weeaboo/i</code> will filter posts containing the string `<code>weeaboo</code>`, case-insensitive.</p>\
|
||||||
For example, <code>/weeaboo/i</code> will filter posts containing the string `<code>weeaboo</code>`, case-insensitive.</p>\
|
<ul>You can use these settings with each regular expression, separate them with semicolons:\
|
||||||
<ul>You can use these settings with each regular expression, separate them with semicolons:\
|
<li>\
|
||||||
<li>\
|
Per boards, separate them with commas. It is global if not specified.<br>\
|
||||||
Per boards, separate them with commas. It is global if not specified.<br>\
|
For example: <code>boards:a,jp;</code>.\
|
||||||
For example: <code>boards:a,jp;</code>.\
|
</li>\
|
||||||
</li>\
|
<li>\
|
||||||
<li>\
|
Filter OPs only along with their threads (`only`), replies only (`no`, this is default), or both (`yes`).<br>\
|
||||||
Filter OPs only along with their threads (`only`), replies only (`no`, this is default), or both (`yes`).<br>\
|
For example: <code>op:only;</code>, <code>op:no;</code> or <code>op:yes;</code>.\
|
||||||
For example: <code>op:only;</code>, <code>op:no;</code> or <code>op:yes;</code>.\
|
</li>\
|
||||||
</li>\
|
<li>\
|
||||||
<li>\
|
Overrule the `Show Stubs` setting if specified: create a stub (`yes`) or not (`no`).<br>\
|
||||||
Overrule the `Show Stubs` setting if specified: create a stub (`yes`) or not (`no`).<br>\
|
For example: <code>stub:yes;</code> or <code>stub:no;</code>\
|
||||||
For example: <code>stub:yes;</code> or <code>stub:no;</code>\
|
</li>\
|
||||||
</li>\
|
<li>\
|
||||||
<li>\
|
Highlight instead of hiding. You can specify a class name to use with a userstyle.<br>\
|
||||||
Highlight instead of hiding. You can specify a class name to use with a userstyle.<br>\
|
For example: <code>highlight;</code> or <code>highlight:wallpaper;</code>.\
|
||||||
For example: <code>highlight;</code> or <code>highlight:wallpaper;</code>.\
|
</li>\
|
||||||
</li>\
|
<li>\
|
||||||
<li>\
|
Highlighted OPs will have their threads put on top of board pages by default.<br>\
|
||||||
Highlighted OPs will have their threads put on top of board pages by default.<br>\
|
For example: <code>top:yes;</code> or <code>top:no;</code>.\
|
||||||
For example: <code>top:yes;</code> or <code>top:no;</code>.\
|
</li>\
|
||||||
</li>\
|
</ul>'
|
||||||
</ul>'
|
}));
|
||||||
}));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
ta = $.el('textarea', {
|
|
||||||
name: name,
|
|
||||||
className: 'field',
|
|
||||||
value: $.get(name, Conf[name])
|
|
||||||
});
|
|
||||||
$.on(ta, 'change', $.cb.value);
|
|
||||||
return $.after(this, ta);
|
|
||||||
},
|
},
|
||||||
time: function() {
|
time: function() {
|
||||||
Time.foo();
|
Time.foo();
|
||||||
|
|||||||
@ -1883,43 +1883,43 @@ Options =
|
|||||||
$.cb.value.call @
|
$.cb.value.call @
|
||||||
filter: ->
|
filter: ->
|
||||||
el = @nextSibling
|
el = @nextSibling
|
||||||
$.rm el if el
|
|
||||||
|
|
||||||
if (name = @value) is 'guide'
|
if (name = @value) isnt 'guide'
|
||||||
$.after @, $.el 'article',
|
ta = $.el 'textarea',
|
||||||
innerHTML: '<p>Use <a href=https://developer.mozilla.org/en/JavaScript/Guide/Regular_Expressions>regular expressions</a>, one per line.<br>
|
name: name
|
||||||
Lines starting with a <code>#</code> will be ignored.<br>
|
className: 'field'
|
||||||
For example, <code>/weeaboo/i</code> will filter posts containing the string `<code>weeaboo</code>`, case-insensitive.</p>
|
value: $.get name, Conf[name]
|
||||||
<ul>You can use these settings with each regular expression, separate them with semicolons:
|
$.on ta, 'change', $.cb.value
|
||||||
<li>
|
$.replace el, ta
|
||||||
Per boards, separate them with commas. It is global if not specified.<br>
|
|
||||||
For example: <code>boards:a,jp;</code>.
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
Filter OPs only along with their threads (`only`), replies only (`no`, this is default), or both (`yes`).<br>
|
|
||||||
For example: <code>op:only;</code>, <code>op:no;</code> or <code>op:yes;</code>.
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
Overrule the `Show Stubs` setting if specified: create a stub (`yes`) or not (`no`).<br>
|
|
||||||
For example: <code>stub:yes;</code> or <code>stub:no;</code>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
Highlight instead of hiding. You can specify a class name to use with a userstyle.<br>
|
|
||||||
For example: <code>highlight;</code> or <code>highlight:wallpaper;</code>.
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
Highlighted OPs will have their threads put on top of board pages by default.<br>
|
|
||||||
For example: <code>top:yes;</code> or <code>top:no;</code>.
|
|
||||||
</li>
|
|
||||||
</ul>'
|
|
||||||
return
|
return
|
||||||
|
|
||||||
ta = $.el 'textarea',
|
$.rm el if el
|
||||||
name: name
|
$.after @, $.el 'article',
|
||||||
className: 'field'
|
innerHTML: '<p>Use <a href=https://developer.mozilla.org/en/JavaScript/Guide/Regular_Expressions>regular expressions</a>, one per line.<br>
|
||||||
value: $.get name, Conf[name]
|
Lines starting with a <code>#</code> will be ignored.<br>
|
||||||
$.on ta, 'change', $.cb.value
|
For example, <code>/weeaboo/i</code> will filter posts containing the string `<code>weeaboo</code>`, case-insensitive.</p>
|
||||||
$.after @, ta
|
<ul>You can use these settings with each regular expression, separate them with semicolons:
|
||||||
|
<li>
|
||||||
|
Per boards, separate them with commas. It is global if not specified.<br>
|
||||||
|
For example: <code>boards:a,jp;</code>.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Filter OPs only along with their threads (`only`), replies only (`no`, this is default), or both (`yes`).<br>
|
||||||
|
For example: <code>op:only;</code>, <code>op:no;</code> or <code>op:yes;</code>.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Overrule the `Show Stubs` setting if specified: create a stub (`yes`) or not (`no`).<br>
|
||||||
|
For example: <code>stub:yes;</code> or <code>stub:no;</code>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Highlight instead of hiding. You can specify a class name to use with a userstyle.<br>
|
||||||
|
For example: <code>highlight;</code> or <code>highlight:wallpaper;</code>.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Highlighted OPs will have their threads put on top of board pages by default.<br>
|
||||||
|
For example: <code>top:yes;</code> or <code>top:no;</code>.
|
||||||
|
</li>
|
||||||
|
</ul>'
|
||||||
time: ->
|
time: ->
|
||||||
Time.foo()
|
Time.foo()
|
||||||
Time.date = new Date()
|
Time.date = new Date()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user