请求开发用于规避谷歌赞助结果登录的Bookmarklet代码
规避谷歌赞助搜索结果登录要求的Bookmarklet代码
使用方法
- 右键浏览器书签栏,选择「添加书签」(或对应版本的类似选项)
- 在「名称」栏输入自定义标识(比如「解锁谷歌赞助结果」)
- 将下方代码粘贴到「网址」栏,保存书签
- 当谷歌搜索结果页面弹出登录要求、无法查看赞助内容时,点击该书签即可
Bookmarklet代码
javascript:(function(){document.querySelectorAll('[aria-modal="true"],.g-modal,.g-modal-backdrop').forEach(el=>el.remove());document.body.style.overflow='auto';const s=document.createElement('style');s.textContent='.g-blk,.g-recaptcha-container{display:none!important;}';document.head.appendChild(s);})();
代码说明
- 移除页面上的登录弹窗、背景遮罩层
- 恢复页面的滚动功能
- 隐藏可能阻碍内容显示的限制元素(如验证码容器、锁定区块)
内容的提问来源于stack exchange,提问作者bjornte
相关产品推荐
相关产品推荐

