Greasy Fork镜像 is available in English.

Search Align Fucker (simple impl)

a simple implementation of moving search result to page center and that's google and bing.

Ajankohdalta 30.1.2023. Katso uusin versio.

// ==UserScript==
// @name         Search Align Fucker (simple impl)

// @version      0.0.0.1
// @author       Heizi黑字
// @description  a simple implementation of moving search result to page center and that's google and bing.
// @license      GPL-3.0 License
// @grant        GM.setValue
// @grant        GM.getValue
// @match        https?://(www\.)?(google|bing)\.(.)+/search\?.+
// @run-at       document-end
// @supportURL   https://github.com/ElisaMin/justify-search-page-to-center
// @homepageURL  https://github.com/ElisaMin/justify-search-page-to-center
// @name:zh-CN            居中啊!他娘的搜索引擎!
// @description:zh-CN     简单加点padding把搜索结果移到中间。
// @namespace https://greasyfork.dpdns.org/users/1018732
// ==/UserScript==
(()=>{
    let css = (dom,style,value) => $(dom).style[style] = value;
    let pl = (dom,paddingLeft) => css(dom,"padding-left",paddingLeft);
    let rem = (v)=>v+"rem";
    let paddingLeft = 41;
    pl("#b_header",rem(paddingLeft));
    pl("#b_content",rem(paddingLeft+10.5));
})();
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元