Skip to content

Instantly share code, notes, and snippets.

@austinginder
Last active April 10, 2023 01:09
Show Gist options
  • Save austinginder/2d07176beabddb8fbac1f54c60f313d6 to your computer and use it in GitHub Desktop.
Save austinginder/2d07176beabddb8fbac1f54c60f313d6 to your computer and use it in GitHub Desktop.
On Xero reconcile page, expand shortened descriptions back to full descriptions. Copy and paste into Chrome's DevTools. Solves https://productideas.xero.com/forums/939198-for-small-businesses/suggestions/45691177-reconciliation-include-more-reference-details-in
items = document.querySelectorAll('span[data-testid="notes"]')
items.forEach((item) => {
item.innerHTML = item.title
})
document.querySelector("body").addEventListener("click", evt => {
if ( event.target.classList.contains("okayButton") ) {
items = document.querySelectorAll('span[data-testid="notes"]')
items.forEach((item) => {
item.innerHTML = item.title
})
}
});
@austinginder
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment