https://github.com/schmiddiii/qute-cookie-block
Blocking cookies for qutebrowser.
https://github.com/schmiddiii/qute-cookie-block
blocking-cookies blocklists cookies qutebrowser rust userscript
Last synced: about 1 year ago
JSON representation
Blocking cookies for qutebrowser.
- Host: GitHub
- URL: https://github.com/schmiddiii/qute-cookie-block
- Owner: Schmiddiii
- License: gpl-3.0
- Created: 2021-04-07T14:51:21.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-03T11:10:09.000Z (about 5 years ago)
- Last Synced: 2025-03-31T19:51:09.671Z (about 1 year ago)
- Topics: blocking-cookies, blocklists, cookies, qutebrowser, rust, userscript
- Language: Rust
- Homepage:
- Size: 67.4 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# qute-cookie-block
Blocking cookies for the qutebrowser.
# How it works
This userscript tries to block the cookies of a website by clicking on HTML elements, like buttons.
To support many websites, it also uses custom blocklist made for Chrome/Firefox plugins like [ublock origin](https://ublockorigin.com/).
Look at `Installation of a blocklist` for more details.
Note that this was designed for [qutebrowser](https://qutebrowser.org/) and will not work on any other browsers.
# Installation
## Prerequesites
- [rust](https://www.rust-lang.org/)
- [qutebrowser](https://qutebrowser.org/)
- A local copy of this repository.
## Linux
Just execute the `make.sh` in the repositories folder.
## Other
Run `cargo build` in the repositories folder.
Copy the created binary from `target/debug/qute-cookie-block` to the userscripts directory of qutebrowser.
Copy the folder `cookie-blockers` to the data directory of qutebrowser.
You can also take the binary and folder from the `Releases` tab, but they might outdated.
## Installation of a blocklist
This program supports blocklists/filterlists, that are written for [ublock origin](https://ublockorigin.com/).
To do that, download the blocklist you want (I recommend [this one](https://github.com/easylist/easylist/blob/master/easylist_cookie/easylist_cookie_general_hide.txt)), rename it to `blocklist.txt` (important!) and put it in your qutebrowser data directory under `cookie-blockers` in (`~/.local/qutebrowser/` in Linux).
Note that currently only very basic features of the blocklists are supported.
# Running
Run this script by executing `:spawn --userscript qute-cookie-block` in qutebrowser.
As you probably don't want to type it out all the time, I recommend setting up a alias in `qute://settings`.
# Contributing
This userscript heavily depends on contributions to fill out the list of supported websites.
Please try to contribute by submitting pull requests.
You do not even have to write any code, just XML.
To learn more about how to contribute, please look at the [wiki](https://github.com/Schmiddiii/qute-cookie-block/wiki) of this repository.