Merge branch 'Stable' into Beta
Conflicts: LICENSE builds/4chan-X-beta.crx builds/4chan-X-beta.meta.js builds/4chan-X-beta.user.js builds/4chan-X-noupdate.crx builds/4chan-X-noupdate.user.js builds/4chan-X.crx builds/4chan-X.meta.js builds/4chan-X.user.js builds/4chan-X.zip builds/updates-beta.xml builds/updates.xml package.json src/Quotelinks/Quotify.coffee
This commit is contained in:
commit
53ad72ee9a
@ -29,6 +29,12 @@ Based on v1.9.18.6.
|
|||||||
- Minor bugfixes.
|
- Minor bugfixes.
|
||||||
|
|
||||||
<!-- v1.9.18.x -->
|
<!-- v1.9.18.x -->
|
||||||
|
### v1.9.18.9
|
||||||
|
*2015-01-04* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.18.9/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.18.9/builds/4chan-X-noupdate.crx "Chromium version")]
|
||||||
|
|
||||||
|
**ccd0**
|
||||||
|
- Support new archived threads list page.
|
||||||
|
|
||||||
### v1.9.18.8
|
### v1.9.18.8
|
||||||
*2015-01-04* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.18.8/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.18.8/builds/4chan-X-noupdate.crx "Chromium version")]
|
*2015-01-04* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.18.8/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.18.8/builds/4chan-X-noupdate.crx "Chromium version")]
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
Anonymize =
|
Anonymize =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Anonymize']
|
return if g.VIEW not in ['index', 'thread', 'archive'] or !Conf['Anonymize']
|
||||||
|
return @archive() if g.VIEW is 'archive'
|
||||||
|
|
||||||
Post.callbacks.push
|
Post.callbacks.push
|
||||||
name: 'Anonymize'
|
name: 'Anonymize'
|
||||||
@ -16,3 +17,7 @@ Anonymize =
|
|||||||
if @info.email
|
if @info.email
|
||||||
$.replace email, name
|
$.replace email, name
|
||||||
delete @nodes.email
|
delete @nodes.email
|
||||||
|
archive: ->
|
||||||
|
$.ready ->
|
||||||
|
name.textContent = 'Anonymous' for name in $$ '.name'
|
||||||
|
$.rm trip for trip in $$ '.postertrip'
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
Filter =
|
Filter =
|
||||||
filters: {}
|
filters: {}
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Filter']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Filter']
|
||||||
|
|
||||||
unless Conf['Filtered Backlinks']
|
unless Conf['Filtered Backlinks']
|
||||||
$.addClass doc, 'hide-backlinks'
|
$.addClass doc, 'hide-backlinks'
|
||||||
@ -172,7 +172,7 @@ Filter =
|
|||||||
|
|
||||||
menu:
|
menu:
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Menu'] or !Conf['Filter']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Menu'] or !Conf['Filter']
|
||||||
|
|
||||||
div = $.el 'div',
|
div = $.el 'div',
|
||||||
textContent: 'Filter'
|
textContent: 'Filter'
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
PostHiding =
|
PostHiding =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Reply Hiding Buttons'] and !(Conf['Menu'] and Conf['Reply Hiding Link'])
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Reply Hiding Buttons'] and !(Conf['Menu'] and Conf['Reply Hiding Link'])
|
||||||
|
|
||||||
if Conf['Reply Hiding Buttons']
|
if Conf['Reply Hiding Buttons']
|
||||||
$.addClass doc, "reply-hide"
|
$.addClass doc, "reply-hide"
|
||||||
@ -23,7 +23,7 @@ PostHiding =
|
|||||||
|
|
||||||
menu:
|
menu:
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Menu'] or !Conf['Reply Hiding Link']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Menu'] or !Conf['Reply Hiding Link']
|
||||||
|
|
||||||
# Hide
|
# Hide
|
||||||
div = $.el 'div',
|
div = $.el 'div',
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
Recursive =
|
Recursive =
|
||||||
recursives: {}
|
recursives: {}
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog'
|
return if g.VIEW not in ['index', 'thread']
|
||||||
|
|
||||||
Post.callbacks.push
|
Post.callbacks.push
|
||||||
name: 'Recursive'
|
name: 'Recursive'
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
ThreadHiding =
|
ThreadHiding =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'thread' or !Conf['Thread Hiding Buttons'] and !(Conf['Menu'] and Conf['Thread Hiding Link']) and !Conf['JSON Navigation']
|
return if g.VIEW not in ['index', 'catalog'] or !Conf['Thread Hiding Buttons'] and !(Conf['Menu'] and Conf['Thread Hiding Link']) and !Conf['JSON Navigation']
|
||||||
@db = new DataBoard 'hiddenThreads'
|
@db = new DataBoard 'hiddenThreads'
|
||||||
return @catalogWatch() if g.VIEW is 'catalog'
|
return @catalogWatch() if g.VIEW is 'catalog'
|
||||||
@catalogSet g.BOARD
|
@catalogSet g.BOARD
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<% if (tests_enabled) { %>
|
<% if (tests_enabled) { %>
|
||||||
BuildTest =
|
BuildTest =
|
||||||
init: ->
|
init: ->
|
||||||
return if !Conf['Menu'] or g.VIEW is 'catalog'
|
return if !Conf['Menu'] or g.VIEW not in ['index', 'thread']
|
||||||
|
|
||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
textContent: 'Test HTML building'
|
textContent: 'Test HTML building'
|
||||||
|
|||||||
@ -59,6 +59,7 @@ Index =
|
|||||||
$.extend @navLinks, <%= importHTML('Features/Index-navlinks') %>
|
$.extend @navLinks, <%= importHTML('Features/Index-navlinks') %>
|
||||||
$('.returnlink a', @navLinks).href = CatalogLinks.index()
|
$('.returnlink a', @navLinks).href = CatalogLinks.index()
|
||||||
$('.cataloglink a', @navLinks).href = CatalogLinks.catalog()
|
$('.cataloglink a', @navLinks).href = CatalogLinks.catalog()
|
||||||
|
$('.archlistlink', @navLinks).hidden = true if g.BOARD.ID is 'b'
|
||||||
@searchInput = $ '#index-search', @navLinks
|
@searchInput = $ '#index-search', @navLinks
|
||||||
@setupSearch()
|
@setupSearch()
|
||||||
@hideLabel = $ '#hidden-label', @navLinks
|
@hideLabel = $ '#hidden-label', @navLinks
|
||||||
|
|||||||
@ -15,6 +15,8 @@ Main =
|
|||||||
'thread'
|
'thread'
|
||||||
when 'catalog'
|
when 'catalog'
|
||||||
'catalog'
|
'catalog'
|
||||||
|
when 'archive'
|
||||||
|
'archive'
|
||||||
else
|
else
|
||||||
'index'
|
'index'
|
||||||
if g.VIEW is 'thread'
|
if g.VIEW is 'thread'
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<span class="brackets-wrap returnlink"><a href="./">Return</a></span>
|
<span class="brackets-wrap returnlink"><a href="./">Return</a></span>
|
||||||
<span class="brackets-wrap cataloglink"><a href="./catalog">Catalog</a></span>
|
<span class="brackets-wrap cataloglink"><a href="./catalog">Catalog</a></span>
|
||||||
|
<span class="brackets-wrap archlistlink"><a href="./archive">Archive</a></span>
|
||||||
<span class="brackets-wrap bottomlink"><a href="#bottom">Bottom</a></span>
|
<span class="brackets-wrap bottomlink"><a href="#bottom">Bottom</a></span>
|
||||||
<span class="brackets-wrap" id="index-last-refresh"><time title="Last index refresh">...</time></span>
|
<span class="brackets-wrap" id="index-last-refresh"><time title="Last index refresh">...</time></span>
|
||||||
<input type="search" id="index-search" class="field" placeholder="Search">
|
<input type="search" id="index-search" class="field" placeholder="Search">
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
FappeTyme =
|
FappeTyme =
|
||||||
init: ->
|
init: ->
|
||||||
return if !(Conf['Fappe Tyme'] or Conf['Werk Tyme']) or g.VIEW is 'catalog' or g.BOARD is 'f'
|
return if !(Conf['Fappe Tyme'] or Conf['Werk Tyme']) or g.VIEW not in ['index', 'thread'] or g.BOARD is 'f'
|
||||||
|
|
||||||
@nodes = {}
|
@nodes = {}
|
||||||
@enabled =
|
@enabled =
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
Gallery =
|
Gallery =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or g.BOARD is 'f' or !Conf['Gallery']
|
return if g.VIEW not in ['index', 'thread'] or g.BOARD is 'f' or !Conf['Gallery']
|
||||||
|
|
||||||
@delay = Conf['Slide Delay']
|
@delay = Conf['Slide Delay']
|
||||||
|
|
||||||
@ -286,7 +286,7 @@ Gallery =
|
|||||||
|
|
||||||
menu:
|
menu:
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Gallery']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Gallery']
|
||||||
|
|
||||||
el = $.el 'span',
|
el = $.el 'span',
|
||||||
textContent: 'Gallery'
|
textContent: 'Gallery'
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
ImageExpand =
|
ImageExpand =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Image Expansion']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Image Expansion']
|
||||||
|
|
||||||
@EAI = $.el 'a',
|
@EAI = $.el 'a',
|
||||||
className: 'expand-all-shortcut fa fa-expand'
|
className: 'expand-all-shortcut fa fa-expand'
|
||||||
@ -269,7 +269,7 @@ ImageExpand =
|
|||||||
|
|
||||||
menu:
|
menu:
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Image Expansion']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Image Expansion']
|
||||||
|
|
||||||
el = $.el 'span',
|
el = $.el 'span',
|
||||||
textContent: 'Image Expansion'
|
textContent: 'Image Expansion'
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
ImageHover =
|
ImageHover =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog'
|
return if g.VIEW not in ['index', 'thread']
|
||||||
if Conf['Image Hover']
|
if Conf['Image Hover']
|
||||||
Post.callbacks.push
|
Post.callbacks.push
|
||||||
name: 'Image Hover'
|
name: 'Image Hover'
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
ImageLoader =
|
ImageLoader =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog'
|
return if g.VIEW not in ['index', 'thread']
|
||||||
return unless Conf['Image Prefetching'] or Conf['Replace JPG'] or Conf['Replace PNG'] or Conf['Replace GIF'] or Conf['Replace WEBM']
|
return unless Conf['Image Prefetching'] or Conf['Replace JPG'] or Conf['Replace PNG'] or Conf['Replace GIF'] or Conf['Replace WEBM']
|
||||||
|
|
||||||
Post.callbacks.push
|
Post.callbacks.push
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
RevealSpoilers =
|
RevealSpoilers =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Reveal Spoiler Thumbnails']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Reveal Spoiler Thumbnails']
|
||||||
|
|
||||||
Post.callbacks.push
|
Post.callbacks.push
|
||||||
cb: @node
|
cb: @node
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
Sauce =
|
Sauce =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Sauce']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Sauce']
|
||||||
|
|
||||||
links = []
|
links = []
|
||||||
for link in Conf['sauces'].split '\n'
|
for link in Conf['sauces'].split '\n'
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
Linkify =
|
Linkify =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or not Conf['Linkify']
|
return if g.VIEW not in ['index', 'thread'] or not Conf['Linkify']
|
||||||
|
|
||||||
if Conf['Comment Expansion']
|
if Conf['Comment Expansion']
|
||||||
ExpandComment.callbacks.push @node
|
ExpandComment.callbacks.push @node
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
ArchiveLink =
|
ArchiveLink =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Menu'] or !Conf['Archive Link']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Menu'] or !Conf['Archive Link']
|
||||||
|
|
||||||
div = $.el 'div',
|
div = $.el 'div',
|
||||||
textContent: 'Archive'
|
textContent: 'Archive'
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
DeleteLink =
|
DeleteLink =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Menu'] or !Conf['Delete Link']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Menu'] or !Conf['Delete Link']
|
||||||
|
|
||||||
div = $.el 'div',
|
div = $.el 'div',
|
||||||
className: 'delete-link'
|
className: 'delete-link'
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
DownloadLink =
|
DownloadLink =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Menu'] or !Conf['Download Link']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Menu'] or !Conf['Download Link']
|
||||||
|
|
||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
className: 'download-link'
|
className: 'download-link'
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
Menu =
|
Menu =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Menu']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Menu']
|
||||||
|
|
||||||
@button = $.el 'a',
|
@button = $.el 'a',
|
||||||
className: 'menu-button'
|
className: 'menu-button'
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
ReportLink =
|
ReportLink =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Menu'] or !Conf['Report Link']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Menu'] or !Conf['Report Link']
|
||||||
|
|
||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
className: 'report-link'
|
className: 'report-link'
|
||||||
|
|||||||
@ -2,7 +2,7 @@ CatalogLinks =
|
|||||||
init: ->
|
init: ->
|
||||||
if (Conf['External Catalog'] or Conf['JSON Navigation']) and !(Conf['JSON Navigation'] and g.VIEW is 'index')
|
if (Conf['External Catalog'] or Conf['JSON Navigation']) and !(Conf['JSON Navigation'] and g.VIEW is 'index')
|
||||||
selector = switch g.VIEW
|
selector = switch g.VIEW
|
||||||
when 'thread' then '.navLinks.desktop > a'
|
when 'thread', 'archive' then '.navLinks.desktop > a'
|
||||||
when 'catalog' then '.navLinks > :first-child > a'
|
when 'catalog' then '.navLinks > :first-child > a'
|
||||||
when 'index' then '.middlead + .desktop > a, .cataloglink > a'
|
when 'index' then '.middlead + .desktop > a, .cataloglink > a'
|
||||||
$.ready ->
|
$.ready ->
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
FileInfo =
|
FileInfo =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['File Info Formatting']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['File Info Formatting']
|
||||||
|
|
||||||
Post.callbacks.push
|
Post.callbacks.push
|
||||||
name: 'File Info Formatting'
|
name: 'File Info Formatting'
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
Fourchan =
|
Fourchan =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog'
|
return if g.VIEW not in ['index', 'thread']
|
||||||
|
|
||||||
if g.BOARD.ID is 'g'
|
if g.BOARD.ID is 'g'
|
||||||
$.globalEval '''
|
$.globalEval '''
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
IDColor =
|
IDColor =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or not Conf['Color User IDs']
|
return if g.VIEW not in ['index', 'thread'] or not Conf['Color User IDs']
|
||||||
@ids = {}
|
@ids = {}
|
||||||
|
|
||||||
Post.callbacks.push
|
Post.callbacks.push
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
IDHighlight =
|
IDHighlight =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog'
|
return if g.VIEW not in ['index', 'thread']
|
||||||
|
|
||||||
Post.callbacks.push
|
Post.callbacks.push
|
||||||
name: 'Highlight by User ID'
|
name: 'Highlight by User ID'
|
||||||
|
|||||||
@ -21,7 +21,7 @@ Keybinds =
|
|||||||
{target} = e
|
{target} = e
|
||||||
if target.nodeName in ['INPUT', 'TEXTAREA']
|
if target.nodeName in ['INPUT', 'TEXTAREA']
|
||||||
return unless /(Esc|Alt|Ctrl|Meta|Shift\+\w{2,})/.test key
|
return unless /(Esc|Alt|Ctrl|Meta|Shift\+\w{2,})/.test key
|
||||||
unless g.VIEW is 'catalog' or g.VIEW is 'index' and Conf['JSON Navigation'] and Conf['Index Mode'] is 'catalog'
|
unless g.VIEW not in ['index', 'thread'] or g.VIEW is 'index' and Conf['JSON Navigation'] and Conf['Index Mode'] is 'catalog'
|
||||||
threadRoot = Nav.getThread()
|
threadRoot = Nav.getThread()
|
||||||
if op = $ '.op', threadRoot
|
if op = $ '.op', threadRoot
|
||||||
thread = Get.postFromNode(op).thread
|
thread = Get.postFromNode(op).thread
|
||||||
@ -94,13 +94,13 @@ Keybinds =
|
|||||||
return unless threadRoot
|
return unless threadRoot
|
||||||
Keybinds.img threadRoot, true
|
Keybinds.img threadRoot, true
|
||||||
when Conf['Open Gallery']
|
when Conf['Open Gallery']
|
||||||
return if g.VIEW is 'catalog'
|
return if g.VIEW not in ['index', 'thread']
|
||||||
Gallery.cb.toggle()
|
Gallery.cb.toggle()
|
||||||
when Conf['fappeTyme']
|
when Conf['fappeTyme']
|
||||||
return if !Conf['Fappe Tyme'] or g.VIEW is 'catalog' or g.BOARD is 'f'
|
return if !Conf['Fappe Tyme'] or g.VIEW not in ['index', 'thread'] or g.BOARD is 'f'
|
||||||
FappeTyme.toggle 'fappe'
|
FappeTyme.toggle 'fappe'
|
||||||
when Conf['werkTyme']
|
when Conf['werkTyme']
|
||||||
return if !Conf['Werk Tyme'] or g.VIEW is 'catalog' or g.BOARD is 'f'
|
return if !Conf['Werk Tyme'] or g.VIEW not in ['index', 'thread'] or g.BOARD is 'f'
|
||||||
FappeTyme.toggle 'werk'
|
FappeTyme.toggle 'werk'
|
||||||
# Board Navigation
|
# Board Navigation
|
||||||
when Conf['Front page']
|
when Conf['Front page']
|
||||||
|
|||||||
@ -5,7 +5,7 @@ Nav =
|
|||||||
return unless Conf['Index Navigation']
|
return unless Conf['Index Navigation']
|
||||||
when 'thread'
|
when 'thread'
|
||||||
return unless Conf['Reply Navigation']
|
return unless Conf['Reply Navigation']
|
||||||
else # catalog
|
else
|
||||||
return
|
return
|
||||||
|
|
||||||
span = $.el 'span',
|
span = $.el 'span',
|
||||||
|
|||||||
@ -2,7 +2,7 @@ RelativeDates =
|
|||||||
INTERVAL: $.MINUTE / 2
|
INTERVAL: $.MINUTE / 2
|
||||||
init: ->
|
init: ->
|
||||||
if (
|
if (
|
||||||
g.VIEW isnt 'catalog' and Conf['Relative Post Dates'] and !Conf['Relative Date Title'] or
|
g.VIEW in ['index', 'thread'] and Conf['Relative Post Dates'] and !Conf['Relative Date Title'] or
|
||||||
g.VIEW is 'index' and Conf['JSON Navigation'] and g.BOARD.ID isnt 'f'
|
g.VIEW is 'index' and Conf['JSON Navigation'] and g.BOARD.ID isnt 'f'
|
||||||
)
|
)
|
||||||
@flush()
|
@flush()
|
||||||
|
|||||||
@ -11,9 +11,14 @@ RemoveSpoilers =
|
|||||||
CatalogThread.callbacks.push
|
CatalogThread.callbacks.push
|
||||||
name: 'Reveal Spoilers'
|
name: 'Reveal Spoilers'
|
||||||
cb: @node
|
cb: @node
|
||||||
|
if g.VIEW is 'archive'
|
||||||
|
$.ready -> RemoveSpoilers.unspoiler $.id 'arc-list'
|
||||||
|
|
||||||
node: (post) ->
|
node: (post) ->
|
||||||
spoilers = $$ 's', @nodes.comment
|
RemoveSpoilers.unspoiler @nodes.comment
|
||||||
|
|
||||||
|
unspoiler: (el) ->
|
||||||
|
spoilers = $$ 's', el
|
||||||
for spoiler in spoilers
|
for spoiler in spoilers
|
||||||
span = $.el 'span', className: 'removed-spoiler'
|
span = $.el 'span', className: 'removed-spoiler'
|
||||||
$.replace spoiler, span
|
$.replace spoiler, span
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
Time =
|
Time =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Time Formatting']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Time Formatting']
|
||||||
|
|
||||||
Post.callbacks.push
|
Post.callbacks.push
|
||||||
name: 'Time Formatting'
|
name: 'Time Formatting'
|
||||||
|
|||||||
@ -12,7 +12,7 @@ QuoteBacklink =
|
|||||||
# and that as much backlinks are appended in the background as possible.
|
# and that as much backlinks are appended in the background as possible.
|
||||||
containers: {}
|
containers: {}
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Quote Backlinks']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Quote Backlinks']
|
||||||
|
|
||||||
Post.callbacks.push
|
Post.callbacks.push
|
||||||
name: 'Quote Backlinking Part 1'
|
name: 'Quote Backlinking Part 1'
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
QuoteCT =
|
QuoteCT =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Mark Cross-thread Quotes']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Mark Cross-thread Quotes']
|
||||||
|
|
||||||
if Conf['Comment Expansion']
|
if Conf['Comment Expansion']
|
||||||
ExpandComment.callbacks.push @node
|
ExpandComment.callbacks.push @node
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
QuoteInline =
|
QuoteInline =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Quote Inlining']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Quote Inlining']
|
||||||
|
|
||||||
@process = if Conf['Quote Hash Navigation']
|
@process = if Conf['Quote Hash Navigation']
|
||||||
(link, clone) ->
|
(link, clone) ->
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
QuoteOP =
|
QuoteOP =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Mark OP Quotes']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Mark OP Quotes']
|
||||||
|
|
||||||
if Conf['Comment Expansion']
|
if Conf['Comment Expansion']
|
||||||
ExpandComment.callbacks.push @node
|
ExpandComment.callbacks.push @node
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
QuotePreview =
|
QuotePreview =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Quote Previewing']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Quote Previewing']
|
||||||
|
|
||||||
if Conf['Comment Expansion']
|
if Conf['Comment Expansion']
|
||||||
ExpandComment.callbacks.push @node
|
ExpandComment.callbacks.push @node
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
QuoteStrikeThrough =
|
QuoteStrikeThrough =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Reply Hiding Buttons'] and !(Conf['Menu'] and Conf['Reply Hiding Link']) and !Conf['Filter']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Reply Hiding Buttons'] and !(Conf['Menu'] and Conf['Reply Hiding Link']) and !Conf['Filter']
|
||||||
|
|
||||||
Post.callbacks.push
|
Post.callbacks.push
|
||||||
name: 'Strike-through Quotes'
|
name: 'Strike-through Quotes'
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
QuoteYou =
|
QuoteYou =
|
||||||
init: ->
|
init: ->
|
||||||
return unless g.VIEW isnt 'catalog' and Conf['Mark Quotes of You'] and Conf['Quick Reply']
|
return unless g.VIEW in ['index', 'thread'] and Conf['Mark Quotes of You'] and Conf['Quick Reply']
|
||||||
|
|
||||||
if Conf['Highlight Own Posts']
|
if Conf['Highlight Own Posts']
|
||||||
$.addClass doc, 'highlight-own'
|
$.addClass doc, 'highlight-own'
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
Quotify =
|
Quotify =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Resurrect Quotes'] and g.BOARD.ID isnt 'pol'
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Resurrect Quotes'] and g.BOARD.ID isnt 'pol'
|
||||||
|
|
||||||
if Conf['Comment Expansion']
|
if Conf['Comment Expansion']
|
||||||
ExpandComment.callbacks.push @node
|
ExpandComment.callbacks.push @node
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user