Last active
January 25, 2018 06:28
-
-
Save etale/c4c7dbf4ea960d22e43e96bcaf77a074 to your computer and use it in GitHub Desktop.
reset font-family for outlook.office.com
This file contains 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.styleSheets] | |
.map(a => { | |
try { | |
return a.rules; | |
} catch (e) { | |
return; | |
} | |
}) | |
.filter(a => a) | |
.reduce((a, b) => [...a, ...b], []) | |
.map(a => a.style) | |
.filter(a => a) | |
.forEach( | |
a => a.fontFamily === "Office365Icons" || Reflect.set(a, "fontFamily", "") | |
); |
Author
etale
commented
Jan 25, 2018
a.rules
で例外がスローされるときがあるようになったので.具体的にはOutlook
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment