[~] Refactor

This commit is contained in:
Siarhei Siniak 2024-08-12 01:09:24 +03:00
parent f93b604c51
commit b3156b5093

@ -9,6 +9,8 @@
// @grant GM_listValues
// @grant GM_deleteValue
// @grant GM_deleteValues
// @grant GM_addStyle
// @grant GM_addElement
// @version 0.1
// @author Siarhei Siniak
// @license Unlicense
@ -168,9 +170,11 @@ div.online-fxreader-linkedin {
height: 10em;
}
`));
$('body').append($('<script>').html(`
console.log('started');
`));
GM_addElement('script', {
"textContent": `
console.log('started');
`
});
$(document.body).append(self.ui.root);
}
@ -220,12 +224,15 @@ console.log('started');
}
self.ui.root.append(entries);
$('body').append($('<script>').addClass('bridge').html(`
GM_addElement('script', {
"class": 'bridge',
"textContent": `
console.log('blah');
Array.from(
document.getElementsByClassName('bridge')
).forEach((o) => o.remove());
`));
`
});
}
}