From 9d7da5817e12747a32a11b2ac8087121fe98775d Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 10 Jan 2015 19:01:15 -0800 Subject: [PATCH] 4chan X -> meta.name --- src/General/Config.coffee | 10 +++++----- src/General/Index.coffee | 2 +- src/General/Settings.coffee | 2 +- src/General/html/Settings/Filter-guide.html | 2 +- src/Miscellaneous/CatalogLinks.coffee | 10 +++++----- src/Miscellaneous/Keybinds.coffee | 2 +- src/Posting/QR.coffee | 2 +- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/General/Config.coffee b/src/General/Config.coffee index daabfa419..a0bbb80cd 100755 --- a/src/General/Config.coffee +++ b/src/General/Config.coffee @@ -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 diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 788429d1d..e884780b8 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -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] diff --git a/src/General/Settings.coffee b/src/General/Settings.coffee index 61b8b29b1..d1525a5d4 100755 --- a/src/General/Settings.coffee +++ b/src/General/Settings.coffee @@ -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 diff --git a/src/General/html/Settings/Filter-guide.html b/src/General/html/Settings/Filter-guide.html index 5eb80c8c2..1f17f91de 100755 --- a/src/General/html/Settings/Filter-guide.html +++ b/src/General/html/Settings/Filter-guide.html @@ -28,6 +28,6 @@

- Note: If you're using the native catalog rather than 4chan X's catalog, 4chan X's filters do not apply there.
+ Note: If you're using the native catalog rather than <%= meta.name %>'s catalog, <%= meta.name %>'s filters do not apply there.
The native catalog has its own separate filter list.

diff --git a/src/Miscellaneous/CatalogLinks.coffee b/src/Miscellaneous/CatalogLinks.coffee index d0b6f6258..6fcb53c4c 100755 --- a/src/Miscellaneous/CatalogLinks.coffee +++ b/src/Miscellaneous/CatalogLinks.coffee @@ -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}/" diff --git a/src/Miscellaneous/Keybinds.coffee b/src/Miscellaneous/Keybinds.coffee index 8e3be5424..88cc13e70 100755 --- a/src/Miscellaneous/Keybinds.coffee +++ b/src/Miscellaneous/Keybinds.coffee @@ -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() diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index c4a0429a1..e7765a8fb 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -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. ' + '[Banned?] ' + '[More info]' ) %>