Skip to content

Instantly share code, notes, and snippets.

@talee
Created May 24, 2016 22:27
Show Gist options
  • Select an option

  • Save talee/4bb265c9ab7039459917e4f68b84a81f to your computer and use it in GitHub Desktop.

Select an option

Save talee/4bb265c9ab7039459917e4f68b84a81f to your computer and use it in GitHub Desktop.
userscript to fix older x-style
document.registerElement('x-parse', {
prototype: {attachedCallback() {
let contentStyle = getComputedStyle(this)['content']
contentStyle != 'normal' ? alert(`x-parse content ${contentStyle}`) : 0
this.currentStyle = 'none'
}}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment