Last active
January 10, 2025 22:38
-
-
Save angusdev/8724a1cb2dc23bfce508d15722ebaa4e to your computer and use it in GitHub Desktop.
Make a printable version of tennis draw in Wiki
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
| e=document.querySelector('#Top_half').parentNode.nextSibling;while(e.previousSibling)e.parentNode.removeChild(e.previousSibling); | |
| e=document.querySelector('#bodyContent');while(e.previousSibling)e.parentNode.removeChild(e.previousSibling); | |
| e=document.querySelector('.mw-page-container');while(e.previousSibling)e.parentNode.removeChild(e.previousSibling); | |
| e=document.querySelector('#mw-content-text');while(e.previousSibling)e.parentNode.removeChild(e.previousSibling); | |
| e=document.querySelector('.mw-content-container');while(e.previousSibling)e.parentNode.removeChild(e.previousSibling); | |
| e=document.querySelectorAll('#Seeds,#Seeded_players').forEach(e=>{e=e.parentNode.previousSibling;while(e.nextSibling && (!e.nextSibling.querySelector||!e.nextSibling.querySelector('#Top_half')))e.parentNode.removeChild(e.nextSibling)}); | |
| document.querySelectorAll('.mw-editsection,#catlinks,.mw-footer-container,.vector-settings').forEach(e=>e.parentNode.removeChild(e)); | |
| document.querySelectorAll('#Section_3,#Bottom_half,#Section_7').forEach(e=>e.parentNode.style.pageBreakBefore='always'); | |
| document.querySelectorAll('.printfooter').forEach(e=>e.parentNode.removeChild(e)) |
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
| e=document.querySelector('h3:has(#Top_half)');while(e.previousSibling)e.parentNode.removeChild(e.previousSibling); | |
| e=document.querySelector('#bodyContent');while(e.previousSibling)e.parentNode.removeChild(e.previousSibling); | |
| e=document.querySelector('.mw-page-container');while(e.previousSibling)e.parentNode.removeChild(e.previousSibling); | |
| e=document.querySelector('#mw-content-text');while(e.previousSibling)e.parentNode.removeChild(e.previousSibling); | |
| e=document.querySelector('.mw-content-container');while(e.previousSibling)e.parentNode.removeChild(e.previousSibling); | |
| e=document.querySelector('h2:has(#Seeded_players)').previousSibling;while(e.nextSibling)e.parentNode.removeChild(e.nextSibling); | |
| document.querySelectorAll('.mw-editsection,#catlinks,.mw-footer-container,.vector-settings').forEach(e=>e.parentNode.removeChild(e)); | |
| document.querySelectorAll('h4:has(#Section_3),h3:has(#Bottom_half),h4:has(#Section_7)').forEach(e=>e.style.pageBreakBefore='always'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment