hi so I can't change the value of classname, as it only changes the view not truly change I tried using
var search = document.getElementsByClassName("r-30o5oe");
var s = search[0];
s.value = "0.1";
https://imgur.com/a/FJTvyPU I've tried using setattribute but it never worked with getelementsbyclassname for me, only works with id (which that element doesn't have), and if I tried using
var search = document.getElementsByClassName("r-30o5oe")[0];
search.setAttribute("value", "2")
but it says undefined I just wanna change the value of twitter's search by console by classname its weird if I tried doing that to this page it works tho
document.getElementsByClassName("s-input__search")[0].value = "0.1"
any solutions?