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

fix sticky topbar query

This commit is contained in:
aqulu 2019-09-12 19:31:03 +09:00 committed by aqulu
parent 0e53dcb8a1
commit 17efb5f414

View File

@ -4,9 +4,15 @@
var makeReadable = function() {
// Un-position:fixed the top nav bar
var topNav = document.querySelector('.metabar.u-fixed');
var topNav = document.querySelector('nav.m');
if (topNav) {
topNav.classList.remove('u-fixed');
topNav.classList.remove('m');
}
// remove topbar spacing if present
var topNavSpacing = document.querySelector('nav + div.da');
if (topNavSpacing) {
topNavSpacing.remove();
}
// Remove the "Pardon the interruption" popup.
@ -77,7 +83,7 @@ var observer = new MutationObserver(function(mutations){
mutations.forEach(function(){
makeReadable();
shrinkHeaderImages();
});
});
});
var config = {attributes: true};