Этот скрипт Tapermonkey найдёт <input id="myinput"> и установит его значение на newvalue.
how-to-set-value-of-input-in-tapermonkey-script.js
(function() {
'use strict';
document.querySelector("input#myinput").value = "newvalue";
})();Вам нужно будет добавить подходящий заголовок — часто лучше просто использовать шаблон по умолчанию и изменить только URL.
Check out similar posts by category:
JavaScript
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow