Last active
August 29, 2015 14:19
-
-
Save brianpow/26bfef2d4b87379ac72d to your computer and use it in GitHub Desktop.
Redirect all showModalDialog function call to open (modeless dialog), which allows content copying.
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
| // ==UserScript== | |
| // @name No Modal Dialog | |
| // @namespace com.brian | |
| // @description Redirect all showModalDialog function call to open (modeless dialog), which allows content copying. | |
| // @version 1 | |
| // @include * | |
| // @run-at document-start | |
| // @grant none | |
| // ==/UserScript== | |
| showModalDialog = window.showModalDialog = open | |
| for (var i = 0; i < window.frames.length; i++) | |
| { | |
| window.frames[i].showModalDialog = open; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment