油猴脚本实现bing浏览器搜索结果靠右
复制这段代码放在油猴中enable即可。
·
// ==UserScript==
// @name bing-right-align
// @namespace http://tampermonkey.net/
// @version 2024-04-24
// @description try to take over the world!
// @author You
// @match https://global.bing.com/search?q=*
// @icon https://www.google.com/s2/favicons?sz=64&domain=bing.com
// @run-at document-start
// @grant GM_addStyle
// ==/UserScript==
(function() {
'use strict';
// Your code here...
GM_addStyle(`
body {
position: relative !important;
}
#b_tween {
width: 100% !important;
position: absolute !important;
}
main {
position: absolute !important;
right: 100px;
top: 150px;
z-index: 20;
}
#wikiWidgetContainer {
visibility: hidden !important;
}
aside {
position: absolute !important;
right: 800px;
top: 150px;
z-index: 10;
}
footer {
visibility: hidden;
}
header {
position: relative !important;
height: 100px;
}
header > nav{
position: relative !important;
}
header > nav > ul {
position: absolute !important;
right: 130px;
bottom: -80px;
}
#sb_form {
position: absolute !important;
right: 100px;
white-space: nowrap !important;
}
#id_h {
position: absolute !important;
right: 920px !important;
width: 500px;
display: inline !important;
}
@media screen and (max-width: 1300px) {
#id_h {
visibility: hidden !important;
}
}
`);
})();
复制这段代码放在油猴中enable即可。
更多推荐
所有评论(0)