export default function contentCleaner ( html ) { html = html . replace ( /[\r\n]/g , '' ) . replace ( /<iframe src="https:\/\/store\.steampowered\.com\/widget\/\d+\/" style="border:none;height:190px;width:100%;max-width:646px;"><\/iframe>/g , '' ) . replace ( /(<br\s?\/>){2,}/g , '<br/><br/>' ) . replace ( /src="forum\.php/g , 'src="https://steamcn.com/forum.php' ) . replace ( /src="static/g , 'src="https://steamcn.com/static' ) . replace ( /href="forum\.php/g , 'href="https://steamcn.com/forum.php' ) . replace ( /font size="(7|6)"/g , 'font size="5"' ) . replace ( /"https:\/\/steamcn\.com\/static\/image\/common\/none\.gif" zoomfile=/g , '' ) . replace ( /<div class='showhide'><p>隐藏内容，<a href='javascript:;' onClick="var s=this\.parentNode\.parentNode\.getElementsByClassName\('spoiler'\)\[0\];'none'==s\.style\.display\?\(s\.style\.display='block',this\.innerHTML='点击隐藏'\) : \(s\.style\.display='none',this\.innerHTML='点击显示'\);">点击显示<\/a><\/p><div style='display: none;' class='spoiler'>/g , "<div class='showhide'><div class='spoiler'>" ) . replace ( /width="\d+"/g , '' ) . replace ( /height="\d+"/g , '' ) . replace ( /<ignore_js_op><dl class="tattl attm"><dt><\/dt><dd>/g , '' ) . replace ( /<\/div><\/dd><\/dl><\/ignore_js_op>/g , '' ) . replace ( /<script type="text\/javascript">replyreload += ',' + \d+;<\/script><script type="text\/javascript">replyreload += ',' + \d+;<\/script>/g , '' ) . replace ( /<script type='text\/javascript'> if \(typeof jQuery(.+)return false; }\); } <\/script>/g , '' ) . replace ( /<script type="text\/javascript" reload="1">(.+)'true'\);<\/script><br\/><br\/>/g , '' ) . replace ( /<i class="pstatus">(.+编辑) <\/i>(<br\/>)?/g , '<div align="center"><font color="#808080"><i class="pstatus">$1</i></font></div>' ) . replace ( /<div class="modact">.+(分类|移动|合并|关闭|提升|限时高亮|加入精华|审核通过)<\/a><\/div>/g , '' ) ; return html ; }