I've couple of hundred tabs where I want to invoke JavaScript (like clicking on the element and submitting the form).

Normally you can copy & paste the code into address bar for each tab, like:


but even this doesn't work in Chrome.

Is there any web browser extension (for Chrome or Firefox) to automate this process by executing the JavaScript code once, but for multiple tabs at the same time?

  • Tampermonkey may help, there was already the answer about it, but it was removed (probably too short), custom-javascript I think may work as well. If you post as answer with some description, it would be great. – kenorb Jul 24 '16 at 11:29
  • @kenorb Do you mean custom-javascript-for-web? – Nemo Jul 19 '19 at 7:32
  • @Nemo Looks good, can it run on selected tabs at once? – kenorb Jul 19 '19 at 15:45
  • 1
    @kenorb No idea! Their instructions seem to indicate that the JS is unconditionally launched for a certain domain. I ended up using Tampermonkey for my use case. – Nemo Jul 25 '19 at 12:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.