Is there any way to make chrome or any other browser run a snippet right after a page reloads? Thanks!
Press Control + Shift + P (Windows/Linux) or Command + Shift + P (Mac) to open the Command Menu. Start typing Snippet , select Create new snippet, then press Enter to run the command.
Pieces for Chrome makes it incredibly easy to save snippets from the web. To save, simply hover over any code block on a webpage and click the Pieces buttons to save the code or generate a link to share that snippet with others.
its stored here C:\Users\Webdev\AppData\Local\Google\Chrome\User Data\Default\Local Storage\chrome-devtools_devtools_0. localstorage.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With