-2

My js file contains some userid and password.I want to set as a prompt for new tab.

  • There are certain user extensions that will execute arbitrary scripts in the browser. For creating one yourself you can see - https://stackoverflow.com/questions/29067198/trigger-chrome-extension-on-new-tab-open – pkanev Jun 09 '17 at 06:04

2 Answers2

0

You need something like tampermonkey

ponury-kostek
  • 7,824
  • 4
  • 23
  • 31
0

You can use bookmark,

press ctrl+D in the name section, javascript: #your script

refer this Bookmarklet

I used to load script in this way for eg: Tatkal ticket booking, etc...

Mohideen bin Mohammed
  • 18,813
  • 10
  • 112
  • 118