Created
April 25, 2018 10:51
-
-
Save gecko655/8e4c29cf8f36c1eb7f4f044cc03173f5 to your computer and use it in GitHub Desktop.
シャなんちゃらかんちゃらスでリセマラを高速化するやつ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(JSON) { | |
| regex=/characterId/; | |
| var oldParse = JSON.parse; | |
| JSON.parse = function newParse(str) { | |
| if (str.match(regex)) { | |
| str = str.replace(/"isNew":true/g, '"isNew":false'); | |
| console.log(str); | |
| str = str.replace(/"rarity":4/g, '"rarity":2'); | |
| return oldParse(str); | |
| } | |
| return oldParse(str); | |
| } | |
| }(JSON)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment