Don't add unrecognized style sheets to document as CSS classes; process as unrecognized.

This commit is contained in:
ccd0 2017-10-30 09:52:48 -07:00
parent 6799ceff3e
commit fd84cc281d

View File

@ -239,6 +239,7 @@ Main =
if styleSheet.href is mainStyleSheet?.href
style = styleSheet.title.toLowerCase().replace('new', '').trim().replace /\s+/g, '-'
style = styleSheet.href.match(/[a-z]*(?=[^/]*$)/)[0] if style is '_special'
style = null unless style in ['yotsuba', 'yotsuba-b', 'futaba', 'burichan', 'photon', 'tomorrow', 'spooky']
break
if style
$.addClass doc, style