Greasy Fork is available in English.

AC-baidu-重定向优化百度搜狗谷歌必应搜索_favicon_双列

1.繞過百度、搜狗、谷歌、好搜搜索結果中的自己的跳轉鏈接,直接訪問原始網頁-反正都能看懂 2.新增自定义网站拦截功能 3添加Favicon显示 4.页面CSS 5.添加计数 6.开关选择以上功能 7.自动翻页功能

< Commentaires sur AC-baidu-重定向优化百度搜狗谷歌必应搜索_favicon_双列

Question / commentaire

§
Posté le: 14/08/2023

谷歌最近失灵应该是谷歌改了搜索结果的DOM结构 导致原来的选择器找不到url的节点 没法和屏蔽列表做比对

我本地暂时改了一下可以正常工作 但不知道这样改有没有其他问题

找到getNodeHost函数 这样改

function getNodeHost(sitetpNode) {         
          if (curSite.SiteTypeID === SiteType.BAIDU) {
            const href = sitetpNode.getAttribute("href");
            if (href != null && !href.includes("baidu.com/link")) {
              // 已经解析出来了
              return { curHost: getTextHost(href), curUrl: href };
            } else {
              const host = getTextHost(sitetpNode.innerText || sitetpNode.textContent)
              return { curHost: host, curUrl: host, isBaiduLink: true }; // 未被解密
            }
          } else if (sitetpNode.parentNode instanceof HTMLAnchorElement) {
            return { curHost: sitetpNode.parentNode.host, curUrl: sitetpNode.parentNode.href };
          } else {
            const host = getTextHost(sitetpNode.innerText || sitetpNode.textContent)
            return { curHost: host, curUrl: host };
          }
        }

个人的临时修改方案,仅供参考

Poster une réponse

Connectez-vous pour poster une réponse.