Συζητήσεις » Ανάπτυξη

Change inlined JavaScript before it's executed

§
Δημοσιεύτηκε: 30/04/2024

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.

§
Δημοσιεύτηκε: 30/04/2024

@run-at document-start

§
Δημοσιεύτηκε: 04/05/2024

this is possible

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.