for desktop user
- install firefox plug in "greademonkey"
- open 乱码 page
- click on plug in monkey icon on the plug in area on top of ur browser.
- select "new user script"
- paste following and close edit (save is automatic)
------------------------------------------------------------------
// for 'bbs.wforum.com/wmf/bbsviewer.php' only
if (location.href.includes('bbs.wforum.com/wmf/bbsviewer.php')) {
var iHTML = document.body.innerHTML
iHTML = iHTML
.replace(
/<pre>/ig,
''
)
.replace(
/</pre>(?!.*</pre>)/s, ''
)
.replace(
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">', ''
)
.replace(
'<html xmlns="https://www.w3.org/1999/xhtml">', ''
)
.replace(
'<head>', ''
)
.replace(
'</head>', ''
)
.replace(
'&nbsp;', ' '
)
.replace(/<(.*?)>/g, "<$1>")
console.log(iHTML)
document.body.innerHTML = iHTML
}