diff --git a/builds/4chan-X.js b/builds/4chan-X.js index dd3407300..a5512f278 100644 --- a/builds/4chan-X.js +++ b/builds/4chan-X.js @@ -189,6 +189,7 @@ 'Open front page': ['Shift+0', 'Open page 0 in a new tab.'], 'Next page': ['Right', 'Jump to the next page.'], 'Previous page': ['Left', 'Jump to the previous page.'], + 'Open catalog': ['Shift+c', 'Open the catalog of the current board'], 'Next thread': ['Down', 'See next thread.'], 'Previous thread': ['Up', 'See previous thread.'], 'Expand thread': ['Ctrl+e', 'Expand thread.'], @@ -5069,6 +5070,13 @@ window.location = form.action; } break; + case Conf['Open catalog']: + if (Conf['External Catalog']) { + window.location = CatalogLinks.external(g.BOARD.ID); + } else { + window.location = "/" + g.BOARD + "/catalog"; + } + break; case Conf['Next thread']: if (g.VIEW === 'thread') { return; diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index feff444d1..584227316 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -190,6 +190,7 @@ 'Open front page': ['Shift+0', 'Open page 0 in a new tab.'], 'Next page': ['Right', 'Jump to the next page.'], 'Previous page': ['Left', 'Jump to the previous page.'], + 'Open catalog': ['Shift+c', 'Open the catalog of the current board'], 'Next thread': ['Down', 'See next thread.'], 'Previous thread': ['Up', 'See previous thread.'], 'Expand thread': ['Ctrl+e', 'Expand thread.'], @@ -5060,6 +5061,13 @@ window.location = form.action; } break; + case Conf['Open catalog']: + if (Conf['External Catalog']) { + window.location = CatalogLinks.external(g.BOARD.ID); + } else { + window.location = "/" + g.BOARD + "/catalog"; + } + break; case Conf['Next thread']: if (g.VIEW === 'thread') { return; diff --git a/builds/crx/script.js b/builds/crx/script.js index f60c8053f..e200d245a 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -146,6 +146,7 @@ 'Open front page': ['Shift+0', 'Open page 0 in a new tab.'], 'Next page': ['Right', 'Jump to the next page.'], 'Previous page': ['Left', 'Jump to the previous page.'], + 'Open catalog': ['Shift+c', 'Open the catalog of the current board'], 'Next thread': ['Down', 'See next thread.'], 'Previous thread': ['Up', 'See previous thread.'], 'Expand thread': ['Ctrl+e', 'Expand thread.'], @@ -4983,6 +4984,13 @@ window.location = form.action; } break; + case Conf['Open catalog']: + if (Conf['External Catalog']) { + window.location = CatalogLinks.external(g.BOARD.ID); + } else { + window.location = "/" + g.BOARD + "/catalog"; + } + break; case Conf['Next thread']: if (g.VIEW === 'thread') { return; diff --git a/src/config.coffee b/src/config.coffee index ddd7a5e74..c1540d666 100644 --- a/src/config.coffee +++ b/src/config.coffee @@ -489,6 +489,10 @@ http://iqdb.org/?url=%TURL 'Left' 'Jump to the previous page.' ] + 'Open catalog': [ + 'Shift+c' + 'Open the catalog of the current board' + ] # Thread Navigation 'Next thread': [ 'Down' diff --git a/src/features/misc/keybinds.coffee b/src/features/misc/keybinds.coffee index 633c455db..9c11afac1 100644 --- a/src/features/misc/keybinds.coffee +++ b/src/features/misc/keybinds.coffee @@ -77,6 +77,11 @@ Keybinds = when Conf['Previous page'] if form = $ '.prev form' window.location = form.action + when Conf['Open catalog'] + if Conf['External Catalog'] + window.location = CatalogLinks.external(g.BOARD.ID) + else + window.location = "/#{g.BOARD}/catalog" # Thread Navigation when Conf['Next thread'] return if g.VIEW is 'thread'