Haoxiqiang / mobile-readability-webview

It's a project provides a function which likes some browser readability page.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

android readability web content

It's a project provides a function which likes some browser readability page.

API

  • open reader view ReaderJSInterface.renderReadabilityPage(webView, url)

  • custom style You can custom your style without any JS inject. ReaderJSInterface.exeJavaScript(webView, json)

    • custom style {"action":"setColorScheme","colorScheme":"light|dark|sepia|heti"}
    • custom font size {"action":"changeFontSize","fontSize":1 | -1} 1:increase -1:decrease
    • custom font type {"action":"setFontType","fontType":"sans-serif|serif"}
  • samples

demo.mp4

Roadmap

  • support GeckoView, I have to write a WebExtension to avoid the CORS problem.
  • support iOS WKWebView.

License

                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

About

It's a project provides a function which likes some browser readability page.

License:Apache License 2.0


Languages

Language:Kotlin 54.5%Language:Swift 23.7%Language:Sass 15.4%Language:Shell 4.7%Language:JavaScript 1.7%