Skip to content

Instantly share code, notes, and snippets.

@tommcfarlin
Last active December 8, 2017 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommcfarlin/7102c06915c5c55421d42778be7954e1 to your computer and use it in GitHub Desktop.
Save tommcfarlin/7102c06915c5c55421d42778be7954e1 to your computer and use it in GitHub Desktop.
[JavaScript] Hiding Browser Extension Overlays
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');
}
}
if ( -1 !== $(this).attr('style').indexOf('data:image/svg+xml;') ) {
if ('hidden' !== $(this).css('visibility')) {
$(this).css('visibility', 'hidden');
}
} else {
$(this).css('visibility', 'visible');
}
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