L
L
lightalex2016-12-13 21:20:18
JavaScript
lightalex, 2016-12-13 21:20:18

How to interact with native scripts from google extension?

Good day
There is a page with the following piece of script:

$J(window).on('scroll', function() {
  ...
});
$J(window).on('mousemove', function() {
  ...
});

Actually declaring events via JQuery
I have a browser extension that will include my scripts on the page
The question is how to trigger events?
I tried to trigger Nifiga from the included script, it
$(window).trigger('scroll');
didn’t work :(
Help, who knows!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2016-12-13
@lightalex

$("html, body").animate({scrollTop: someValue});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question