4chan X -> meta.name
This commit is contained in:
parent
96dfee999c
commit
9d7da5817e
@ -5,9 +5,9 @@ Config =
|
||||
true
|
||||
'Replace the original board index with one supporting searching, sorting, infinite scrolling, and a catalog mode.'
|
||||
]
|
||||
'Use 4chan X Catalog': [
|
||||
'Use <%= meta.name %> Catalog': [
|
||||
true
|
||||
'Link to 4chan X\'s catalog instead of the native 4chan one.'
|
||||
'Link to <%= meta.name %>\'s catalog instead of the native 4chan one.'
|
||||
1
|
||||
]
|
||||
'External Catalog': [
|
||||
@ -82,7 +82,7 @@ Config =
|
||||
]
|
||||
'Show Updated Notifications': [
|
||||
true
|
||||
'Show notifications when 4chan X is successfully updated.'
|
||||
'Show notifications when <%= meta.name %> is successfully updated.'
|
||||
]
|
||||
'Color User IDs': [
|
||||
false
|
||||
@ -98,7 +98,7 @@ Config =
|
||||
]
|
||||
'Show Support Message': [
|
||||
true
|
||||
'Warn if your browser or configuration is unsupported and may cause 4chan X to not operate correctly.'
|
||||
'Warn if your browser or configuration is unsupported and may cause <%= meta.name %> to not operate correctly.'
|
||||
]
|
||||
'Normalize URL': [
|
||||
true
|
||||
@ -180,7 +180,7 @@ Config =
|
||||
]
|
||||
'Image Hover in Catalog': [
|
||||
false
|
||||
'Show full image / video on mouseover in 4chan X catalog.'
|
||||
'Show full image / video on mouseover in <%= meta.name %> catalog.'
|
||||
]
|
||||
'Gallery': [
|
||||
true
|
||||
|
||||
@ -73,7 +73,7 @@ Index =
|
||||
$.on @searchInput, 'input', @onSearchInput
|
||||
$.on $('#index-search-clear', @navLinks), 'click', @clearSearch
|
||||
$.on $('#hidden-toggle a', @navLinks), 'click', @cb.toggleHiddenThreads
|
||||
$.on $('.returnlink a', @navLinks), 'click', @cb.frontPage unless Conf['Use 4chan X Catalog']
|
||||
$.on $('.returnlink a', @navLinks), 'click', @cb.frontPage unless Conf['Use <%= meta.name %> Catalog']
|
||||
$.on @selectMode, 'change', @cb.mode
|
||||
for select in [@selectMode, @selectSort, @selectSize]
|
||||
select.value = Conf[select.name]
|
||||
|
||||
@ -4,7 +4,7 @@ Settings =
|
||||
link = $.el 'a',
|
||||
className: 'settings-link fa fa-wrench'
|
||||
textContent: 'Settings'
|
||||
title: '4chan X Settings'
|
||||
title: '<%= meta.name %> Settings'
|
||||
href: 'javascript:;'
|
||||
$.on link, 'click', Settings.open
|
||||
|
||||
|
||||
@ -28,6 +28,6 @@
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
Note: If you're using the native catalog rather than 4chan X's catalog, 4chan X's filters do not apply there.<br>
|
||||
Note: If you're using the native catalog rather than <%= meta.name %>'s catalog, <%= meta.name %>'s filters do not apply there.<br>
|
||||
The native catalog has its own separate filter list.
|
||||
</p>
|
||||
|
||||
@ -10,14 +10,14 @@ CatalogLinks =
|
||||
switch link.pathname
|
||||
when "/#{g.BOARD}/" then link.href = CatalogLinks.index()
|
||||
when "/#{g.BOARD}/catalog" then link.href = CatalogLinks.catalog()
|
||||
if g.VIEW is 'catalog' and Conf['JSON Navigation'] and Conf['Use 4chan X Catalog']
|
||||
if g.VIEW is 'catalog' and Conf['JSON Navigation'] and Conf['Use <%= meta.name %> Catalog']
|
||||
catalogLink = link.parentNode.cloneNode true
|
||||
catalogLink.firstElementChild.textContent = '4chan X Catalog'
|
||||
catalogLink.firstElementChild.textContent = '<%= meta.name %> Catalog'
|
||||
catalogLink.firstElementChild.href = CatalogLinks.catalog()
|
||||
$.after link.parentNode, [$.tn(' '), catalogLink]
|
||||
return
|
||||
|
||||
if Conf['JSON Navigation'] and Conf['Use 4chan X Catalog']
|
||||
if Conf['JSON Navigation'] and Conf['Use <%= meta.name %> Catalog']
|
||||
Post.callbacks.push
|
||||
name: 'Catalog Link Rewrite'
|
||||
cb: @node
|
||||
@ -69,13 +69,13 @@ CatalogLinks =
|
||||
catalog: (board=g.BOARD.ID) ->
|
||||
if Conf['External Catalog'] and board in ['a', 'c', 'g', 'biz', 'k', 'm', 'o', 'p', 'v', 'vg', 'vr', 'w', 'wg', 'cm', '3', 'adv', 'an', 'asp', 'cgl', 'ck', 'co', 'diy', 'fa', 'fit', 'gd', 'int', 'jp', 'lit', 'mlp', 'mu', 'n', 'out', 'po', 'sci', 'sp', 'tg', 'toy', 'trv', 'tv', 'vp', 'wsg', 'x', 'f', 'pol', 's4s', 'lgbt']
|
||||
"http://catalog.neet.tv/#{board}"
|
||||
else if Conf['JSON Navigation'] and Conf['Use 4chan X Catalog']
|
||||
else if Conf['JSON Navigation'] and Conf['Use <%= meta.name %> Catalog']
|
||||
if g.BOARD.ID is board and g.VIEW is 'index' then '#catalog' else "/#{board}/#catalog"
|
||||
else
|
||||
"/#{board}/catalog"
|
||||
|
||||
index: (board=g.BOARD.ID) ->
|
||||
if Conf['JSON Navigation'] and Conf['Use 4chan X Catalog']
|
||||
if Conf['JSON Navigation'] and Conf['Use <%= meta.name %> Catalog']
|
||||
if g.BOARD.ID is board and g.VIEW is 'index' then '#index' else "/#{board}/#index"
|
||||
else
|
||||
"/#{board}/"
|
||||
|
||||
@ -104,7 +104,7 @@ Keybinds =
|
||||
FappeTyme.toggle 'werk'
|
||||
# Board Navigation
|
||||
when Conf['Front page']
|
||||
if Conf['JSON Navigation'] and !Conf['Use 4chan X Catalog'] and g.VIEW is 'index'
|
||||
if Conf['JSON Navigation'] and !Conf['Use <%= meta.name %> Catalog'] and g.VIEW is 'index'
|
||||
Index.userPageNav 1
|
||||
else
|
||||
window.location = CatalogLinks.index()
|
||||
|
||||
@ -709,7 +709,7 @@ QR =
|
||||
QR.status()
|
||||
QR.error $.el 'span',
|
||||
<%= html(
|
||||
'4chan X encountered an error while posting. ' +
|
||||
'${g.NAME} encountered an error while posting. ' +
|
||||
'[<a href="//4chan.org/banned" target="_blank">Banned?</a>] ' +
|
||||
'[<a href="${g.FAQ}#what-does-4chan-x-encountered-an-error-while-posting-please-try-again-mean" target="_blank">More info</a>]'
|
||||
) %>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user