Disable 4chan-specific hidden threads sync outside 4chan.
This commit is contained in:
parent
616f27963f
commit
2942663107
@ -12,7 +12,7 @@ ThreadHiding =
|
|||||||
cb: @node
|
cb: @node
|
||||||
|
|
||||||
catalogSet: (board) ->
|
catalogSet: (board) ->
|
||||||
return unless $.hasStorage
|
return unless $.hasStorage and Site.software is 'yotsuba'
|
||||||
hiddenThreads = ThreadHiding.db.get
|
hiddenThreads = ThreadHiding.db.get
|
||||||
boardID: board.ID
|
boardID: board.ID
|
||||||
defaultValue: {}
|
defaultValue: {}
|
||||||
@ -20,7 +20,7 @@ ThreadHiding =
|
|||||||
localStorage.setItem "4chan-hide-t-#{board}", JSON.stringify hiddenThreads
|
localStorage.setItem "4chan-hide-t-#{board}", JSON.stringify hiddenThreads
|
||||||
|
|
||||||
catalogWatch: ->
|
catalogWatch: ->
|
||||||
return unless $.hasStorage
|
return unless $.hasStorage and Site.software is 'yotsuba'
|
||||||
@hiddenThreads = JSON.parse(localStorage.getItem "4chan-hide-t-#{g.BOARD}") or {}
|
@hiddenThreads = JSON.parse(localStorage.getItem "4chan-hide-t-#{g.BOARD}") or {}
|
||||||
Main.ready ->
|
Main.ready ->
|
||||||
# 4chan's catalog sets the style to "display: none;" when hiding or unhiding a thread.
|
# 4chan's catalog sets the style to "display: none;" when hiding or unhiding a thread.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user