Skip to content

Conversation

@big-big-banana
Copy link

@big-big-banana big-big-banana commented Apr 30, 2025

Added cosmetic filtering rules targeting multiple UI elements on Baidu's homepage and search results pages. Specifically:

  • Hides the top-left navigation section on the homepage
  • Blocks individual "hot search" items and the "change batch" button
  • Removes DeepSeek-related ad bubbles on the search page
  • Hides the entire right-hand sidebar (content_right)

These changes aim to provide a cleaner and less distracting user experience when using Baidu.


添加了多个针对百度首页与搜索页面 UI 元素的视觉拦截规则,具体包括:

  • 隐藏首页左上角导航区域
  • 拦截“热搜”模块中的指定条目及“换一换”按钮
  • 去除搜索页面出现的 DeepSeek 广告提示气泡
  • 隐藏百度搜索结果页右侧侧边栏内容(content_right)

旨在提升用户使用百度时的清爽度与专注度。

Creating the pull request

Please include a summary of the change and which issue is fixed
If the related issue does not exist in our repository, please create it before making pull request
It is highly recommended to use our Web Reporting Tool instead of creating an issue on GitHub directly
Please note, that we verify every pull request manually, so it may take time to apply it

Prerequisites

To avoid invalid pull requests, please check and confirm following terms

  • This is not an ad/bug report;
  • My code follows the guidelines and syntax of this project;
  • I have performed a self-review of my own changes;
  • My changes do not break web sites, apps and files structure.

What problem does the pull request fix?

If the problem does not fall under any category that is listed here, please write a comment below in corresponding section

  • Missed ads or ad leftovers;
  • Website or app doesn't work properly;
  • AdGuard gets detected on a website;
  • Missed analytics or tracker;
  • Social media buttons — share, like, tweet, etc;
  • Annoyances — pop-ups, cookie warnings, etc;
  • Filters maintenance.

What issue is being fixed?

Enter the issue address

Example: #100000

Add your comment and screenshots

If possible, a screenshot of a page or application should not be cropped too much. Otherwise, it is not always clear where the element is located

  1. DO NOT upload screenshots with sexually explicit material on GitHub directly.
    Instead, upload it to a third-party image hosting and post the link to it without preview (!) here.
    Also, mention if the link leads to NSFW content;

  2. Add screenshots of the problem. You can drag and drop images or paste them from clipboard

    Use <details> </details> tag to hide screenshots under the spoiler;

  3. Describe the issue in detail until it is absolutely clear from the screenshot what the problem is

    You can also indicate any other information that you think the developers should know.

Warning: Please remove personal information before uploading screenshots!

  1. Your comment
  1. Screenshots
Screenshot 1:
Screenshot N:

Terms

  • By submitting this issue, I agree that pull request does not contain private info and all conditions are met

Added cosmetic filtering rules targeting multiple UI elements on Baidu's homepage and search results pages. Specifically:

- Hides the top-left navigation section on the homepage
- Blocks individual "hot search" items and the "change batch" button
- Removes DeepSeek-related ad bubbles on the search page
- Hides the entire right-hand sidebar (content_right)
  
These changes aim to provide a cleaner and less distracting user experience when using Baidu.

---

添加了多个针对百度首页与搜索页面 UI 元素的视觉拦截规则,具体包括:

- 隐藏首页左上角导航区域
- 拦截“热搜”模块中的指定条目及“换一换”按钮
- 去除搜索页面出现的 DeepSeek 广告提示气泡
- 隐藏百度搜索结果页右侧侧边栏内容(content_right)

旨在提升用户使用百度时的清爽度与专注度。
@big-big-banana
Copy link
Author

Hi, this is my first time contributing to AdGuard filters.
I noticed some distracting elements on Baidu’s search page and wrote these cosmetic rules to improve clarity and focus.
Please feel free to suggest changes. Thank you for the great work you’re doing!

@Alex-302
Copy link
Member

Alex-302 commented May 1, 2025

Hi.
Please show these elements on screenshot(s).

@big-big-banana
Copy link
Author

big-big-banana commented May 2, 2025

Hello @Alex-302, thank you for reviewing!

I’ve prepared annotated screenshots to show the elements being blocked by this PR.
The targeted elements are shown in the images below, along with a before-and-after comparison to clearly demonstrate the filtering effect.
截屏2025-05-02 下午1 15 14

📷 Screenshots:
Image 1: Before filtering
截屏2025-05-02 下午1 30 46
截屏2025-05-02 下午1 28 58

Image 2: After filtering
截屏2025-05-02 下午1 30 26 截屏2025-05-02 下午1 30 18

Please let me know if any clarification or adjustments are needed — I’d be happy to make updates! 😄

@big-big-banana
Copy link
Author

Hello @Alex-302,
I’d like to kindly follow up on this pull request. The screenshots and relevant details have been included as requested.
Please let me know if any further revisions or clarifications are needed.
Thank you for your time and consideration.

@Alex-302
Copy link
Member

Alex-302 commented May 7, 2025

Hi. Personally, I would block those elements too, but I'm not sure most users would like that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants