Edit in JSFiddle

//=============================================================================
// SRD_ShakingText-Sphinx-WB_CSS.js
//=============================================================================

/*:
 * @plugindesc Intégration du plugin Sphinx-WB_CSS dans SRD_ShakingText
 * @author SumRndmDde/Sphinx
 *
 * @help
 * //==========================================================================
 * // Plugin : SRD_ShakingText-Sphinx-WB_CSS
 * // Date   : 14 janvier 2016
 * // Auteur : SumRndmDde (SRD_ShakingText) / Sphinx (Sphinx-WB_CSS)
 * //==========================================================================
 * 
 * Ce plugin dépend et est partagé sous les mêmes conditions que Sphinx-WB_CSS
 * c'est à dire sous licence Creative Commons CC BY 3.0
 * 
 * Pour utiliser ce plugin, vous devez également vous conformer aux conditions
 * d'utilisation de SumRndmDde (http://sumrndm.site/terms-of-use/)
 * 
 * Ce plugin permet simplement d'adapter le plugin SRD_ShakingText pour
 * permettre l'utilisation des deux plugins simultanément.
 * Il doit être placé immédiatement après le plugin de SumRndmDde
 *
 * Il ne définit aucune nouvelle commande.
 * 
 * Dépendances :
 *     - SRD_ShakingText de SumRndmDde
 *     - Sphinx-WB_CSS de Sphinx
 */

var SRD = SRD || {};
SRD.ShakingText = SRD.ShakingText || {};

(function(_) {
    var _Window_Message_processNormalCharacter = Window_Message.prototype.processNormalCharacter;
	Window_Message.prototype.processNormalCharacter = function(textState) {
		if(this.isShakingActive() && !this._checkWordWrapMode) {
			if(Imported.YEP_MessageCore && this.checkWordWrap(textState)) {
				return this.processNewLine(textState);
			}
            if(typeof textState.gradient == "object") {
                this.SphinxCSS_calculateGradientColor(textState);
            }
            this.contents.fontBold = textState.fontBold;
            this.contents.fontItalic = textState.fontItalic;
            var c = textState.text[textState.index++];
            var w = this.textWidth(c);
			var h = textState.height;
			this.createShakingCharacter(textState, c, w, h);
            if(textState.fontUnderline) {
                if(c == " " && textState.justifyWidth && textState.justifyWidth < 0) {
                    this.contents.fillRect(textState.x, textState.y + textState.height - 4, w + textState.justifyWidth, 1, this.contents.outlineColor);
                    this.contents.fillRect(textState.x, textState.y + textState.height - 3, w + textState.justifyWidth, 2, this.contents.textColor);
                    this.contents.fillRect(textState.x, textState.y + textState.height - 1, w + textState.justifyWidth, 1, this.contents.outlineColor);
                } else {
                    this.contents.fillRect(textState.x, textState.y + textState.height - 4, w, 1, this.contents.outlineColor);
                    this.contents.fillRect(textState.x, textState.y + textState.height - 3, w, 2, this.contents.textColor);
                    this.contents.fillRect(textState.x, textState.y + textState.height - 1, w, 1, this.contents.outlineColor);
                }
            }
            textState.x += w;
            if(c == " " && textState.justifyWidth) {
                if(textState.fontUnderline && textState.justifyWidth > 0) {
                    this.contents.fillRect(textState.x, textState.y + textState.height - 4, textState.justifyWidth, 1, this.contents.outlineColor);
                    this.contents.fillRect(textState.x, textState.y + textState.height - 3, textState.justifyWidth, 2, this.contents.textColor);
                    this.contents.fillRect(textState.x, textState.y + textState.height - 1, textState.justifyWidth, 1, this.contents.outlineColor);
                }
                textState.x += textState.justifyWidth;
            }
            if(textState.fontUnderline && textState.text.slice(textState.index) == "") {
                this.contents.fillRect(textState.x, textState.y + textState.height - 3, 1, 2, this.contents.outlineColor);
            }
		} else {
			_Window_Message_processNormalCharacter.call(this, textState);
		}
	};
})(SRD.ShakingText);