userscripts icon indicating copy to clipboard operation
userscripts copied to clipboard

If the xx.user.js page has injected dom, userscripts extension won't show the 'Usersciprt Detected' message

Open maggch97 opened this issue 3 years ago • 3 comments

035ED8F7B55D951DA46AE4B5272473DC

maggch97 avatar Jul 28 '22 12:07 maggch97

@maggch97

Could you provide the page url?

quoid avatar Jul 28 '22 12:07 quoid

@maggch97

Could you provide the page url?

https://2gether.video/release/extension.user.js . If I install this script and reopen this script. The userscripts won't show 'Usersciprt Detected'

maggch97 avatar Jul 28 '22 15:07 maggch97

The issue here was that the userscriptInstall functionality was checking all frames, when it should only be checking the top frame.

Also updated it to get the contents of the code <pre> tag rather than the entire document.body.innerText in case additional dom elements are injected on to the page.

quoid avatar Aug 10 '22 12:08 quoid