1
0
mirror of https://github.com/thebaer/MMRA synced 2024-11-13 10:11:01 +00:00

Move .js-stickyFooter out of JS to CSS file

This commit is contained in:
Matt Baer 2018-04-10 12:22:06 -04:00
parent 563a0d6403
commit b35bd27301
2 changed files with 4 additions and 7 deletions

View File

@ -8,13 +8,8 @@ var makeReadable = function() {
if (topNav) {
topNav.classList.remove('u-fixed');
}
// Remove the footer
var getUpdatesBar = document.querySelector('.js-stickyFooter');
if (getUpdatesBar) {
getUpdatesBar.style.display = 'none';
}
// Load remaining styles
// Inject remaining styles
// This check makes sure the extension works on Chrome and Firefox.
if (typeof browser === 'undefined') {
browser = chrome;

View File

@ -2,6 +2,8 @@
* medium.css
* Contains default styles to inject into Medium publications.
*/
.postMeterBar, .openInAppButton {
.postMeterBar,
.openInAppButton,
.js-stickyFooter {
display: none;
}