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:
parent
0e53dcb8a1
commit
17efb5f414
12
content.js
12
content.js
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user