您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
一些网页的样式格式化
// ==UserScript== // @name 网页样式格式化 // @namespace xywc-s // @author xywc-s // @version 1.1.1 // @description 一些网页的样式格式化 // @match https://*.2biqu.com/* // @match https://*.2biquw.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=spankbang.com // @license MIT // ==/UserScript== /*jshint esversion: 6 */ const {host} = location switch(host){ case 'www.2biquw.com': case 'www.2biqu.com': biquFormat(); break; } function biquFormat(){ console.log('biqu') document.querySelector('.layout').style.border = 'none' const readerFun = document.querySelector('.reader-fun') readerFun.style.margin = '0 12px' readerFun.style.float = 'none' const searchForm = document.querySelector('.search-form') searchForm.style.margin = 0 searchForm.style.float = 'none' searchForm.style.width = 'auto' const searchInput = document.querySelector('#keyWord') searchInput.style.width = 'auto' searchInput.style.height = '30px' searchInput.style.backgroundColor = 'transparent' searchInput.style.borderBottom = '1px solid #aaa' searchInput.style.borderWidth = '0 0 1px 0' searchInput.placeholder = '作者、书名' const searchBtn = document.querySelector('.btn-tosearch') searchBtn.style.width = 'auto' searchBtn.style.backgroundColor = 'transparent' const layoutTit = document.querySelector('.layout-tit') layoutTit.style.backgroundColor = 'transparent' layoutTit.style.border = 'none' layoutTit.append(searchForm) layoutTit.style.display = 'flex' layoutTit.style.justifyContent = 'center' const header = document.querySelector('.header') header.append(layoutTit) header.style.width = 'auto' }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址