Remove PSA workaround.
Also this DOMAttrModified actually works.
This commit is contained in:
parent
448273441d
commit
982ec6ecc6
@ -161,7 +161,6 @@ Main =
|
|||||||
attributes: true
|
attributes: true
|
||||||
attributeFilter: ['href']
|
attributeFilter: ['href']
|
||||||
else
|
else
|
||||||
# XXX this doesn't seem to work?
|
|
||||||
$.on mainStyleSheet, 'DOMAttrModified', setStyle
|
$.on mainStyleSheet, 'DOMAttrModified', setStyle
|
||||||
|
|
||||||
initReady: ->
|
initReady: ->
|
||||||
|
|||||||
@ -32,17 +32,7 @@ PSAHiding =
|
|||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
$.on btn, 'click', PSAHiding.toggle
|
$.on btn, 'click', PSAHiding.toggle
|
||||||
|
|
||||||
# XXX remove hiddenPSAs workaround in the future.
|
$.get hiddenPSA, 0, ({hiddenPSA}) ->
|
||||||
items =
|
|
||||||
hiddenPSA: 0
|
|
||||||
hiddenPSAs: null
|
|
||||||
|
|
||||||
$.get items, ({hiddenPSA, hiddenPSAs}) ->
|
|
||||||
if hiddenPSAs
|
|
||||||
$.delete 'hiddenPSAs'
|
|
||||||
if psa.textContent.replace(/\W+/g, '').toLowerCase() in hiddenPSAs
|
|
||||||
hiddenPSA = +$.id('globalMessage').dataset.utc
|
|
||||||
$.set 'hiddenPSA', hiddenPSA
|
|
||||||
PSAHiding.sync hiddenPSA
|
PSAHiding.sync hiddenPSA
|
||||||
$.before psa, btn
|
$.before psa, btn
|
||||||
$.rmClass doc, 'hide-announcement'
|
$.rmClass doc, 'hide-announcement'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user