Created
December 15, 2021 13:27
-
-
Save pixelthing/b3a9e86bed1f39ee89316cb65b0a909a to your computer and use it in GitHub Desktop.
Browser favelet to rewrite all values in a GDS dashboard to 999.9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(() => {let allValues = document.querySelectorAll('.valueLabel,.barCell span,.cell-value, .data-cell, .compareLabel, .cell:not(.barCell)');allValues.forEach((el) => { let content = el.innerText; let contentArray = content.split(''); let contentArray2 = contentArray.map(letter => {return (Number.isNaN(parseInt(letter)) ? letter : %279%27)}); let content2 = contentArray2.join(%27%27); if (content !== content2) { let elInner = el.querySelector(%27span%27); if (elInner) { elInner.innerText = content2; } else { el.innerText = content2; } }})})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment