Skip to content

Instantly share code, notes, and snippets.

@etale
Last active January 25, 2018 06:28
Show Gist options
  • Save etale/c4c7dbf4ea960d22e43e96bcaf77a074 to your computer and use it in GitHub Desktop.
Save etale/c4c7dbf4ea960d22e43e96bcaf77a074 to your computer and use it in GitHub Desktop.
reset font-family for outlook.office.com
[...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", "")
);
@etale
Copy link
Author

etale commented Jan 25, 2018

javascript:[...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', ''))

@etale
Copy link
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