V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
工单节点使用指南
• 请用平和的语言准确描述你所遇到的问题
• 厂商的技术支持和你一样也是有喜怒哀乐的普通人类,尊重是相互的
• 如果是关于 V2EX 本身的问题反馈,请使用 反馈 节点
otato

知乎的搜索无法被 chrome 和新 edge 感知自动添加

  •  
  •   otato · Dec 29, 2020 · 1849 views
    This topic created in 1952 days ago, the information mentioned may be changed or developed.
    一直以为是知乎为了首页点击去掉了这个功能,今天安 edge dev 又要手动添加搜索,实在蛋疼就看了下源码,发现是有 opensearch 的标签的,里面内容也正常,这就奇怪了。
    于是找来 github 的 opensearch 文件,用 fiddler 本地劫持照着改,最后发现把第一行:
    <?xml version="1.0" encoding="UTF-8"?>
    去掉 chrome 就认了。。。
    另外还有首页的搜索 input 没写 name,firefox 的右键添加搜索引擎功能搞出来的地址是错的
    1 replies    2021-08-22 15:58:42 +08:00
    lcandy
        1
    lcandy  
       Aug 22, 2021
    thank god and thank you!!!!
    苦恼了两天,终于找到了解决方法!!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2496 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 08:03 · PVG 16:03 · LAX 01:03 · JFK 04:03
    ♥ Do have faith in what you're doing.