Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Save custom javascript function for Windows Chrome

How can I save a custom javascript function so that I can use it anytime on Chrome console even after I reboot Windows?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

In the developer console, you can go to the Sources tab, and then to the Snippets subtab. Press + New snippet and then type in the code you want and save it.

You can now open and run the snippet whenever you want by right clicking on it and pressing Run.

enter image description here

If this is a function you’d want to run when going to a certain page or website, you might consider using a userscript instead – they’re much more flexible for running your own custom JavaScript on pages, and can run automatically on pageload, or on the click of a button, and so on.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading