您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Unifies and improves the headers of both the community and torrent sections of the site. (and makes community pages full width)
当前为
// ==UserScript== // @name KAT Headers Unified // @namespace NotNeo // @version 0.1 // @description Unifies and improves the headers of both the community and torrent sections of the site. (and makes community pages full width) // @author NotNeo // @match https://katcr.co/show/community/* // @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js // @grant none // ==/UserScript== addGlobalStyle(` #wrapper { max-width: 100% !important; } #header { padding-left: 5px; position: fixed; width: 100%; z-index: 100; } #content_section { padding-top: 65px; } #header div.frame { padding-right: 5px; } #top_section > .forumtitle { margin-right: -55px; } #top_section { min-height: 0px; } #header > .frame > div:last-of-type, #header > .frame > br.clear { display: none; } #menu_nav > li > ul { position: fixed; border: solid #333 2px; width: -moz-min-content; width: -webkit-min-content; } #search_form .input_text { max-width: 500px !important; } `); function addGlobalStyle(css) { var head, style; head = document.getElementsByTagName('head')[0]; if (!head) { return; } style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); } setTimeout(function(){ $("#siteslogan").detach().appendTo('#upper_section'); $("#main_menu").parent().detach().appendTo("#top_section"); if($("#upshrink").attr("src").split("images/")[1] == "upshrink.png") $("#upshrink").click(); }, 50);