双栏显示搜索结果

双栏显示百度,搜狗,360的搜索结果

当前为 2017-09-15 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        双栏显示搜索结果
// @namespace   none
// @description 双栏显示百度,搜狗,360的搜索结果
// @version     1.5
// @include     *://www.baidu.com/*
// @include     *://www.sogou.com/*
// @include     *://www.so.com/*
// @grant       none
// @run-at      document-start
// ==/UserScript==

(function () {
    'use strict';
    var domURL = document.URL;
    var element = document.createElement('style');
    var fontStr = ':not([class*=icon]):not([class*=fa]):not([class*=logo]):not(i):not(strong):not(button){font-family:"Helvetica Neue","Microsoft YaHei",Arial,sans-serif !important}';
    if (domURL.indexOf('baidu.com') !== - 1) {
        element.innerHTML = '.container_l,.op-img-star-divide-low>a{width:auto!important}#content_left{width:93%!important;padding-left:4%!important}#content_left>.c-container,#content_left>[class^=result]{display:block!important;width:48%!important;min-width:560px!important;min-height:116px!important;float:left!important;margin:.4%!important;padding:8px 5px 3px!important;table-layout:fixed!important;border-collapse:separate!important;overflow:hidden!important}#rs,.nums,.s_tab,.search_tool_conter,.to_tieba,.to_zhidao_bottom{margin:0 auto!important}#page,#s_tab{padding-left:0!important;text-align:center!important}body[link="#0000cc"] .s_form{width:760px!important;margin:0 auto!important;transform:translatex(-40px)}#content_left>*,#content_right,#rs,#u,.c-recommend,.to_tieba,.to_zhidao_bottom,body>div[class="result-op xpath-log"]{display:none!important}#sp-fw-container{transform:translatex(-200px) translatey(13px)}';
    }
    if (domURL.indexOf('sogou.com') !== - 1) {
        element.innerHTML = 'div{word-break:initial!important;word-wrap:initial!important}#wrapper{width:auto!important;padding:0 35px!important;position: relative;top: 145px;}.main,.results{width:100%!important}#s_bottom_form,.bing-snb,.bing160328,.hintBox,.mun,.right,.rvr-model,.topbar{display:none!important}.main{padding:0!important;min-width:100%!important}#pagebar_container{position: relative;top: 150px;left: 215px;}#s_footer{position: relative;top: 125px;}.header{width:auto!important;min-width:100%!important}.logo{padding-left: 200px;}.querybox{margin-left: 320px!important;}.searchnav{padding-left: 327px!important;}.mun-tips{padding-bottom:0!important;}.term{left: auto!important;right:0}.top-hintBox{padding-left:260px!important}.results>div{width:48%!important;min-width:560px!important;min-height:116px!important;float:left!important;margin:.4%!important;padding:8px 5px 3px!important;table-layout:fixed!important;border-collapse:separate!important;overflow:hidden!important}';
    }
    if (domURL.indexOf('so.com') !== - 1) {
        element.innerHTML = '#side,.hd-rtools,.mod-relation,.nums{display:none}.res-list{width:48%!important;min-width:568px!important;min-height:116px!important;float:left!important;margin:.4%!important;padding:8px 5px 3px!important;table-layout:fixed!important;border-collapse:separate!important;overflow:hidden!important}#container,#footer{width:auto!important}#main{width:100%!important;padding:0!important}#container{padding:0 35px!important}#g-hd-nav,#head,#page{width:auto!important;padding-left:23%!important}#footer{padding-left:20%!important}'
    }
    element.innerHTML += fontStr;
    document.documentElement.appendChild(element);
}) ();