diff --git a/src/main.js b/src/main.js index 2364182..7eb25b0 100644 --- a/src/main.js +++ b/src/main.js @@ -48,7 +48,7 @@ var ehDownloadRegex = { pagesRange: /^(!?\d*(-\d*(\/\d+)?)?\s*,\s*)*!?\d*(-\d*(\/\d+)?)?$/, pagesURL: /(?:(\d+)<\/strong> towards a limit of (\d+)<\/strong>/, + imageLimits: /You are currently at ([\d,]+)<\/strong> towards.*?limit of ([\d,]+)<\/strong>/, pagesLength: /(\d+)<\/a>.+?<\/table>/, IPBanExpires: /The ban expires in \d+ hours?( and \d+ minutes?)?/, donatorPower: /
Donations<\/td>([+-]?[\d\.]+)<\/td>/, @@ -2656,8 +2656,8 @@ function loadImageLimits(forced, host){ else { var data = responseText.match(ehDownloadRegex.imageLimits); if (!data || data.length < 3) return; - preData.cur = data[1]; - preData.total = data[2]; + preData.cur = +data[1].replace(/,/g, ''); + preData.total = +data[2].replace(/,/g, ''); var donatorPower = responseText.match(ehDownloadRegex.donatorPower); if (!donatorPower || donatorPower.length < 2) return;