Last active
October 3, 2024 13:08
-
-
Save youcune/8e3335c5d13e8b5e09714a5fc22b3682 to your computer and use it in GitHub Desktop.
Ad Blockerを使うなというような、画面の前面を支配するモーダル的なものを消すBookmarklet(そしてスクロールできなくされていたらそれもできるようにします)。
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
javascript:var maxZIndex=-Infinity;var maxZIndexElement=null;document.querySelectorAll('div').forEach(element=>{const zIndex=window.getComputedStyle(element).zIndex;if(!isNaN(zIndex)&&zIndex>maxZIndex){maxZIndex=zIndex;maxZIndexElement=element;}});if(maxZIndexElement){maxZIndexElement.remove();}document.body.style.setProperty('overflow','auto','important');void(0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment