Extract Gateway Keys From MercadoPago UI
It stores the keys for each subscription in the current page, you need to manually move through the pages and fire the script. At the end, all data will be in localstorage
gatewayKeys = [];
$('.card-box__go-detail').each(function () {
let href = this.href.replace('https://www.mercadopago.com.ar/subscriptions/detail?id=', '');
gatewayKey = href.split('&')[0];
gatewayKeys.push( gatewayKey );
});
// console.log('gatewayKeys', JSON.stringify(gatewayKeys));
window.localStorage.setItem('gatewayKeys', JSON.stringify( JSON.parse((window.localStorage.getItem('gatewayKeys') || '[]')).concat(gatewayKeys) ) )
gatewayKeysFromLs = JSON.parse(window.localStorage.getItem('gatewayKeys'));
// console.log('gatewayKeysFromLs', gatewayKeysFromLs);
console.log('gatewayKeysFromLs.length', gatewayKeysFromLs.length);