Merge branch 'v3'
Conflicts: builds/appchan-x.user.js builds/crx/script.js
This commit is contained in:
commit
0a39fff577
@ -188,8 +188,7 @@
|
|||||||
'Menu': {
|
'Menu': {
|
||||||
'Menu': [true, 'Add a drop-down menu to posts.'],
|
'Menu': [true, 'Add a drop-down menu to posts.'],
|
||||||
'Report Link': [true, 'Add a report link to the menu.'],
|
'Report Link': [true, 'Add a report link to the menu.'],
|
||||||
'Thread Hiding Link': [true, 'Add a link to hide entire threads.'],
|
'Post Hiding Link': [true, 'Add a link to hide posts.'],
|
||||||
'Reply Hiding Link': [true, 'Add a link to hide single replies.'],
|
|
||||||
'Delete Link': [true, 'Add post and image deletion links to the menu.'],
|
'Delete Link': [true, 'Add post and image deletion links to the menu.'],
|
||||||
'Archive Link': [true, 'Add an archive link to the menu.']
|
'Archive Link': [true, 'Add an archive link to the menu.']
|
||||||
},
|
},
|
||||||
@ -423,10 +422,10 @@
|
|||||||
'Next page': ['Shift+Right', 'Jump to the next page.'],
|
'Next page': ['Shift+Right', 'Jump to the next page.'],
|
||||||
'Previous page': ['Shift+Left', 'Jump to the previous page.'],
|
'Previous page': ['Shift+Left', 'Jump to the previous page.'],
|
||||||
'Search form': ['Ctrl+Alt+s', 'Focus the search field on the board index.'],
|
'Search form': ['Ctrl+Alt+s', 'Focus the search field on the board index.'],
|
||||||
'Paged mode': ['Ctrl+1', 'Sets the index mode to paged.'],
|
'Paged mode': ['Alt+1', 'Sets the index mode to paged.'],
|
||||||
'All pages mode': ['Ctrl+2', 'Sets the index mode to all threads.'],
|
'All pages mode': ['Alt+2', 'Sets the index mode to all threads.'],
|
||||||
'Catalog mode': ['Ctrl+3', 'Sets the index mode to catalog.'],
|
'Catalog mode': ['Alt+3', 'Sets the index mode to catalog.'],
|
||||||
'Cycle sort type': ['Ctrl+x', 'Cycle through index sort types.'],
|
'Cycle sort type': ['Alt+x', 'Cycle through index sort types.'],
|
||||||
'Next thread': ['Shift+Down', 'See next thread.'],
|
'Next thread': ['Shift+Down', 'See next thread.'],
|
||||||
'Previous thread': ['Shift+Up', 'See previous thread.'],
|
'Previous thread': ['Shift+Up', 'See previous thread.'],
|
||||||
'Expand thread': ['Ctrl+e', 'Expand thread.'],
|
'Expand thread': ['Ctrl+e', 'Expand thread.'],
|
||||||
@ -11696,12 +11695,10 @@
|
|||||||
} else {
|
} else {
|
||||||
this.dialog = sc = UI.dialog('updater', 'bottom: 0px; left: 0px;', "<div class=move><span id=update-status></span><span id=update-timer title='Update now'></span></div>");
|
this.dialog = sc = UI.dialog('updater', 'bottom: 0px; left: 0px;', "<div class=move><span id=update-status></span><span id=update-timer title='Update now'></span></div>");
|
||||||
$.addClass(doc, 'float');
|
$.addClass(doc, 'float');
|
||||||
$.ready((function(_this) {
|
$.ready(function() {
|
||||||
return function() {
|
$.addClass(doc, 'float');
|
||||||
$.addClass(doc, 'float');
|
return $.add(d.body, sc);
|
||||||
return $.add(d.body, sc);
|
});
|
||||||
};
|
|
||||||
})(this));
|
|
||||||
}
|
}
|
||||||
this.checkPostCount = 0;
|
this.checkPostCount = 0;
|
||||||
this.timer = $('#update-timer', sc);
|
this.timer = $('#update-timer', sc);
|
||||||
@ -12071,7 +12068,7 @@
|
|||||||
if (Conf['Bottom Scroll']) {
|
if (Conf['Bottom Scroll']) {
|
||||||
return window.scrollTo(0, d.body.clientHeight);
|
return window.scrollTo(0, d.body.clientHeight);
|
||||||
} else {
|
} else {
|
||||||
return Header.scrollTo(posts.nodes[0]);
|
return Header.scrollTo(posts[0].nodes.root);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -15702,6 +15699,9 @@
|
|||||||
Index.setIndexMode('catalog');
|
Index.setIndexMode('catalog');
|
||||||
break;
|
break;
|
||||||
case Conf['Cycle sort type']:
|
case Conf['Cycle sort type']:
|
||||||
|
if (g.VIEW !== 'index') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
Index.cycleSortType();
|
Index.cycleSortType();
|
||||||
break;
|
break;
|
||||||
case Conf['Next thread']:
|
case Conf['Next thread']:
|
||||||
|
|||||||
@ -163,8 +163,7 @@
|
|||||||
'Menu': {
|
'Menu': {
|
||||||
'Menu': [true, 'Add a drop-down menu to posts.'],
|
'Menu': [true, 'Add a drop-down menu to posts.'],
|
||||||
'Report Link': [true, 'Add a report link to the menu.'],
|
'Report Link': [true, 'Add a report link to the menu.'],
|
||||||
'Thread Hiding Link': [true, 'Add a link to hide entire threads.'],
|
'Post Hiding Link': [true, 'Add a link to hide posts.'],
|
||||||
'Reply Hiding Link': [true, 'Add a link to hide single replies.'],
|
|
||||||
'Delete Link': [true, 'Add post and image deletion links to the menu.'],
|
'Delete Link': [true, 'Add post and image deletion links to the menu.'],
|
||||||
'Download Link': [true, 'Add a download with original filename link to the menu. Chrome-only currently.'],
|
'Download Link': [true, 'Add a download with original filename link to the menu. Chrome-only currently.'],
|
||||||
'Archive Link': [true, 'Add an archive link to the menu.']
|
'Archive Link': [true, 'Add an archive link to the menu.']
|
||||||
@ -398,10 +397,10 @@
|
|||||||
'Next page': ['Shift+Right', 'Jump to the next page.'],
|
'Next page': ['Shift+Right', 'Jump to the next page.'],
|
||||||
'Previous page': ['Shift+Left', 'Jump to the previous page.'],
|
'Previous page': ['Shift+Left', 'Jump to the previous page.'],
|
||||||
'Search form': ['Ctrl+Alt+s', 'Focus the search field on the board index.'],
|
'Search form': ['Ctrl+Alt+s', 'Focus the search field on the board index.'],
|
||||||
'Paged mode': ['Ctrl+1', 'Sets the index mode to paged.'],
|
'Paged mode': ['Alt+1', 'Sets the index mode to paged.'],
|
||||||
'All pages mode': ['Ctrl+2', 'Sets the index mode to all threads.'],
|
'All pages mode': ['Alt+2', 'Sets the index mode to all threads.'],
|
||||||
'Catalog mode': ['Ctrl+3', 'Sets the index mode to catalog.'],
|
'Catalog mode': ['Alt+3', 'Sets the index mode to catalog.'],
|
||||||
'Cycle sort type': ['Ctrl+x', 'Cycle through index sort types.'],
|
'Cycle sort type': ['Alt+x', 'Cycle through index sort types.'],
|
||||||
'Next thread': ['Shift+Down', 'See next thread.'],
|
'Next thread': ['Shift+Down', 'See next thread.'],
|
||||||
'Previous thread': ['Shift+Up', 'See previous thread.'],
|
'Previous thread': ['Shift+Up', 'See previous thread.'],
|
||||||
'Expand thread': ['Ctrl+e', 'Expand thread.'],
|
'Expand thread': ['Ctrl+e', 'Expand thread.'],
|
||||||
@ -11710,12 +11709,10 @@
|
|||||||
} else {
|
} else {
|
||||||
this.dialog = sc = UI.dialog('updater', 'bottom: 0px; left: 0px;', "<div class=move><span id=update-status></span><span id=update-timer title='Update now'></span></div>");
|
this.dialog = sc = UI.dialog('updater', 'bottom: 0px; left: 0px;', "<div class=move><span id=update-status></span><span id=update-timer title='Update now'></span></div>");
|
||||||
$.addClass(doc, 'float');
|
$.addClass(doc, 'float');
|
||||||
$.ready((function(_this) {
|
$.ready(function() {
|
||||||
return function() {
|
$.addClass(doc, 'float');
|
||||||
$.addClass(doc, 'float');
|
return $.add(d.body, sc);
|
||||||
return $.add(d.body, sc);
|
});
|
||||||
};
|
|
||||||
})(this));
|
|
||||||
}
|
}
|
||||||
this.checkPostCount = 0;
|
this.checkPostCount = 0;
|
||||||
this.timer = $('#update-timer', sc);
|
this.timer = $('#update-timer', sc);
|
||||||
@ -12085,7 +12082,7 @@
|
|||||||
if (Conf['Bottom Scroll']) {
|
if (Conf['Bottom Scroll']) {
|
||||||
return window.scrollTo(0, d.body.clientHeight);
|
return window.scrollTo(0, d.body.clientHeight);
|
||||||
} else {
|
} else {
|
||||||
return Header.scrollTo(posts.nodes[0]);
|
return Header.scrollTo(posts[0].nodes.root);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -15721,6 +15718,9 @@
|
|||||||
Index.setIndexMode('catalog');
|
Index.setIndexMode('catalog');
|
||||||
break;
|
break;
|
||||||
case Conf['Cycle sort type']:
|
case Conf['Cycle sort type']:
|
||||||
|
if (g.VIEW !== 'index') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
Index.cycleSortType();
|
Index.cycleSortType();
|
||||||
break;
|
break;
|
||||||
case Conf['Next thread']:
|
case Conf['Next thread']:
|
||||||
|
|||||||
@ -177,13 +177,9 @@ Config =
|
|||||||
true
|
true
|
||||||
'Add a report link to the menu.'
|
'Add a report link to the menu.'
|
||||||
]
|
]
|
||||||
'Thread Hiding Link': [
|
'Post Hiding Link': [
|
||||||
true
|
true
|
||||||
'Add a link to hide entire threads.'
|
'Add a link to hide posts.'
|
||||||
]
|
|
||||||
'Reply Hiding Link': [
|
|
||||||
true
|
|
||||||
'Add a link to hide single replies.'
|
|
||||||
]
|
]
|
||||||
'Delete Link': [
|
'Delete Link': [
|
||||||
true
|
true
|
||||||
@ -1005,19 +1001,19 @@ box-shadow: inset 2px 2px 2px rgba(0,0,0,0.2);
|
|||||||
'Focus the search field on the board index.'
|
'Focus the search field on the board index.'
|
||||||
]
|
]
|
||||||
'Paged mode': [
|
'Paged mode': [
|
||||||
'Ctrl+1'
|
'Alt+1'
|
||||||
'Sets the index mode to paged.'
|
'Sets the index mode to paged.'
|
||||||
]
|
]
|
||||||
'All pages mode': [
|
'All pages mode': [
|
||||||
'Ctrl+2'
|
'Alt+2'
|
||||||
'Sets the index mode to all threads.'
|
'Sets the index mode to all threads.'
|
||||||
]
|
]
|
||||||
'Catalog mode': [
|
'Catalog mode': [
|
||||||
'Ctrl+3'
|
'Alt+3'
|
||||||
'Sets the index mode to catalog.'
|
'Sets the index mode to catalog.'
|
||||||
]
|
]
|
||||||
'Cycle sort type': [
|
'Cycle sort type': [
|
||||||
'Ctrl+x'
|
'Alt+x'
|
||||||
'Cycle through index sort types.'
|
'Cycle through index sort types.'
|
||||||
]
|
]
|
||||||
# Thread Navigation
|
# Thread Navigation
|
||||||
|
|||||||
@ -114,6 +114,7 @@ Keybinds =
|
|||||||
return unless g.VIEW is 'index' and Conf['Index Mode'] isnt 'catalog'
|
return unless g.VIEW is 'index' and Conf['Index Mode'] isnt 'catalog'
|
||||||
Index.setIndexMode 'catalog'
|
Index.setIndexMode 'catalog'
|
||||||
when Conf['Cycle sort type']
|
when Conf['Cycle sort type']
|
||||||
|
return unless g.VIEW is 'index'
|
||||||
Index.cycleSortType()
|
Index.cycleSortType()
|
||||||
# Thread Navigation
|
# Thread Navigation
|
||||||
when Conf['Next thread']
|
when Conf['Next thread']
|
||||||
|
|||||||
@ -8,11 +8,11 @@ ThreadUpdater =
|
|||||||
id: 'updater'
|
id: 'updater'
|
||||||
$.ready ->
|
$.ready ->
|
||||||
Header.addShortcut sc
|
Header.addShortcut sc
|
||||||
else
|
else
|
||||||
@dialog = sc = UI.dialog 'updater', 'bottom: 0px; left: 0px;',
|
@dialog = sc = UI.dialog 'updater', 'bottom: 0px; left: 0px;',
|
||||||
"<div class=move><span id=update-status></span><span id=update-timer title='Update now'></span></div>"
|
"<div class=move><span id=update-status></span><span id=update-timer title='Update now'></span></div>"
|
||||||
$.addClass doc, 'float'
|
$.addClass doc, 'float'
|
||||||
$.ready =>
|
$.ready ->
|
||||||
$.addClass doc, 'float'
|
$.addClass doc, 'float'
|
||||||
$.add d.body, sc
|
$.add d.body, sc
|
||||||
|
|
||||||
@ -57,12 +57,12 @@ ThreadUpdater =
|
|||||||
Thread.callbacks.push
|
Thread.callbacks.push
|
||||||
name: 'Thread Updater'
|
name: 'Thread Updater'
|
||||||
cb: @node
|
cb: @node
|
||||||
|
|
||||||
disconnect: ->
|
disconnect: ->
|
||||||
return if g.VIEW isnt 'thread' or !Conf['Thread Updater']
|
return if g.VIEW isnt 'thread' or !Conf['Thread Updater']
|
||||||
$.off @timer, 'click', @update
|
$.off @timer, 'click', @update
|
||||||
$.off @status, 'click', @update
|
$.off @status, 'click', @update
|
||||||
|
|
||||||
clearTimeout @timeoutID if @timeoutID
|
clearTimeout @timeoutID if @timeoutID
|
||||||
|
|
||||||
for entry in @entry.subEntries
|
for entry in @entry.subEntries
|
||||||
@ -183,7 +183,7 @@ ThreadUpdater =
|
|||||||
|
|
||||||
setInterval: ->
|
setInterval: ->
|
||||||
i = ThreadUpdater.interval + 1
|
i = ThreadUpdater.interval + 1
|
||||||
|
|
||||||
if Conf['Optional Increase']
|
if Conf['Optional Increase']
|
||||||
# Lower the max refresh rate limit on visible tabs.
|
# Lower the max refresh rate limit on visible tabs.
|
||||||
cur = ThreadUpdater.outdateCount or 1
|
cur = ThreadUpdater.outdateCount or 1
|
||||||
@ -348,4 +348,4 @@ ThreadUpdater =
|
|||||||
if Conf['Bottom Scroll']
|
if Conf['Bottom Scroll']
|
||||||
window.scrollTo 0, d.body.clientHeight
|
window.scrollTo 0, d.body.clientHeight
|
||||||
else
|
else
|
||||||
Header.scrollTo posts.nodes[0]
|
Header.scrollTo posts[0].nodes.root
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user