How to parse from two sites at the same time?

  • 0
    I use UserScript Tampermonkey and I wrote one site in match, and where I should stick another site so that the script knows what to work with. Or maybe I need to implement two functions in one script and use the capabilities of js to somehow register a path for them to different sites.
    JavaScript Isabella Huffman, Mar 25, 2019

  • 1 Answers
  • 0
    Just stick in another @match , the number is unlimited.

    In the script itself, obviously you can tell them apart by locatoin.hostname .
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!