Greasy Fork is available in English.

Baidu++:为百度搜索结果页添加磁力、种子、网盘、软件、头条、哔哩哔哩、知乎、CSDN、Google搜索按钮,为Google添加百度搜索按钮

给百度搜索引擎的结果页加入头条、哔哩哔哩、软件、网盘搜索按钮,一键跳转到磁力、种子、网盘、软件、头条、哔哩哔哩、Google搜索进行相同关键词的检索;在google搜索结果页添加百度搜索按钮,一键跳转到百度搜索进行相同关键词的检索。支持去除百度结果页面的广告和右边栏。

< Opiniones de Baidu++:为百度搜索结果页添加磁力、种子、网盘、软件、头条、哔哩哔哩、知乎、CSDN、Google搜索按钮,为Google添加百度搜索按钮

Puntuación: Bueno; el script funciona tal y como promete

§
Publicado: 28/1/2021

希望添加的功能:

  1. 直接在当前页面打开新搜索,而不是在新标签页;
  2. 可选择关闭某些功能;
  3. 颜色有些花里胡哨,希望朴素一点;
  4. 自定义网址替换按钮,可选择使用regex,(比如可通过自定义把url中的en-US=>zh-CN);
§
Publicado: 28/1/2021

随便改了个当前页面直接跳转的,其中,在baidu旁显示google按钮可修改如下:

            //添加Google搜索按钮
            var baiduSearch = $('.s_btn_wr,#s_btn_wr');
            var googleButton = baiduSearch.after('<a id="google" href=https://www.google.com>'+
                                  '<img '+
                                      'src="https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_92x30dp.png"'+
                                      'style=" '+
                                      'height:30px; '+
                                      'background-color:#424242;'+
                                      'border-radius:10px 10px 10px 10px;'+
                                      'border:5px solid #424242;" '+
                                      'onmouseover="this.style.background=\'#666666\';this.style.border=\'5px solid #666666\'" '+
                                      'onmouseout="this.style.background=\'#424242\';this.style.border=\'5px solid #424242\'" '+
                                  '>'+
                              '</a>');
            var changeUrl = ()=>{
                $("#google")[0].href = 'https://www.google.com/search?&q='+ encodeURIComponent($('#kw').val());
                $("#head").height($(".s_form").height());
            };
            $('#kw').change(changeUrl);
            $( document ).ready(changeUrl);

Baidu2Google

Publicar respuesta

Inicia sesión para responder.