javascript - 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.
解决方案
推荐阅读
- reactjs - 获取深子 FormInput 组件
- deployment - 无法打开连接、部署 Shiny 应用、tesseract 其他语言的训练数据
- android - 向可变号码发送消息
- azure - 现有可用性集中的 Azure ARM 模板部署
- php - 显示特定 WooCommerce 产品的属性页面上的术语列表
- python - Python:使用列表映射多维字典
- c++ - C++ 继承“无可行转换”错误
- kubernetes - 如何从外部访问 minikube 机器?
- python - 请求库返回 HTTPSConnectionPool
- delphi - 将 bpl 包安装到 delphi 10.3 @uxtheme@bufferedpaintsetalpha$qqruip11types@Trectuc 时出错