4chan X -> meta.name
This commit is contained in:
parent
96dfee999c
commit
9d7da5817e
@ -5,9 +5,9 @@ Config =
|
|||||||
true
|
true
|
||||||
'Replace the original board index with one supporting searching, sorting, infinite scrolling, and a catalog mode.'
|
'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
|
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
|
1
|
||||||
]
|
]
|
||||||
'External Catalog': [
|
'External Catalog': [
|
||||||
@ -82,7 +82,7 @@ Config =
|
|||||||
]
|
]
|
||||||
'Show Updated Notifications': [
|
'Show Updated Notifications': [
|
||||||
true
|
true
|
||||||
'Show notifications when 4chan X is successfully updated.'
|
'Show notifications when <%= meta.name %> is successfully updated.'
|
||||||
]
|
]
|
||||||
'Color User IDs': [
|
'Color User IDs': [
|
||||||
false
|
false
|
||||||
@ -98,7 +98,7 @@ Config =
|
|||||||
]
|
]
|
||||||
'Show Support Message': [
|
'Show Support Message': [
|
||||||
true
|
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': [
|
'Normalize URL': [
|
||||||
true
|
true
|
||||||
@ -180,7 +180,7 @@ Config =
|
|||||||
]
|
]
|
||||||
'Image Hover in Catalog': [
|
'Image Hover in Catalog': [
|
||||||
false
|
false
|
||||||
'Show full image / video on mouseover in 4chan X catalog.'
|
'Show full image / video on mouseover in <%= meta.name %> catalog.'
|
||||||
]
|
]
|
||||||
'Gallery': [
|
'Gallery': [
|
||||||
true
|
true
|
||||||
|
|||||||
@ -73,7 +73,7 @@ Index =
|
|||||||
$.on @searchInput, 'input', @onSearchInput
|
$.on @searchInput, 'input', @onSearchInput
|
||||||
$.on $('#index-search-clear', @navLinks), 'click', @clearSearch
|
$.on $('#index-search-clear', @navLinks), 'click', @clearSearch
|
||||||
$.on $('#hidden-toggle a', @navLinks), 'click', @cb.toggleHiddenThreads
|
$.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
|
$.on @selectMode, 'change', @cb.mode
|
||||||
for select in [@selectMode, @selectSort, @selectSize]
|
for select in [@selectMode, @selectSort, @selectSize]
|
||||||
select.value = Conf[select.name]
|
select.value = Conf[select.name]
|
||||||
|
|||||||
@ -4,7 +4,7 @@ Settings =
|
|||||||
link = $.el 'a',
|
link = $.el 'a',
|
||||||
className: 'settings-link fa fa-wrench'
|
className: 'settings-link fa fa-wrench'
|
||||||
textContent: 'Settings'
|
textContent: 'Settings'
|
||||||
title: '4chan X Settings'
|
title: '<%= meta.name %> Settings'
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
$.on link, 'click', Settings.open
|
$.on link, 'click', Settings.open
|
||||||
|
|
||||||
|
|||||||
@ -28,6 +28,6 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<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.
|
The native catalog has its own separate filter list.
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@ -10,14 +10,14 @@ CatalogLinks =
|
|||||||
switch link.pathname
|
switch link.pathname
|
||||||
when "/#{g.BOARD}/" then link.href = CatalogLinks.index()
|
when "/#{g.BOARD}/" then link.href = CatalogLinks.index()
|
||||||
when "/#{g.BOARD}/catalog" then link.href = CatalogLinks.catalog()
|
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 = link.parentNode.cloneNode true
|
||||||
catalogLink.firstElementChild.textContent = '4chan X Catalog'
|
catalogLink.firstElementChild.textContent = '<%= meta.name %> Catalog'
|
||||||
catalogLink.firstElementChild.href = CatalogLinks.catalog()
|
catalogLink.firstElementChild.href = CatalogLinks.catalog()
|
||||||
$.after link.parentNode, [$.tn(' '), catalogLink]
|
$.after link.parentNode, [$.tn(' '), catalogLink]
|
||||||
return
|
return
|
||||||
|
|
||||||
if Conf['JSON Navigation'] and Conf['Use 4chan X Catalog']
|
if Conf['JSON Navigation'] and Conf['Use <%= meta.name %> Catalog']
|
||||||
Post.callbacks.push
|
Post.callbacks.push
|
||||||
name: 'Catalog Link Rewrite'
|
name: 'Catalog Link Rewrite'
|
||||||
cb: @node
|
cb: @node
|
||||||
@ -69,13 +69,13 @@ CatalogLinks =
|
|||||||
catalog: (board=g.BOARD.ID) ->
|
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']
|
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}"
|
"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"
|
if g.BOARD.ID is board and g.VIEW is 'index' then '#catalog' else "/#{board}/#catalog"
|
||||||
else
|
else
|
||||||
"/#{board}/catalog"
|
"/#{board}/catalog"
|
||||||
|
|
||||||
index: (board=g.BOARD.ID) ->
|
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"
|
if g.BOARD.ID is board and g.VIEW is 'index' then '#index' else "/#{board}/#index"
|
||||||
else
|
else
|
||||||
"/#{board}/"
|
"/#{board}/"
|
||||||
|
|||||||
@ -104,7 +104,7 @@ Keybinds =
|
|||||||
FappeTyme.toggle 'werk'
|
FappeTyme.toggle 'werk'
|
||||||
# Board Navigation
|
# Board Navigation
|
||||||
when Conf['Front page']
|
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
|
Index.userPageNav 1
|
||||||
else
|
else
|
||||||
window.location = CatalogLinks.index()
|
window.location = CatalogLinks.index()
|
||||||
|
|||||||
@ -709,7 +709,7 @@ QR =
|
|||||||
QR.status()
|
QR.status()
|
||||||
QR.error $.el 'span',
|
QR.error $.el 'span',
|
||||||
<%= html(
|
<%= 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="//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>]'
|
'[<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