check em
This commit is contained in:
parent
5ab24699c6
commit
a771d30b1c
@ -21,6 +21,7 @@ config =
|
|||||||
'Quick Report': [true, 'Add quick report buttons']
|
'Quick Report': [true, 'Add quick report buttons']
|
||||||
'Reply Hiding': [true, 'Hide single replies']
|
'Reply Hiding': [true, 'Hide single replies']
|
||||||
'Reply Navigation': [true, 'Navigate to the beginning / end of a thread']
|
'Reply Navigation': [true, 'Navigate to the beginning / end of a thread']
|
||||||
|
'Restore IDs': [true, 'Check \'em']
|
||||||
'Sauce': [true, 'Add sauce to images']
|
'Sauce': [true, 'Add sauce to images']
|
||||||
'Show Stubs': [true, 'Of hidden threads / replies']
|
'Show Stubs': [true, 'Of hidden threads / replies']
|
||||||
'Thread Expansion': [true, 'View all replies']
|
'Thread Expansion': [true, 'View all replies']
|
||||||
@ -1104,6 +1105,12 @@ scroll = ->
|
|||||||
updateTitle()
|
updateTitle()
|
||||||
|
|
||||||
#major features
|
#major features
|
||||||
|
if getConfig 'Restore IDs'
|
||||||
|
g.callbacks.push (root) ->
|
||||||
|
quotes = $$ 'a.quotejs:not(:first-child)', root
|
||||||
|
for quote in quotes
|
||||||
|
quote.textContent = quote.parentNode.id.match(/\d+$/)[0]
|
||||||
|
|
||||||
if getConfig 'Image Expansion'
|
if getConfig 'Image Expansion'
|
||||||
delform = $ 'form[name=delform]'
|
delform = $ 'form[name=delform]'
|
||||||
expand = n 'div',
|
expand = n 'div',
|
||||||
|
|||||||
13
4chan_x.js
13
4chan_x.js
@ -21,6 +21,7 @@
|
|||||||
'Quick Report': [true, 'Add quick report buttons'],
|
'Quick Report': [true, 'Add quick report buttons'],
|
||||||
'Reply Hiding': [true, 'Hide single replies'],
|
'Reply Hiding': [true, 'Hide single replies'],
|
||||||
'Reply Navigation': [true, 'Navigate to the beginning / end of a thread'],
|
'Reply Navigation': [true, 'Navigate to the beginning / end of a thread'],
|
||||||
|
'Restore IDs': [true, 'Check \'em'],
|
||||||
'Sauce': [true, 'Add sauce to images'],
|
'Sauce': [true, 'Add sauce to images'],
|
||||||
'Show Stubs': [true, 'Of hidden threads / replies'],
|
'Show Stubs': [true, 'Of hidden threads / replies'],
|
||||||
'Thread Expansion': [true, 'View all replies'],
|
'Thread Expansion': [true, 'View all replies'],
|
||||||
@ -1387,6 +1388,18 @@
|
|||||||
}
|
}
|
||||||
return updateTitle();
|
return updateTitle();
|
||||||
};
|
};
|
||||||
|
if (getConfig('Restore IDs')) {
|
||||||
|
g.callbacks.push(function(root) {
|
||||||
|
var quote, quotes, _i, _len, _results;
|
||||||
|
quotes = $$('a.quotejs:not(:first-child)', root);
|
||||||
|
_results = [];
|
||||||
|
for (_i = 0, _len = quotes.length; _i < _len; _i++) {
|
||||||
|
quote = quotes[_i];
|
||||||
|
_results.push(quote.textContent = quote.parentNode.id.match(/\d+$/)[0]);
|
||||||
|
}
|
||||||
|
return _results;
|
||||||
|
});
|
||||||
|
}
|
||||||
if (getConfig('Image Expansion')) {
|
if (getConfig('Image Expansion')) {
|
||||||
delform = $('form[name=delform]');
|
delform = $('form[name=delform]');
|
||||||
expand = n('div', {
|
expand = n('div', {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user