Can only clear 4chan catalog hidden threads from 4chan.
This commit is contained in:
parent
23c764347b
commit
9881ed30fa
@ -199,7 +199,7 @@ Settings =
|
|||||||
$.on button, 'click', ->
|
$.on button, 'click', ->
|
||||||
@textContent = 'Hidden: 0'
|
@textContent = 'Hidden: 0'
|
||||||
$.get 'hiddenThreads', {}, ({hiddenThreads}) ->
|
$.get 'hiddenThreads', {}, ({hiddenThreads}) ->
|
||||||
if $.hasStorage
|
if $.hasStorage and Site.software is 'yotsuba'
|
||||||
for boardID of hiddenThreads.boards
|
for boardID of hiddenThreads.boards
|
||||||
localStorage.removeItem "4chan-hide-t-#{boardID}"
|
localStorage.removeItem "4chan-hide-t-#{boardID}"
|
||||||
($.delete ['hiddenThreads', 'hiddenPosts'])
|
($.delete ['hiddenThreads', 'hiddenPosts'])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user