如何在 Tapermonkey 脚本中设置 input 的值
此 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