How to trigger an on scroll event without scrolling

前端 未结 8 1208
梦毁少年i
梦毁少年i 2021-02-12 03:15

my Question is, how can i trigger (simulate or something esle) an on scroll event. In my special case I don\'t want to load all the Conservations in LinkedIn by scolling down al

8条回答
  •  清歌不尽
    2021-02-12 04:18

    A litle bit off topic:

    You dont need to use the dev tools just create a bookmark with the folowing "url"

        javascript:(function(){
            /*  Put your code here, e.g. the scrollng event  or add an 
               event listener to the current page or some other code*/
        })();
    

    when you click this bookmark, the cod will be executed, inside the current page's environment

提交回复
热议问题