How can I get greasemonkey to call a function on a page after it loads

前端 未结 3 1951
天涯浪人
天涯浪人 2021-01-31 17:51

I have a very simple greasemonkey script that I want to call an already existing javascript function on the page. I\'ve read the documentation and nothing seems to work

3条回答
  •  再見小時候
    2021-01-31 17:55

    Try using: unsafeWindow.myFunction();

    More details and info - http://wiki.greasespot.net/UnsafeWindow

提交回复
热议问题