Project

General

Profile

Actions

Feature #442

open

Use the blocklists to modify page elements

Added by Soren Stoutner about 5 years ago. Updated 8 months ago.

Status:
New
Priority:
4.x
Start date:
05/15/2019
Due date:
% Done:

0%

Estimated time:

Description

This would allow the removal of those annoying popups that explain cookie or GDPR policies.

Actions #1

Updated by Soren Stoutner over 2 years ago

This would also allow the removal of empty ad elements. Note that this does require significantly more CPU processing than is currently used for the blocklists, so it may not be desirable even when it is possible with Privacy WebView.

See https://www.stoutner.com/privacy-browser/blocklists/

Actions #2

Updated by ask low 8 months ago

As extension support stripped out from the default out of the box android webview, is it possible to integrate CSS based filtering inside a non-standalone browser like PB, lightning, FOSS browser, etc ?

Is Cosmetic Filtering possible with existing Android Webview ? Does the default webview allow page modifications ?

I really support the removal of page elements and pop-ups. Empty ad banners & warnings pop-ups are annoying as hell.

Actions #3

Updated by ask low 8 months ago

Soren Stoutner wrote in #note-1:

Note that this does require significantly more CPU processing than is currently used for the blocklists,

I think it's worth giving up little bit processing power for this. Although, I believe chrome's Raw Draw feature reduces the rendering workload by offsetting the texture allocation. Also uses less memory for each tile.

Actions #4

Updated by Soren Stoutner 8 months ago

Currently, the only way to do cosmetic filtering in WebView it to inject JavaScript into the page. Which requires that the page have JavaScript enabled.

Actions #5

Updated by ask low 8 months ago

Interesting. Injecting in the sense inspecting the source, modifying the elements and zapping them ?

Actions #6

Updated by Soren Stoutner 8 months ago

Injecting in the sense that you add an extra JavaScript file to a website which uses JavaScript commands to delete things you don't want on the website.

https://developer.android.com/reference/android/webkit/WebView#evaluateJavascript(java.lang.String,%20android.webkit.ValueCallback%3Cjava.lang.String%3E)

Many, many moons ago this was how Privacy Browser used to create dark website themes.

https://www.stoutner.com/privacy-browser-2-6/

https://www.stoutner.com/privacy-browser-3-5/

Actions

Also available in: Atom PDF