-
Notifications
You must be signed in to change notification settings - Fork 312
Open
Description
Problem Description
// ==UserScript==
// @name GM_addElement test
// @match *://*/*
// @grant GM_addElement
// ==/UserScript==
console.log('image insertion begin');
await new Promise((resolve, reject) => {
GM_addElement(document.body, 'img', {
src: 'https://www.tampermonkey.net/favicon.ico',
onload: resolve,
onerror: reject
});
console.log('image insertion end');
});
console.log('image loaded'); // never firedReproduction Steps
ScriptCat Version
1.2.x & 1.3.x
Operating System and Browser Information
Additional Information (Optional)
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels