Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 861 Bytes

README.org

File metadata and controls

32 lines (22 loc) · 861 Bytes

ewaser.el

Remove DOM nodes you are not interested in on some websites.

Overview

When using the amazing emacs web browser, eww, we have the opportunity to use `(eww-readable)` that will try to find the main “readable” part of the website. Most of the time, it works perfectly and is amazing. But sometimes, even the most readable part contain some content you are not really interested in and that adds a lot of noise.

This package allow you to define a list of DOM nodes you want to get rid of.

(setq ewaser-rules-alist '(("\\**stackoverflow" .
								   ("#left-sidebar"
									"#sidebar"
									"#footer"
									".s-topbar--container"
									".post-taglist"
									".answers-subheader"
									".js-post-menu"
									".votecell"
									))))

(add-hook 'eww-after-render-hook #'ewaser--hook)