Description
Prerequisites
- I verified that this is not a filter list issue. Report any issues with filter lists or broken website functionality in the uAssets issue tracker.
- This is not a support issue or a question. For support, questions, or help, visit /r/uBlockOrigin.
- I performed a cursory search of the issue tracker to avoid opening a duplicate issue.
- The issue is not present after disabling uBO in the browser.
- I checked the documentation to understand that the issue I am reporting is not normal behavior.
I tried to reproduce the issue when...
- uBO is the only extension.
- uBO uses default lists and settings.
- using a new, unmodified browser profile.
Description
Based on the idea of #760 (comment), could there be any ways to implement a way of redirecting to a query parameter? The main goal is to reduce click-tracking and instertitial ad-page while minimizing users' annoyances of strict-blocking page. It can be a nice complement for removeparam
and href-sanitizer
.
The difference between queryjump
and href-sanitizer
are at least these 3 things:
- The click-tracking is added by javascript after clicking on it.
Example: Links on youtube. Steps to reproduce:
-
Access
https://www.youtube.com/watch?v=Onr0frormCU
and go to any link in the description. We can see the link is in the form ofhttps://www.youtube.com/redirect?event=...&q=https...
-
Add
youtube.com##+js(href-sanitizer, a[href^="https://www.youtube.com/redirect?"][href*="&q="], ?q)
- Now the links become direct links as expected. However, when clicking on it, it automatically changes to
https://www.youtube.com/redirect?event=...&q=https...
again.
- Email click-tracking. Since
href-sanitizer
is a scriptlet applying to specific websites, it would not be too appropriate to use it since emails are sent to many different email vendors.
Example: Pinterest URLs in email has the form of https://www.pinterest.com/email/click/?user_id=...&target=...
https://www.pinterest.com/email/click/?user_id=MTA0MTk1MDIwMTE5NzI0MDMyNg%3D%3D&od=dD0yZDBjZGRiODIzMGQ0NzI2YjJiYzMzZjVhNzYwMmUwMyZjPVRSRU5ESU5HX1NFQVJDSEVTJnM9OTFlMzYwOGNmYWIxMzZhMjBiOWJiODFlMTI2YjkyYzgmbj02ZmM4OGY3NDljYzM0ZTRlODZkZDAzZDVmNTdlOWJlMA%3D%3D&target=https%3A%2F%2Fwww.pinterest.com%2Fsecure%2Fautologin%2F%3Fuser_id%3DMTA0MTk1MDIwMTE5NzI0MDMyNg%253D%253D%26od%3DdKKENk85zsaP7IxNnl%252B%252F3BfKeAdMt2BnnX4kIzzErLl%252BHJCI3X3MgQ5Vyk8Bgv46xaFJxo2UFLLGns6W2EWnAwCuw6ezCA%252BLt6DIu8G6yCOaNDrS6aAHtNw2mvy2R296xiOFGxkxngakYRQIxAYpwQ%253D%253D%26next%3D%252Fsearch%252Fpins%252F%253Frs%253Demailtrending%2526q%253DM%2525C3%2525A0u%252520%2525C4%252590en%2526source_id%253Dets_mkvrQjX2%2526utm_campaign%253Dtrending_searches%2526e_t%253D2d0cddb8230d4726b2bc33f5a7602e03%2526utm_source%253D31%2526utm_medium%253D2031%2526utm_term%253D1
- 3rd-party click-tracking service that are used by many websites.
Example: app.adjust.com
is usually used as an interstitial tracking link for website's mobile apps promotion. Steps to reproduce:
- Access
https://www.paypal.com/uk/home
orhttps://tenki.jp/
- In paypal site, scroll to
Download the app
buttons, the links are
https://app.adjust.com/trmm8ps_g8xwzkj?fallback=https%3A%2F%2Fwww.paypal.com%2Fuk%2Fwebapps%2Fmpp%2Fmobile-apps
- In tenki site, scroll to the end of the page and in 1 of the 2 mobile apps promotion section, the links are:
https://app.adjust.com/4d876gw?campaign=pc&adgroup=top&creative=20200114-1&redirect=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Djp.or.jwa.tenkijpyama
I think the syntax can be similar to removeparam
?
||youtube.com/redirect?*&q=$queryjump=q
A specific URL where the issue occurs.
https://www.youtube.com/watch?v=Onr0frormCU
Steps to Reproduce
- Access
https://www.youtube.com/watch?v=Onr0frormCU
- Click on any link in the description of youtube's video.
Expected behavior
Go to direct link that appears in youtube's description. For example: https://github.com/gorhill/uBlock/wiki/Dashboard:-Filter-lists#purge-all-caches
Actual behavior
There's youtube interstitial redirection link before going to direct link. For example:
https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqbmpTbkQwX0tMWjlVbWlrcEV3eFBBcXZqNWd5QXxBQ3Jtc0tuTWI2N2FLMFBGMnZWUlB4ektSRUVUUUF3dXluemdSeXhNS1RYbXNJMVVhR2E0ek11UzdERmdSY242a2cxUU1MdDRUbVN0V0xVMzVZdjMtNzZqVGFkeDVablpKM3lCR0ZhVnhjc1FlTTU2bkRHeDBuNA&q=https%3A%2F%2Fgithub.com%2Fgorhill%2FuBlock%2Fwiki%2FDashboard%3A-Filter-lists%23purge-all-caches&v=Onr0frormCU
uBO version
1.50.0
Browser name and version
Firefox 114.0.1
Operating System and version
Windows 10