Skip to content

Instantly share code, notes, and snippets.

@amcgowanca
Created June 25, 2018 13:00
Show Gist options
  • Save amcgowanca/8b16273d7af01e4ec1f7f0a8420bf9c9 to your computer and use it in GitHub Desktop.
Save amcgowanca/8b16273d7af01e4ec1f7f0a8420bf9c9 to your computer and use it in GitHub Desktop.
Helper script for ProsperWorks bugging display behaviour in new Gmail UI
(function (document) {
function updateZIndexValue() {
var elements = document.getElementsByClassName('PWExtensionFrame');
if (elements.length <= 0) {
setTimeout(updateZIndexValue, 500);
console.log('ProsperWorks plugin does not appear initialized yet, waiting...');
return;
}
for (var i = 0; i < elements.length; i++) {
elements[i].setAttribute('style', 'z-index:1000;');
}
console.log('ProsperWorks plugin has been initialized, z-index value updated. Thank god!');
};
updateZIndexValue();
})(document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment