Strip empty paragraphs from works on Archive of Our Own
< 脚本AO3: strip empty paragraphs的反馈
Hey, just FYI, I managed to fix the comment bug on my own.
You just have to define this variable first
var text = document.getElementById("chapters");
and then use it to define the paragraph variable
var paragraphs = text.getElementsByTagName("p");
The bookmarks and button to view comments are visible now but not the button to submit my own comment. Is there a way to fix this?
Problem - Bookmarks and Comments
The script is detecting the "submit" buttons on the site as empty paragraphs, and deleting them. This means I can't bookmark or comment anything without turning the script off and on again. Could you make sure that the paragraph deletion only applies to the main work body?