URL and locale optimization for some Chinese websites. Original scripts: greasyfork.org/scripts/410244 & greasyfork.org/scripts/418430.
黑田光 - 萌百mzh页面自动跳转桌面版,b站/s域名跳转正常域名
Authors of this script are Kennnnnnji, 黑田光 & willyiam84, if needed to credit under the MIT license.
I really can’t stand Moegirlpedia's
caveman-era slow loading speedandpop-ups as if I'm visiting a pirated porn site, so this idea came into my mind.It also optimizes for Chinese Wikipedia and Bangumi (correcting mobile UI and unwanted locales from Google results), and inherits some of the redirect rules from the original script.
In some functions, this script works by forcing the third-level domain
wuu/zh-yue/zh-classicalintozh. It sometimes might turn into a catastrophe, so you may comment that part out.Note that the redirect does affect the loading speed of related sites.
Moegirlpedia 萌娘百科: zh.moegirl.org.cn / zh.moegirl.tw ==> Mirror moegirl.icu | Mobile ==> Desktop | Remove language variants in URLs (e.g. zh-hans, zh-hk)
Hupu BBS 虎扑社区: Mobile ==> Desktop
Baidu Tieba 百度贴吧: jump2.bdimg.com/p/ ==> tieba.baidu.com/p/
Bilibili (officially modified; I can't handle this)
NGA:
ngabbs.com / / yues.org (domain broken)nga.178.com ==> bbs.nga.cn
Chinese Wikipedia: Redirect from Wu/Yue/Classical Chinese Wikipedia (Sinitic Wikipedias with distinguishing domains) | Remove Chinese variants in URLs
Bangumi: bangumi.tv / chii.in ==> bgm.tv | “超展开” i.e. forum pages: Mobile ==> Desktop
As a noob I barely have JavaScript experience — please kindly let me know in case of issues or suggestions(* /ω\ *)