D
D
Dimazsever2014-12-22 13:44:24
Google Chrome
Dimazsever, 2014-12-22 13:44:24

How to update content script without reloading the page?

In the console, in the source tab, there is also a sub-tab Content scripts. You can edit the code, but how can you update the script later? Reloading the page every time is somehow not very good.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andr'U Sender, 2014-12-22
@AndruSender

So, well, a bike, of course, but still, look, when you corrected the inline script, give it the attribute id = "INLINE_SCRIPT", apply the changes, then write in the console:
eval(document.getElementById("INLINE_SCRIPT").innerHTML)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question