public
Last active

Overwrites alert()

  • Download Gist
alert-killer-test.user.js
JavaScript
1 2 3 4 5 6 7 8 9 10
// ==UserScript==
// @id alert-killer-test@erikvold.com
// @name Overwrite Alert
// @description Overwrites alert()
// @include *
// @author Erik Vold
// @run-at document-start
// ==/UserScript==
 
unsafeWindow.alert = function(){};

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.