mirror of
https://github.com/thebaer/MMRA
synced 2024-11-13 10:11:01 +00:00
Check for null dickbars before applying styles
This commit is contained in:
parent
2cfbf29054
commit
9d0d8e139b
@ -16,8 +16,14 @@ var makeReadable = function() {
|
||||
};
|
||||
|
||||
var hideDickbar = function() {
|
||||
document.querySelector('.js-postShareWidget').style.display = 'none';
|
||||
document.querySelector('footer > .container:first-child').style.display = 'none';
|
||||
var dickbar = document.querySelector('.js-postShareWidget');
|
||||
if (dickbar != null) {
|
||||
dickbar.style.display = 'none';
|
||||
}
|
||||
var footerDickbar = document.querySelector('footer > .container:first-child');
|
||||
if (footerDickbar != null) {
|
||||
footerDickbar.style.display = 'none';
|
||||
}
|
||||
};
|
||||
|
||||
var disableLazyLoading = function() {
|
||||
|
Loading…
Reference in New Issue
Block a user