AO3: strip empty paragraphs

Strip empty paragraphs from works on Archive of Our Own

< 脚本 AO3: strip empty paragraphs 的反馈

提问 / 留言

§
发布于:2019-04-02

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?

§
发布于:2019-04-06

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");

§
发布于:2020-12-06

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?

发布留言

登录以发布留言。