A
A
Artem Blinov2017-05-18 22:06:05
JavaScript
Artem Blinov, 2017-05-18 22:06:05

How to implement a browser extension with interaction with the browser console and website api?

You need to create an extension for Opera, Chrome, Yandex, Safari, Firefox browsers, which was executed only on the pages of the shutterstock.com site and displayed keywords in the extension field taken from the page for copying to the user.
If this is the code

var array = [];
$('.btn-search-pill').each(function() {array.push($(this).text())});
array.join(', ');
send in the console, for example, on this page , then the site will return the keywords in response. And I want these words to be inserted into the extension field (when the user clicks on the extension icon in their panel), as well as a reload button for the extension.
How to implement this? How to reload an extension on a button?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question