Skip to content

Instantly share code, notes, and snippets.

@brianpow
Last active August 29, 2015 14:19
Show Gist options
  • Select an option

  • Save brianpow/26bfef2d4b87379ac72d to your computer and use it in GitHub Desktop.

Select an option

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.
// ==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