Last active
June 3, 2017 17:21
-
-
Save fdaciuk/7b849b11ffe2262e703944029c65bf5c to your computer and use it in GitHub Desktop.
Clear Metro Lyrics interface
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
// Just run it on console, inside metrolyrics.com page | |
function $ (element) { | |
return document.querySelector(element) | |
} | |
function $$ (element) { | |
return document.querySelectorAll(element) | |
} | |
const hide = [ | |
'.view', | |
'.js-sd-middle-disc', | |
'#lyrics #lyrics-main .lyrics-top', | |
'#lyrics .artist-header', | |
'.js-sponsor-wrapper', | |
'.page-header .header-top', | |
'#lyrics #lyrics-main .lyrics .writers', | |
'.lyrics-bottom', | |
'#lyrics #lyrics-main .lyrics .lyrics-footer', | |
'#lyrics #lyrics-main .right-panel', | |
'.page-footer', | |
'.bottom-ad', | |
'#lyrics #lyrics-main .lyrics .intro' | |
].forEach((el) => $$(el).forEach((e) => e.style.display = 'none')) | |
const fullWidth = [ | |
'#lyrics #lyrics-main .lyrics', | |
'#lyrics #lyrics-main .left-panel', | |
'#lyrics #lyrics-main' | |
].forEach((el) => $$(el).forEach((e) => e.style.width = '100%')) | |
var skin = $('.page-header+#mantle_skin').style | |
skin.top = '0' | |
skin.padding = '0' | |
var st = $('#lyrics #lyrics-main .lyrics .lyrics-body').style | |
st.columnWidth = '266px' | |
st.columnGap = '60px' | |
st.fontSize = '0.8em' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment