These features are 4chan-specific.
This commit is contained in:
parent
3a379000cb
commit
fa7f2cb20b
@ -2,6 +2,7 @@ BoardConfig =
|
||||
cbs: []
|
||||
|
||||
init: ->
|
||||
return unless g.SITE.software is 'yotsuba'
|
||||
now = Date.now()
|
||||
unless now - 2 * $.HOUR < (Conf['boardConfig'].lastChecked or 0) <= now and Conf['boardConfig'].troll_flags
|
||||
$.ajax "#{location.protocol}//a.4cdn.org/boards.json",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
ArchiveLink =
|
||||
init: ->
|
||||
return unless g.VIEW in ['index', 'thread'] and Conf['Menu'] and Conf['Archive Link']
|
||||
return unless g.SITE.software is 'yotsuba' and g.VIEW in ['index', 'thread'] and Conf['Menu'] and Conf['Archive Link']
|
||||
|
||||
div = $.el 'div',
|
||||
textContent: 'Archive'
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
MarkNewIPs =
|
||||
init: ->
|
||||
return if g.VIEW isnt 'thread' or !Conf['Mark New IPs']
|
||||
return unless g.SITE.software is 'yotsuba' and g.VIEW is 'thread' and Conf['Mark New IPs']
|
||||
Callbacks.Thread.push
|
||||
name: 'Mark New IPs'
|
||||
cb: @node
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Captcha.replace =
|
||||
init: ->
|
||||
return unless d.cookie.indexOf('pass_enabled=1') < 0
|
||||
return unless g.SITE.software is 'yotsuba' and d.cookie.indexOf('pass_enabled=1') < 0
|
||||
|
||||
if Conf['Force Noscript Captcha'] and Main.jsEnabled
|
||||
$.ready Captcha.replace.noscript
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
PassLink =
|
||||
init: ->
|
||||
return unless Conf['Pass Link']
|
||||
return unless g.SITE.software is 'yotsuba' and Conf['Pass Link']
|
||||
Main.ready @ready
|
||||
|
||||
ready: ->
|
||||
|
||||
@ -3,21 +3,17 @@ SW.tinyboard =
|
||||
mayLackJSON: true
|
||||
|
||||
disabledFeatures: [
|
||||
'Board Configuration'
|
||||
'Normalize URL'
|
||||
'Captcha Configuration'
|
||||
'Index Generator'
|
||||
'Announcement Hiding'
|
||||
'Resurrect Quotes'
|
||||
'Quick Reply Personas'
|
||||
'Quick Reply'
|
||||
'Cooldown'
|
||||
'Pass Link'
|
||||
'Index Generator (Menu)'
|
||||
'Report Link'
|
||||
'Delete Link'
|
||||
'Edit Link'
|
||||
'Archive Link'
|
||||
'Quote Inlining'
|
||||
'Quote Previewing'
|
||||
'Quote Backlinks'
|
||||
@ -30,7 +26,6 @@ SW.tinyboard =
|
||||
'Quote Threading'
|
||||
'Thread Stats'
|
||||
'Thread Updater'
|
||||
'Mark New IPs'
|
||||
'Banner'
|
||||
'Flash Features'
|
||||
'Reply Pruning'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user