Answer the question
In order to leave comments, you need to log in
How to make instant launch js from chrome extension?
For example:
An extension that will replace the content of placeholder.
If you do this in background.js,
function first() {
var change = document.querySelector('input');
change.placeholder = 'Вася, пиши тут';
};
first();
function first() {
var change = document.querySelector('input');
change.placeholder = 'Вася, пиши тут';
};
window.addEventListener('load', first, false);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question