Running snippets in chrome after page reload
Asked Answered
R

1

16

Is there any way to make chrome or any other browser run a snippet right after a page reloads? Thanks!

Rathbone answered 20/2, 2016 at 21:52 Comment(1)
Bookmarklets(Javascript bookmarks) are an easier/faster way to run scripts on sites. But still, they have to be run manually.Zedekiah
U
17

Since Snippets at the moment cannot be referenced (and started) from your code, you are not able to simply run them, you have to select and run it via the DevTools interface.

But you can automatically run your own code with other browser extensions, eg. Tampermonkey/Greasemonkey. In this case the logic that is implemented in the required snippet should be put into a Tampermonkey script.

Unfrock answered 22/2, 2016 at 17:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.