小說閱讀腳本,統一閱讀樣式,內容去廣告、修正拼音字、段落整理,自動下一頁
< 腳本小說閱讀腳本的回應
原内容抓取只能抓符合条件的第一段内容,不太适合论坛这类单页面多段内容的网站。将原文:this.content = this.handleContentText(this.$content.html(), this.info);修改为:this.content = this.handleContentText($('
this.content = this.handleContentText(this.$content.html(), this.info);
this.content = this.handleContentText($('
').append(this.$content).html(), this.info);
登入以回覆
原内容抓取只能抓符合条件的第一段内容,不太适合论坛这类单页面多段内容的网站。
将原文:
this.content = this.handleContentText(this.$content.html(), this.info);修改为:
this.content = this.handleContentText($('').append(this.$content).html(), this.info);就能适配多段内容页面。
变相还可以把页面内需要显示其他内容也抓进正文。
代码截图: