I wrote an extension that selects links on the page, but the problem is that it works right away.
The question is: can I make it look for links when I click a button in popup.html ?
File: contentscript.js
$(function(){ $('a').each(function() { var a = new RegExp('/' + window.location.host + '/'); if (!a.test(this.href)) { // тут делаем что-то } }); })
#button, of course, is schematically clear, but still. - Regent