Created
June 25, 2018 13:00
-
-
Save amcgowanca/8b16273d7af01e4ec1f7f0a8420bf9c9 to your computer and use it in GitHub Desktop.
Helper script for ProsperWorks bugging display behaviour in new Gmail UI
This file contains hidden or 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
(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