Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
420 B
1
Indexable
Never
// ==UserScript==
// @name         Photopea Confirmation Blocker
// @version      0.1
// @include      http*://www.photopea.com/*
// @icon         https://www.google.com/s2/favicons?domain=photopea.com
// @grant        unsafeWindow
// @run-at       document-end
// ==/UserScript==

window.confirm = function (message) {
    if (!message.includes('advertisement')) {
        window.confirm(message);
    }
};