3 ms·
There's a site I use that checks for membership only on the client side and I use requestly to spoof premium status. Just had to write a simple script like thi
by from 5y ago
There's a site I use that checks for membership only on the client side and I use requestly to spoof premium status. Just had to write a simple script like this to modify the response body of the request that gets membership status:
function modifyResponse(args) {
const {method, url, response, responseType, requestHeaders, requestData} = args;
const responseDataParsed = JSON.parse(response);
responseDataParsed.result.user.vip_end = "2030-06-11T14:16:20.000Z";
responseDataParsed.result.user.expire_in = "3573 days, 3 hours";
responseDataParsed.result.user.is_premium = true;
return JSON.stringify(responseDataParsed);
}
Very nice software.
- sachinjain 5y agoThis is clever. How was the experience with Modify API Response? Were you able to figure out everything on your own or Was there a learning curve?
- from 5y agoI wrote it over a year ago so I don't remember exactly but I think there was a template when you went to make a new script that made it easy. Had to google some things but I don't think it took me more than 15 minutes.
- sachinjain 5y agoFYI - We are adding a support for responseJSON in the arguments so you can just write the above code like this function modifyResponse(args) { const {method, url, response, responseType, requestHeaders, requestData, responseJSON} = args; responseJSON.result.user.vip_end = "2030-06-11T14:16:20.000Z"; responseJSON.result.user.expire_in = "3573 days, 3 hours"; responseJSON.result.user.is_premium = true; return responseJSON; }