64mi.reader.pinyin

将拼音转换为汉字

Ajankohdalta 18.8.2014. Katso uusin versio.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        64mi.reader.pinyin
// @namespace   clumsyman
// @description 将拼音转换为汉字
// @include     http://www.64mi.com/book/*
// @version     1
// @grant       none
// ==/UserScript==
var hz2py = {
    "安慰": /ān wèi /g,
    "办法": /bàn fǎ /g,
    "帮助": /bāng zhù /g,
    "宝贝": /bǎo bèi /g,
    "表现": /biǎo xiàn /g,
    "猜测": /cāi cè /g,
    "灿烂": /càn làn /g,
    "产业": /chǎn yè /g,
    "超越": /chāo yuè /g,
    "沉默": /chén mò /g,
    "答案": /dá àn /g,
    "打断": /dǎ duàn /g,
    "打算": /dǎ suàn /g,
    "担心": /dān xīn /g,
    "对付": /duì fù /g,
    "反应": /fǎn yīng /g,
    "废话": /fèi huà /g,
    "高兴": /gāo xìng/g, //
    "故意": /gù yì /g,
    "关系": /guān xì /g,
    "哈哈": /hā hā/g,
    "呵呵": /hē hē /g,
    "合适": /hé shì /g,
    "合作": /hé zuò /g,
    "恢复": /huī fù /g,
    "回去": /huí qù /g,
    "激动": /jī dòng /g,
    "继续": /jì xù /g,
    "见面": /jiàn miàn /g,
    "交待": /jiāo dài /g,
    "教训": /jiāo xùn /g,
    "脚步": /jiǎo bù /g,
    "结束": /jié shù /g,
    "尽快": /jìn kuài /g,
    "经过": /jīng guò /g,
    "救命": /jiù mìng /g,
    "就是": /jiù shì /g,
    "拒绝": /jù jué /g,
    "考虑": /kǎo lǜ /g,
    "空气": /kōng qì /g,
    "愧疚": /kuì jiù /g,
    "冷漠": /lěng mò /g,
    "立刻": /lì kè /g,
    "力气": /lì qì /g,
    "利用": /lì yòng/g, //
    "凌乱": /líng luàn /g,
    "模样": /mó yàng /g,
    "脑袋": /nǎo dài /g,
    "亲切": /qīn qiē /g,
    "确定": /què dìng /g,
    "胜利": /shèng lì /g,
    "实际": /shí jì /g,
    "释放": /shì fàng /g,
    "收入": /shōu rù /g,
    "谈话": /tán huà /g,
    "提议": /tí yì /g,
    "痛快": /tòng kuài /g,
    "危害": /wēi hài /g,
    "味道": /wèi dào /g,
    "位置": /wèi zhì /g,
    "无奈": /wú nài /g,
    "笑话": /xiào huà /g,
    "兄弟": /xiōng dì /g,
    "一阵": /yī zhèn /g,
    "疑惑": /yí huò /g,
    "疑问": /yí wèn /g,
    "意外": /yì wài /g,
    "印象": /yìn xiàng /g,
    "优秀": /yōu xiù /g,
    "缘故": /yuán gù /g,
    "这个": /zhè gè /g,
    "主动": /zhǔ dòng /g,
    "准备": /zhǔn bèi /g,
    "左右": /zuǒ yòu /g,
}

var elem = document.getElementById("contents");
if (elem) {
    var text = elem.innerHTML;
    for (var hz in hz2py) {
        var py = hz2py[hz];
        text = text.replace(py, hz);
    }
    elem.innerHTML = text;
}