Fix settings resetting for Firefox, again.
"Note that only the first denied property access from a given global object will be reported."
This commit is contained in:
parent
4beb5fd635
commit
5e62950fb8
@ -495,16 +495,15 @@ $.set = do ->
|
||||
set key, val
|
||||
return
|
||||
$.clear = (cb) ->
|
||||
# XXX https://github.com/greasemonkey/greasemonkey/issues/2033
|
||||
$.delete Object.keys(Conf)
|
||||
$.delete ['previousversion', 'AutoWatch', 'cooldown.global', 'QR Size', 'captchas', 'QR.persona', 'hiddenPSA']
|
||||
$.delete ("#{id}.position" for id in ['embedding', 'updater', 'thread-stats', 'thread-watcher', 'qr'])
|
||||
boards = (a.textContent for a in $$ '#boardNavDesktop > .boardList > a')
|
||||
boards.push 'qa'
|
||||
$.delete ("cooldown.#{board}" for board in boards)
|
||||
try
|
||||
$.delete GM_listValues().map (key) -> key.replace g.NAMESPACE, ''
|
||||
catch err
|
||||
# XXX https://github.com/greasemonkey/greasemonkey/issues/2033
|
||||
$.delete Object.keys(Conf)
|
||||
$.delete ['previousversion', 'AutoWatch', 'cooldown.global', 'QR Size', 'captchas', 'QR.persona', 'hiddenPSA']
|
||||
$.delete ("#{id}.position" for id in ['embedding', 'updater', 'thread-stats', 'thread-watcher', 'qr'])
|
||||
boards = (a.textContent for a in $$ '#boardNavDesktop > .boardList > a')
|
||||
boards.push 'qa'
|
||||
$.delete ("cooldown.#{board}" for board in boards)
|
||||
cb?()
|
||||
<% } %>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user