Commit Graph

5 Commits

Author SHA1 Message Date
Henry Wang d09affa703 feat: add addNoReferrer in common-utils (#2571)
* fix: no-referrer tag

* chore: merge qdaily routes

* feat: add addNoReferrer in common-utils

This adds no-referrer attribute to images.
Parameters:

- add no-referrer attribute to images
- $: cheerio selector
- source: source selector, string
- target: target attribute name, typically for lazyload imgs, string
- srcPrefix: prefix for src, string
- removeAttr: attributes to remove, array: ['attrA','attrB']

* test: add test case

* doc: update
2019-07-08 11:45:02 +08:00
Cloud cbcfc03207 fix: 使用官方rss源,避免因为文章置顶和取消置顶造成的文章重复 (#2383) 2019-06-13 11:38:30 +08:00
Cloud 45cfbebb52 fix: 修复cnbeta内容提取不完整bug (#2334)
* fix: 修复cnbeta内容提取不完整bug

* Update utils.js

* Update utils.js
2019-06-06 11:54:16 +08:00
DIYgod a56c0b5a39
refactor: rename axios to got 2019-06-03 18:03:05 +08:00
Cloud 4161826eff feat:添加cnBeta最新文章 (#2249) 2019-05-29 10:54:34 +08:00