Remove Stupid Google Lens Drop Zone

This script removes the stupid Google Lens drop zone that appears in the search bar when dragging links (or anything else) on Google search results pages. This feature is an intrusive and unnecessary addition to Google's search experience, and this script aims to remove it.

目前為 2023-03-11 提交的版本,檢視 最新版本

作者
Unintendedz
評價
0 0 0
版本
0.1
建立日期
2023-03-11
更新日期
2023-03-11
尺寸
2.6 KB
授權條款
WTFPL
腳本執行於

这个脚本使用 MutationObserver API 监听 Google 搜索结果页面 DOM 的变化。当页面添加新的子节点时,脚本会检查它是否匹配选择器 div > c-wiz > div.focusSentzone 的容器。如果找到匹配项,脚本将删除父元素的父元素,从而有效地从页面中删除 Google Lens drop zone。

我们认为 Google 将此功能添加到其搜索结果页面是愚蠢和侵入性的决定,希望该脚本能够帮助与我们有相同痛点的用户改善搜索体验。

哦,对了,这个脚本完全出自ChatGPT,我只是提供了CSS选择器而已。:)



This script uses the MutationObserver API to listen for changes in the DOM of the Google search results page. When a new child node is added to the page, the script checks if it matches the selector div > c-wiz > div.focusSentinel, which is the container for the Google Lens drop zone. If a match is found, the script
removes the parent element's parent element, effectively removing the Google Lens drop zone from the page.

We believe that Google's decision to add this feature to its search results page is foolish and invasive, and we hope that this script helps to improve the search experience for users who share our frustration.

Oh, by the way, this script is entirely generated by ChatGPT, and I only provided the CSS selector. :)

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址