uazo / cromite

Cromite a Bromite fork with ad blocking and privacy enhancements; take back your browser!
https://www.cromite.org/
GNU General Public License v3.0
3.5k stars 80 forks source link

Add support (if not already) to clean url with removeparam + list #171

Open huuhaa opened 1 year ago

huuhaa commented 1 year ago

Preliminary checklist

Is your feature request related to privacy?

Yes

Is there a patch available for this feature somewhere?

Not that I'm aware of

Describe the solution you would like

I would like to have option to remove "tracking elements" of the url, like ?utm ?fbclid etc. Basicly similar behavior as:

With uBlock Origin and adding my filters these lines:

$removeparam=/^utm $removeparam=/utm_./ $removeparam=/^(gclid|yclid|fbclid)=/

as an result url will goot basic clean, but thre's also list available, which would be great if could be used with Cromite:

https://raw.githubusercontent.com/DandelionSprout/adfilt/master/LegitimateURLShortener.txt

I think this would be nice feature and even if not as much privacy focused, bit on that too, when people stop sharing address with those ?utm ?fbclid etc.

Describe alternatives you have considered

So far I have tried with userscript option with usig these tips, but no luck so far.

More glumsy option is to set app URL Cleaner (f-droid) as "default browser" to first clean url before opening it to Cromite.

KokichaKolevTM commented 1 year ago

Here is a userscript you can try out that works in Cromite - Link to the usercript. Link with tracking parameters to test it out.

Universalizer commented 1 year ago

https://github.com/bromite/bromite/discussions/2498#discussioncomment-4816365,; 1) Important (Don't ignore) https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_17_TrackParam/filter.txt prominently for https://privacytests.org/android.html > Tracking query parameter tests.

Also recommend following lists; 2) Important (Don't ignore) Actually Legitimate URL Shortener Tool; https://raw.githubusercontent.com/DandelionSprout/adfilt/master/LegitimateURLShortener.txt


https://github.com/Universalizer/Universal-FilterLists#url-tracking-parameters ClearURLs for uBO; https://raw.githubusercontent.com/DandelionSprout/adfilt/master/ClearURLs%20for%20uBo/clear_urls_uboified.txt


Any one from following :- uBlockOrigin's syntax version or variant; https://filters.adtidy.org/extension/ublock/filters/17.txt

Windows; https://filters.adtidy.org/windows/filters/17.txt

Same FilterLists, but optimized for low end device; https://filters.adtidy.org/extension/ublock/filters/17_optimized.txt


Optionally, (github.com Directory) Reference sources; https://github.com/AdguardTeam/FiltersRegistry/tree/master/filters/filter_17_TrackParam


FilterList following Optional only :- Hagezi's Personal DNS Blocklist; https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/personal.txt

Block third-party fonts; https://raw.githubusercontent.com/yokoffing/filterlists/main/block_third_party_fonts.txt

YouTube Clear View; https://raw.githubusercontent.com/yokoffing/filterlists/main/youtube_clear_view.txt

uazo commented 1 year ago

so you propose to delete those parameters during

interesting proposal.

Universalizer commented 1 year ago

so you propose to delete those parameters during

  • the copy/paste of the url
  • navigation from an external intent
  • the url share

interesting proposal.

I didn't understood. Please simplify.

Universalizer commented 1 year ago

Above comment, understood,

https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_17_TrackParam/filter.txt

https://raw.githubusercontent.com/DandelionSprout/adfilt/master/LegitimateURLShortener.txt

These two filterlists, mostly does it's function, especially in uBo (uBlock Origin), i personally can't confirm for Adblock Plus.

Universalizer commented 1 year ago

Probably, b,rave must had hardcoded it, 'these two filterlists'.

uazo commented 1 year ago

interesting indeed, it seems that some code already exists in chromium

https://source.chromium.org/chromium/chromium/src/+/main:components/url_rewrite/README.md

uazo commented 9 months ago

check RenderProcessHostImpl::FilterURL