Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

146
Views
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?

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

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.

about 4 years ago · Juan Pablo Isaza Report

0

The simple soution to this is to use local Storage here as asked it helps to keep a record untill user itself don't flushes out the client's local Storage what you can do just open inspect elements and open Storage tab . Then there you need to open the add (plus symbol in the local Storage section ). So this section act as a storage section (small storage section upto 4MB (need o verify )) so what can be done here. You can add your function here by converting into an object as it stores only strings so need to convert that object into an String before putting . for this stringify method could also be used. To set values inside local Storage :- Once can use => localStorage.setItem('Inside ypur string that ypu want to set'); To fetch you can you use in the console or from your JS file => localStorage.getItem('name of your key') Basically localStorage keeps/store like it key-value pairs but in pairs Okay. Here we can use it like parse Method for this if needed to convert back to String . So now just checkour localStorage yourself your issue will be resolved .

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!