wedata

Database: Fold Comments

Database Details

About http://userscripts.org/scripts/show/19344 is just begging to become a WeData-backed extension. What it does? It folds up large comment sections in web pages you visit (and unfolds, if you like), so you get a feel for how long the web page or article itself is by peeking at the window scrollbar.

The rules property is a JSON DOM spec that describes all foldable sections in the page, giving each a name, a "from" and "to" element, and an optional "items" array enumerating the respective individual items themselves, with css and/or xpath selectors, in the format https://gist.github.com/3957352 defines.

Alternatively, if the rules property is a URL, it references another wedata item (which has a non-url rules property), inheriting the rules dom spec it carries.
Require keys rules
Optional keys domain example_url
Permit other keys true
Created by Johan Sundström
Created at 2012-11-02T13:21:51+09:00
Updated at 2012-11-03T01:31:39+09:00

Back