Doesn’t add it to the comment box just under the post if you’re opening it from a direct link
I think this is because the mutation observer watches for changes after it’s added, and a direct link loads the page with the comment box directly so it isn’t caught by the observer which is added after the loading is done (whereas loading from the front page doesn’t reload the document and therefore the observer is watching as the comment box is added). Should be fixable if you run the code to find the comment box and add the signature once after adding the mutation observer at the end of your snippet.
Yeah, I was going to suggest that. Probably need to turn that code which adds the sig into a function, that way you can call it after the observer but also inside the observer. Then if you discover any other time you want it to happen (like if the text box is focused and it’s still empty) you can call it again.
I think this is because the mutation observer watches for changes after it’s added, and a direct link loads the page with the comment box directly so it isn’t caught by the observer which is added after the loading is done (whereas loading from the front page doesn’t reload the document and therefore the observer is watching as the comment box is added). Should be fixable if you run the code to find the comment box and add the signature once after adding the mutation observer at the end of your snippet.
Yeah, I was going to suggest that. Probably need to turn that code which adds the sig into a function, that way you can call it after the observer but also inside the observer. Then if you discover any other time you want it to happen (like if the text box is focused and it’s still empty) you can call it again.
Yup. I was thinking to do that.
ⓘ This user is suspected of being a cat. Please report any suspicious behavior.