0

I have a .js file and I want to use it on some webpage (I am not developing this script for website, I just want to use my script on company's webpage). Look, it works like an extension very well, but I am looking for a way to launch my .js in browser console. Is it even possible to do this? I tried (intuitively) to import my file through Developer Tools – Sources – Filesystem and use it, but it's not working. Debugger is cursing, and the script is not working. Or it should be working and webpage has some kind of 'anti-cheat'? P.S.: No, I can't just copy-paste the code into the console.

  • 1
    Possible duplicate of [How to include JavaScript file or library in Chrome console?](https://stackoverflow.com/questions/5282228/how-to-include-javascript-file-or-library-in-chrome-console) – BrunoT Apr 15 '22 at 10:53

1 Answers1

0

Use tamper monkey or any other user script injector

Konrad
  • 21,590
  • 4
  • 28
  • 64