Greasy Fork is available in English.

議論 » 開発

Change inlined JavaScript before it's executed

§
投稿日: 2024/04/30

Hello, is it possible to modify JS embedded to hosted document before it's executed?
I was able to trigger the script element at document-end event and change it's source, but the code executed later was the original content. I guess the script is already compiled at document-end, so this needs a different method. At document-body event, the script is not yet contained in the page structure.

@run-at document-start

§
投稿日: 2024/05/04

this is possible

返信を投稿

返信を投稿するにはログインしてください。