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