AO3: strip empty paragraphs

Strip empty paragraphs from works on Archive of Our Own

< 腳本AO3: strip empty paragraphs的回應

提問/評論

§
發表於:2020-09-22
編輯:2020-09-25

Bug: script removes inline images from fics.

Edit: I had a fix here but I know jack about Javascript so it only fixed half the problem. Whoops!

Possible actual fix: replace line 14 with if (paragraphs[i].textContent.trim() == "" & paragraphs[i].innerHTML.search("img")==-1) {

發表回覆

登入以回復

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址