// ==UserScript==
// @name Douban Article Formatter
// @namespace DAF
// @description 豆瓣文章格式化脚本，能够过滤段落中的手动缩进，自动调整段落间距。
// @include /^https?://movie.douban.com/review/*/
// @include /^https?://www.douban.com/note/*/
// @include /^https?://book.douban.com/review/*/
// @include /^https?://music.douban.com/review/*/
// @version 1.1.3
// @author tranch
// ==/UserScript==

(function() {
    function GM_wait() {
        if (typeof window.jQuery == 'undefined') {
            setTimeout(GM_wait, 100);
        } else {
            main(jQuery);
        }
    }

    function main($) {
        var article, article_container;
        switch (location.host.split('.')[0]) {
            case 'movie':
                article_container = $('div[property="v:description"]');
                break;
            case 'book':
            case 'music':
                article_container = $('span[property="v:description"]');
                break;
            case 'www':
                article_container = $('div#link-report.note');
                break;
            default:
                return;
        }
        article = article_container.html().replace(/(&nbsp;|\s|\n){2,}/g, '');
        article = '<p>' + article.replace(/(<br>(\s|(&nbsp;)*)+)+/g, '</p><p>') + '</p>';
        article_container.addClass('article_description').html(article);
        $('head').append($('<style>', {type: 'text/css'}).html('.article_description p { text-indent: 2em !important; text-align: justify; }'));
    }

    GM_wait();
})();

@@ -327,9 +327,9 @@
 1.1.
-3
+4
 %0A// 
@@ -1428,37 +1428,8 @@
  p %7B
- text-indent: 2em !important;
  tex

Modify paragraph default style