Be Gone, Ye Modals!
Modals. You've seen 'em, you've closed 'em. Sometimes you can't even find out how to close them, or maybe they're so insideous, they're uncloseable. Well, until now.
Close those modals. On your own terms.
Because this modal sucks, and you don't. In fact, you probably rock, so hard that you don't have time to be closing them modals.
But how does it work?
Did you know it costs $5 to get a Google Developer Account, and submit an extension to the Chrome Web Store? I didn't. In the meantime, this is how you can get this modal-closing goodness in your own Chrome browser without having to wait for me to save me pennies:
- Clone this repository
yarn install --prod
(leave off the--prod
if you want to run tests and the like)yarn build
; this should produce adist/
directory with amanifest.json
and other such goodies- Go to your extensions
- Toggle "Developer mode" on the top right
- Click on the "Load unpacked" button that just showed up
- Navigate to and select the
dist/
directory you just built in step 3 - This is the hard part. Navigate to a website with a modal window. It'll be painful, but it's gonna be ok.
- Click that new shiny icon in your Chrome toolbar, and watch that modal window disappear!
...This is not terrible. Or maybe it is.
❤️ feedback. Doesn't work on some site? Got some ideas? Create an issue on GitHub, or yell at me on the internets.