Skip to content

Instantly share code, notes, and snippets.

@4lessandrodev
Created April 13, 2022 14:29
Show Gist options
  • Save 4lessandrodev/99f13b3bf37d9c08f4d2b7f52bf3d05e to your computer and use it in GitHub Desktop.
Save 4lessandrodev/99f13b3bf37d9c08f4d2b7f52bf3d05e to your computer and use it in GitHub Desktop.
// copy this script and paste on your console
var values = document.querySelectorAll('.flat-view-text-preserve');
var results = [];
values.forEach((value, i)=> { if(i % 2 === 0){ results.push({ [value.innerText]: values[i+1].innerText })} });
var textResult = '';
results.forEach((val) => textResult +=`${Object.keys(val)}=${Object.values(val)}\n`);
console.log(textResult);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment