Last active
February 8, 2021 04:35
-
-
Save hugodahl/717ff0d3f71c0ad91abd23ae47074a3a to your computer and use it in GitHub Desktop.
Making Amazon Parents Dashboard Reading Log Legible
This file contains 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
let newStyle = document.createElement('style'); | |
newStyle.setAttribute('type', 'text/css'); | |
newStyle.textContent = '#pd-nav { display: none; } #pd-site-wrapper .pd-margin-top { margin-top: 2px; } #pd-site-wrapper .pd-margin-bottom { margin-bottom: 2px; } .rv-xy-plot {display: none;} .css-16a1pix > * { padding: 0px; margin: 0px !important; } .category-bar { display: none; } .activity-detail-card { background-image: none !important; } .css-1ngfmhc { display: none; } .activity-list-item { height: auto; } .css-16e2ufj {display: none; } .full-day-block { page-break-before: auto; page-break-inside: avoid; border: 2px solid black; margin: 5px; } .full-day-block * { page-break-before: avoid; page-break-after: auto; page-breeak-inside: avoid; } .css-17x129u { height: auto; } ' | |
document.head.appendChild(newStyle); | |
let dayBlocks = document.getElementsByClassName('activity-day-header'); | |
dayBlocks.forEach( element => { let elem = element.parentElement; elem.classList.add('full-day-block');} ); |
This file contains 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 newStyle=document.createElement("style");newStyle.setAttribute("type","text/css"),newStyle.textContent="#pd-nav { display: none; } #pd-site-wrapper .pd-margin-top { margin-top: 2px; } #pd-site-wrapper .pd-margin-bottom { margin-bottom: 2px; } .rv-xy-plot {display: none;} .css-16a1pix > * { padding: 0px; margin: 0px !important; } .category-bar { display: none; } .activity-detail-card { background-image: none !important; } .css-1ngfmhc { display: none; } .activity-list-item { height: auto; } .css-16e2ufj {display: none; } .full-day-block { page-break-before: auto; page-break-inside: avoid; border: 2px solid black; margin: 5px; } .full-day-block * { page-break-before: avoid; page-break-after: auto; page-breeak-inside: avoid; } .css-17x129u { height: auto; } ",document.head.appendChild(newStyle);let dayBlocks=document.getElementsByClassName("activity-day-header");dayBlocks.forEach((e=>{e.parentElement.classList.add("full-day-block")})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment