Skip to content

Instantly share code, notes, and snippets.

@gecko655
Created April 25, 2018 10:51
Show Gist options
  • Save gecko655/8e4c29cf8f36c1eb7f4f044cc03173f5 to your computer and use it in GitHub Desktop.
Save gecko655/8e4c29cf8f36c1eb7f4f044cc03173f5 to your computer and use it in GitHub Desktop.
シャなんちゃらかんちゃらスでリセマラを高速化するやつ
(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