/* QX: ^https:\/\/api\.sololearn\.com\/(authenticateDevice|challenge\/GetContestFeed|Profile\/GetProfile)$ url script-response-body sololearn.js Surge: http-response ^https:\/\/api\.sololearn\.com\/(authenticateDevice|challenge\/GetContestFeed|Profile\/GetProfile)$ requires-body=1,max-size=0,script-path=resources/js/sololearn.js hostname=api.sololearn.com */ let url=$request.url; let obj=JSON.parse($response.body); if (url.endsWith('authenticateDevice')) { obj.user.badge="platinum|platinum_mod|pro"; obj.user.accessLevel=65520; obj.user.isPro=true; obj.user.proExpireDate="2099-01-31T00:00:00"; } if (url.endsWith('GetContestFeed')) { let num=obj.feed.length; if (num==0) { $done({}); } else { for (var i=0;i