2018-10-16 23:03:04 +02:00
|
|
|
// ---------------------------------
|
|
|
|
|
// Content script to be run on pages
|
|
|
|
|
// ---------------------------------
|
2018-10-09 18:18:42 +02:00
|
|
|
|
2018-10-16 23:03:04 +02:00
|
|
|
(function() {
|
|
|
|
|
// Only run this script once
|
|
|
|
|
if (window.hasRun) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
window.hasRun = true;
|
|
|
|
|
|
|
|
|
|
// Search for all text areas
|
|
|
|
|
document.querySelectorAll("textarea").forEach(function(textarea) {
|
|
|
|
|
// Do something with it...
|
|
|
|
|
console.log(textarea);
|
|
|
|
|
textarea.style.border = "2px solid red";
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
})();
|