Skip to content

Instantly share code, notes, and snippets.

@tommcfarlin tommcfarlin/00-function-setup.js Secret
Last active Dec 8, 2017

Embed
What would you like to do?
[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
You can’t perform that action at this time.