-
-
Save tommcfarlin/7102c06915c5c55421d42778be7954e1 to your computer and use it in GitHub Desktop.
[JavaScript] Hiding Browser Extension Overlays
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
var hideExtensions = function() { | |
$('body') | |
.children('span') | |
.each(function() { | |
}); | |
}; |
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
if ( -1 !== $(this).attr('style').indexOf('data:image/svg+xml;') ) { | |
if ('hidden' !== $(this).css('visibility')) { | |
$(this).css('visibility', 'hidden'); | |
} | |
} |
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
if ( -1 !== $(this).attr('style').indexOf('data:image/svg+xml;') ) { | |
if ('hidden' !== $(this).css('visibility')) { | |
$(this).css('visibility', 'hidden'); | |
} | |
} else { | |
$(this).css('visibility', 'visible'); | |
} |
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
var hideExtensions = function() { | |
$('body') | |
.children('span') | |
.each(function() { | |
if ( -1 !== $(this).attr('style').indexOf('data:image/svg+xml;') ) { | |
if ('hidden' !== $(this).css('visibility')) { | |
$(this).css('visibility', 'hidden'); | |
} | |
} else { | |
$(this).css('visibility', 'visible'); | |
} | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment