Is there a way to automatically edit specific lines on websites right after they load? Specifically, I want to change <div class="1">
to
<div class="1" style="display:none">
, and <div class="2" style="display:none">
to <div class="2">
. The lines to be edited will be the same across multiple sites, but the exact location may vary so it would require a search. Whether this editing occurs before or after the page loads is not a concern for me. I have looked into tools like Tampermonkey and Stylus, but I'm open to other solutions as well.