eww readability tweak
* net/eww.el (eww-score-readability): Don't count comments positively.
This commit is contained in:
parent
704da6eeb4
commit
15eb2ec114
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
2014-11-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
|
||||
|
||||
* net/eww.el (eww-score-readability): Don't count comments positively.
|
||||
|
||||
* net/shr.el (shr-retransform-dom): Typo fix.
|
||||
|
||||
* net/eww.el (eww-score-readability): Parse SVC images correctly.
|
||||
|
|
|
@ -452,7 +452,7 @@ the like."
|
|||
(defun eww-score-readability (node)
|
||||
(let ((score -1))
|
||||
(cond
|
||||
((memq (car node) '(script head))
|
||||
((memq (car node) '(script head comment))
|
||||
(setq score -2))
|
||||
((eq (car node) 'meta)
|
||||
(setq score -1))
|
||||
|
|
Loading…
Add table
Reference in a new issue