AO3: strip empty paragraphs

Strip empty paragraphs from works on Archive of Our Own

< Valutazione su AO3: strip empty paragraphs

Domanda/commento

§
Pubblicato: 19/01/2018

comment/bookmark button bug?

Hi, I just installed your script - thanks for making it. Have you noticed an issue with the confirm buttons for making a comment or creating a bookmark? For me (Firefox 57.0.4) they're disappearing when this script is enabled.

§
Pubblicato: 07/07/2018

This is also happening to me in Chrome.

§
Pubblicato: 06/04/2019

Just FYI, I managed to edit the script to fix this myself. Just replace this line

var paragraphs = document.getElementsByTagName("p");

with these two

var text = document.getElementById("chapters");

var paragraphs = text.getElementsByTagName("p");

Pubblica risposta

Accedi per pubblicare una risposta.