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

auto-save and null request patch for terrible adware #1048

Open
duane-r opened this issue Jul 15, 2023 · 0 comments
Open

auto-save and null request patch for terrible adware #1048

duane-r opened this issue Jul 15, 2023 · 0 comments

Comments

@duane-r
Copy link

duane-r commented Jul 15, 2023

I made this patch to get past some really ugly adware that's popped up in several places. The changes allowed me to implement some of ublock's rules. I can make a pull request if anyone is interested, but it's fairly esoteric.

The first part modifies the "send-request" signal to take "null" as a response, which stops the request and also prevents the browser from reloading the page. This allows a download from javascript to occur.

The second part is more generally useful. It lets you return "download" from the "mime-type-decision" signal to force a download of some media on some site, even if gstreamer could play it -- which lets me save the javascript download.

Environment:

Linux Distribution & Version:
gentoo

Output of luakit --version:
luakit 2.3.3
built with webkit 2.40.3 (installed version: 2.40.3)

null-redirect.patch.zip

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