首页 > 解决方案 > Block cookies from specific URLs?

问题描述

Is it possible to block cookies from specific URLs programmatically e.g. JavaScript or user script , and how?

For example I have issue about YouTube search, let's say if you watch piano videos usually, then if you search "piano" simply on YouTube search ( https://www.youtube.com/results?search_query=piano ), the search result will highly depend on your watching history. There is big difference between login-ed search result and incognito window search result. This is just annoying.

I found some info to block cookies from specific domains, but not for URLs ( blocks for https://www.youtube.com/results?search_query=* but allows for https://www.youtube.com/watch?v=* ). So, how can I do this using JavaScript? Thanks.

标签: javascriptcookies

解决方案


推荐阅读