您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Strip empty paragraphs from works on Archive of Our Own
当前为
- // ==UserScript==
- // @name Strip empty paragraphs from works on AO3
- // @description Strip empty paragraphs from works on Archive of Our Own
- // @version 1
- // @grant none
- // @include https://archiveofourown.org/works/*
- // @include http://archiveofourown.org/works/*
- // @namespace https://greasyfork.org/users/94761
- // ==/UserScript==
- var paragraphs = document.getElementsByTagName("p");
- for (var i = 0; i < paragraphs.length; i++) {
- if (paragraphs[i].textContent.trim() == "") {
- paragraphs[i].remove();
- }
- }