Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stealth: HTML Parser #34

Open
8 tasks
cookiengineer opened this issue Apr 15, 2020 · 0 comments
Open
8 tasks

Stealth: HTML Parser #34

cookiengineer opened this issue Apr 15, 2020 · 0 comments

Comments

@cookiengineer
Copy link
Member

Stealth also requires an HTML parser that should rewrite the contents based on the current config (aka Site Mode).

  • Remove all <script> elements
  • Filter and Render <style> via CSS Parser
  • Filter and Render <link rel="stylesheet"> via CSS Parser
  • Filter out <img> based on mode.image
  • Filter out <audio> based on mode.audio
  • Filter out <video> based on mode.video
  • Filter out <object> elements
  • Rewrite URLs of all external media files, so that they do NOT contain the :<tab id>,webview: flags - otherwise the tab history will be messed up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant