OLD | NEW |
1 # DOM Distiller | 1 # DOM Distiller |
2 | 2 |
3 DOM Distiller aims to provide a better reading experience by distilling the | 3 DOM Distiller aims to provide a better reading experience by distilling the |
4 content of the page. This distilled content can then be used in a variety of | 4 content of the page. This distilled content can then be used in a variety of |
5 ways. | 5 ways. |
6 | 6 |
7 The current efforts that will be powered by DOM Distiller: | 7 The current efforts that will be powered by DOM Distiller: |
8 - Reader mode: a mobile-friendly viewing mode for Chrome mobile | 8 - Reader mode: a mobile-friendly viewing mode for Chrome mobile |
9 | 9 |
10 ## How to use Reader mode on mobile Chrome | 10 ## How to use Reader mode on mobile Chrome |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 export CHROME_SRC=/path/to/chromium/src | 182 export CHROME_SRC=/path/to/chromium/src |
183 export DOM_DISTILLER_DIR=/path/to/dom-distiller | 183 export DOM_DISTILLER_DIR=/path/to/dom-distiller |
184 ``` | 184 ``` |
185 | 185 |
186 - Pull generated package (from ant package) into Chrome. You can use this handy | 186 - Pull generated package (from ant package) into Chrome. You can use this handy |
187 bash-function to help with that: | 187 bash-function to help with that: |
188 ```bash | 188 ```bash |
189 roll-distiller () { | 189 roll-distiller () { |
190 ( | 190 ( |
191 (cd $DOM_DISTILLER_DIR && ant package) && \ | 191 (cd $DOM_DISTILLER_DIR && ant package) && \ |
192 rm -rf $CHROME_SRC/third_party/dom_distiller_js/package/* && \ | 192 rm -rf $CHROME_SRC/third_party/dom_distiller_js/dist/* && \ |
193 cp -rf $DOM_DISTILLER_DIR/out/package/* $CHROME_SRC/third_party/dom_distille
r_js/package && \ | 193 cp -rf $DOM_DISTILLER_DIR/out/package/* $CHROME_SRC/third_party/dom_distille
r_js/dist/ && \ |
194 touch $CHROME_SRC/components/resources/dom_distiller_resources.grdp | 194 touch $CHROME_SRC/components/resources/dom_distiller_resources.grdp |
195 ) | 195 ) |
196 } | 196 } |
197 ``` | 197 ``` |
198 - From `$CHROME_SRC` run GYP to setup ninja build files using | 198 - From `$CHROME_SRC` run GYP to setup ninja build files using |
199 ```bash | 199 ```bash |
200 build/gyp_chromium | 200 build/gyp_chromium |
201 ``` | 201 ``` |
202 | 202 |
203 ## Running the Chrome browser with distiller support | 203 ## Running the Chrome browser with distiller support |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 If you want you can copy some of these User-Agent aliases into normal bash | 365 If you want you can copy some of these User-Agent aliases into normal bash |
366 aliases for easy access later. For example, Nexus 4 would be: | 366 aliases for easy access later. For example, Nexus 4 would be: |
367 ```bash | 367 ```bash |
368 --user-agent="Mozilla/5.0 (Linux; Android 4.2.1; en-us; Nexus 4 Build/JOP40D) Ap
pleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19" | 368 --user-agent="Mozilla/5.0 (Linux; Android 4.2.1; en-us; Nexus 4 Build/JOP40D) Ap
pleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19" |
369 ``` | 369 ``` |
370 | 370 |
371 Steps 1-3 in the guide above can typically be done in a stable version of | 371 Steps 1-3 in the guide above can typically be done in a stable version of |
372 Chrome, whereas the rest of the steps is typically done in your own build of | 372 Chrome, whereas the rest of the steps is typically done in your own build of |
373 Chrome (hence the "(Re)" in step 4). Besides speed, this also facilitates | 373 Chrome (hence the "(Re)" in step 4). Besides speed, this also facilitates |
374 side-by-side comparison. | 374 side-by-side comparison. |
OLD | NEW |