Created
May 24, 2016 22:27
-
-
Save talee/4bb265c9ab7039459917e4f68b84a81f to your computer and use it in GitHub Desktop.
userscript to fix older x-style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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