From dcd3a89153ea747e1ce8569bbc95a43010faad2e Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Mon, 26 Jan 2015 00:18:14 +0100 Subject: Improve konami --- public/javascripts/cheat.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'public/javascripts') diff --git a/public/javascripts/cheat.js b/public/javascripts/cheat.js index 863e53a..242dd79 100644 --- a/public/javascripts/cheat.js +++ b/public/javascripts/cheat.js @@ -10,6 +10,10 @@ new Konami(function () { // play nice soundtrack (new Audio('/assets/medias/sims2-university-theme.ogg')).play(); + // substitute currency symbols with § + var currencySymbols = /[\$\xA2-\xA5\u058F\u060B\u09F2\u09F3\u09FB\u0AF1\u0BF9\u0E3F\u17DB\u20A0-\u20BD\uA838\uFDFC\uFE69\uFF04\uFFE0\uFFE1\uFFE5\uFFE6]/; + document.body.innerHTML = document.body.innerHTML.replace(currencySymbols, "§"); + // display cheat console var form = document.createElement('form'); form.classList.add('cheat-form'); -- cgit v1.2.3